summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBob Beck <beck@cvs.openbsd.org>2000-04-13 16:26:13 +0000
committerBob Beck <beck@cvs.openbsd.org>2000-04-13 16:26:13 +0000
commitb0ab051406efe27d71e4412414f1df9a0e34dbfc (patch)
tree4bffe7b30c4ff38b8298ed8c65e2df6ec56f811a /lib
parent916067e3ce2a0adbe78b1424fc9e4fbb3c57ae67 (diff)
Fix an oopsie so these get initialized even when RSA isn't there,
thanks niklas@ *WARNING* - this breaks the patch used in the "ssl26" port - you'll need to use the new minty ssl-intl port, coming right after this
Diffstat (limited to 'lib')
-rw-r--r--lib/libssl/src/crypto/rsa/rsa_eay.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/libssl/src/crypto/rsa/rsa_eay.c b/lib/libssl/src/crypto/rsa/rsa_eay.c
index 179b7da90a8..f835be8afc9 100644
--- a/lib/libssl/src/crypto/rsa/rsa_eay.c
+++ b/lib/libssl/src/crypto/rsa/rsa_eay.c
@@ -184,6 +184,9 @@ static int RSA_eay_private_encrypt(int flen, unsigned char *from,
unsigned char *buf=NULL;
BN_CTX *ctx=NULL;
+ BN_init(&f);
+ BN_init(&ret);
+
/* Body of this routine removed for OpenBSD - will return
* when the RSA patent expires
*/
@@ -209,6 +212,9 @@ static int RSA_eay_private_decrypt(int flen, unsigned char *from,
unsigned char *buf=NULL;
BN_CTX *ctx=NULL;
+ BN_init(&f);
+ BN_init(&ret);
+
/* Body of this routine removed for OpenBSD - will return
* when the RSA patent expires
*/
@@ -234,6 +240,9 @@ static int RSA_eay_public_decrypt(int flen, unsigned char *from,
unsigned char *buf=NULL;
BN_CTX *ctx=NULL;
+ BN_init(&f);
+ BN_init(&ret);
+
/* Body of this routine removed for OpenBSD - will return
* when the RSA patent expires
*/
@@ -254,11 +263,11 @@ static int RSA_eay_mod_exp(BIGNUM *r0, BIGNUM *I, RSA *rsa)
{
BIGNUM r1,m1;
int ret=0;
- BN_CTX *ctx;
+ BN_CTX *ctx = NULL;
- if ((ctx=BN_CTX_new()) == NULL) goto err;
BN_init(&m1);
BN_init(&r1);
+ if ((ctx=BN_CTX_new()) == NULL) goto err;
/* Body of this routine removed for OpenBSD - will return
* when the RSA patent expires