diff options
author | beck <> | 1999-09-29 04:37:45 +0000 |
---|---|---|
committer | beck <> | 1999-09-29 04:37:45 +0000 |
commit | de8f24ea083384bb66b32ec105dc4743c5663cdf (patch) | |
tree | 1412176ae62a3cab2cf2b0b92150fcbceaac6092 /src/lib/libcrypto/rsa/rsa_gen.c | |
parent | cb929d29896bcb87c2a97417fbd03e50078fc178 (diff) | |
download | openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.gz openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.tar.bz2 openbsd-de8f24ea083384bb66b32ec105dc4743c5663cdf.zip |
OpenSSL 0.9.4 merge
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_gen.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_gen.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_gen.c b/src/lib/libcrypto/rsa/rsa_gen.c index 4cbd373829..3227dba794 100644 --- a/src/lib/libcrypto/rsa/rsa_gen.c +++ b/src/lib/libcrypto/rsa/rsa_gen.c | |||
@@ -59,18 +59,15 @@ | |||
59 | #include <stdio.h> | 59 | #include <stdio.h> |
60 | #include <time.h> | 60 | #include <time.h> |
61 | #include "cryptlib.h" | 61 | #include "cryptlib.h" |
62 | #include "bn.h" | 62 | #include <openssl/bn.h> |
63 | #include "rsa.h" | 63 | #include <openssl/rsa.h> |
64 | 64 | ||
65 | RSA *RSA_generate_key(bits, e_value, callback,cb_arg) | 65 | RSA *RSA_generate_key(int bits, unsigned long e_value, |
66 | int bits; | 66 | void (*callback)(int,int,void *), void *cb_arg) |
67 | unsigned long e_value; | ||
68 | void (*callback)(P_I_I_P); | ||
69 | char *cb_arg; | ||
70 | { | 67 | { |
71 | RSA *rsa=NULL; | 68 | RSA *rsa=NULL; |
72 | BIGNUM *r0=NULL,*r1=NULL,*r2=NULL,*r3=NULL,*tmp; | 69 | BIGNUM *r0=NULL,*r1=NULL,*r2=NULL,*r3=NULL,*tmp; |
73 | int bitsp,bitsq,ok= -1,n=0; | 70 | int bitsp,bitsq,ok= -1,n=0,i; |
74 | BN_CTX *ctx=NULL,*ctx2=NULL; | 71 | BN_CTX *ctx=NULL,*ctx2=NULL; |
75 | 72 | ||
76 | ctx=BN_CTX_new(); | 73 | ctx=BN_CTX_new(); |
@@ -81,6 +78,7 @@ char *cb_arg; | |||
81 | /* Body of this routine removed for OpenBSD - will return | 78 | /* Body of this routine removed for OpenBSD - will return |
82 | * when the RSA patent expires | 79 | * when the RSA patent expires |
83 | */ | 80 | */ |
81 | |||
84 | err: | 82 | err: |
85 | if (ok == -1) | 83 | if (ok == -1) |
86 | { | 84 | { |