diff options
author | Bodo Möller <bodo@openssl.org> | 1999-05-27 20:49:27 +0000 |
---|---|---|
committer | Bodo Möller <bodo@openssl.org> | 1999-05-27 20:49:27 +0000 |
commit | 472bde404fb99ea9670ddf6b95725ee534358c78 (patch) | |
tree | c66e2dea653e559498b8e8ad1c4d1428557fc635 /demos/prime | |
parent | 1850a49bd0d9bd346c0980a34163372189c57927 (diff) | |
download | openssl-472bde404fb99ea9670ddf6b95725ee534358c78.tar.gz |
Change function call according to current API.
Diffstat (limited to 'demos/prime')
-rw-r--r-- | demos/prime/prime.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/demos/prime/prime.c b/demos/prime/prime.c index a1bf507b7c..103e0efc0c 100644 --- a/demos/prime/prime.c +++ b/demos/prime/prime.c @@ -57,6 +57,7 @@ */ #include <stdio.h> +#include <stdlib.h> #include <openssl/bn.h> void callback(type,num) @@ -87,8 +88,8 @@ char *argv[]; } fprintf(stderr,"generate a strong prime\n"); - rand=BN_generate_prime(num,1,NULL,NULL,callback); - /* change the second parameter to 1 for a strong prime */ + rand=BN_generate_prime(NULL,num,1,NULL,NULL,callback,NULL); + /* change the third parameter to 1 for a strong prime */ fprintf(stderr,"\n"); BN_print_fp(stdout,rand); |