Change function call according to current API.

This commit is contained in:
Bodo Möller
1999-05-27 20:49:27 +00:00
parent 1850a49bd0
commit 472bde404f
2 changed files with 18 additions and 2 deletions

View File

@@ -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);