Change function call according to current API.
This commit is contained in:
parent
1850a49bd0
commit
472bde404f
15
CHANGES
15
CHANGES
@ -3,6 +3,21 @@
|
|||||||
_______________
|
_______________
|
||||||
|
|
||||||
|
|
||||||
|
Changes between 0.9.3 and 0.9.3a [?] [xx May? 1999]
|
||||||
|
|
||||||
|
*) Updates for Win32 to assembler version of MD5.
|
||||||
|
[Steve Henson]
|
||||||
|
|
||||||
|
*) Set #! path to perl in apps/der_chop to where we found it
|
||||||
|
instead of using a fixed path.
|
||||||
|
[Bodo Moeller]
|
||||||
|
|
||||||
|
*) SHA library changes for irix64-mips4-cc.
|
||||||
|
[Andy Polyakov]
|
||||||
|
|
||||||
|
*) Improvements for VMS support.
|
||||||
|
[Richard Levitte]
|
||||||
|
|
||||||
Changes between 0.9.2b and 0.9.3 [24 May 1999]
|
Changes between 0.9.2b and 0.9.3 [24 May 1999]
|
||||||
|
|
||||||
*) Bignum library bug fix. IRIX 6 passes "make test" now!
|
*) Bignum library bug fix. IRIX 6 passes "make test" now!
|
||||||
|
@ -57,6 +57,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdlib.h>
|
||||||
#include <openssl/bn.h>
|
#include <openssl/bn.h>
|
||||||
|
|
||||||
void callback(type,num)
|
void callback(type,num)
|
||||||
@ -87,8 +88,8 @@ char *argv[];
|
|||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr,"generate a strong prime\n");
|
fprintf(stderr,"generate a strong prime\n");
|
||||||
rand=BN_generate_prime(num,1,NULL,NULL,callback);
|
rand=BN_generate_prime(NULL,num,1,NULL,NULL,callback,NULL);
|
||||||
/* change the second parameter to 1 for a strong prime */
|
/* change the third parameter to 1 for a strong prime */
|
||||||
fprintf(stderr,"\n");
|
fprintf(stderr,"\n");
|
||||||
|
|
||||||
BN_print_fp(stdout,rand);
|
BN_print_fp(stdout,rand);
|
||||||
|
Loading…
Reference in New Issue
Block a user