I've made a minor change to demos/prime/prime.c to get it to compile

on Operating system: i686-whatever-linux2, i.e. Linux Redhat 6.2 on an
Intel pII, I compiled demo/prime/prime.c using ...

gcc -Wall -I /usr/local/ssl/include -L ../.. -lcrypto -lssl prime.c -o
prime

the following diff does the trick for me... (I just did a diff -u
prime.c newprime.c)

Is this useful... should I continue to hand these "fixes" in ?
ps. openssl 0.9.3

cheers,
Se�n
[EMAIL PROTECTED]

----------------------------------------------------------
--- prime.c     Fri Apr 23 23:13:10 1999
+++ newprime.c  Thu May 27 13:05:02 1999
@@ -57,6 +57,7 @@
  */
 
 #include <stdio.h>
+#include <stdlib.h>
 #include <openssl/bn.h>    
 
 void callback(type,num)
@@ -87,8 +88,8 @@
                }
 
        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);
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to