diff options
Diffstat (limited to 'src/lib/libcrypto/asn1/n_pkey.c')
-rw-r--r-- | src/lib/libcrypto/asn1/n_pkey.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/libcrypto/asn1/n_pkey.c b/src/lib/libcrypto/asn1/n_pkey.c index e7d0439062..60bc437938 100644 --- a/src/lib/libcrypto/asn1/n_pkey.c +++ b/src/lib/libcrypto/asn1/n_pkey.c | |||
@@ -242,7 +242,7 @@ RSA *d2i_RSA_NET(RSA **a, const unsigned char **pp, long length, | |||
242 | int sgckey) | 242 | int sgckey) |
243 | { | 243 | { |
244 | RSA *ret=NULL; | 244 | RSA *ret=NULL; |
245 | const unsigned char *p; | 245 | const unsigned char *p, *kp; |
246 | NETSCAPE_ENCRYPTED_PKEY *enckey = NULL; | 246 | NETSCAPE_ENCRYPTED_PKEY *enckey = NULL; |
247 | 247 | ||
248 | p = *pp; | 248 | p = *pp; |
@@ -265,6 +265,7 @@ RSA *d2i_RSA_NET(RSA **a, const unsigned char **pp, long length, | |||
265 | ASN1err(ASN1_F_D2I_RSA_NET,ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM); | 265 | ASN1err(ASN1_F_D2I_RSA_NET,ASN1_R_UNSUPPORTED_ENCRYPTION_ALGORITHM); |
266 | goto err; | 266 | goto err; |
267 | } | 267 | } |
268 | kp = enckey->enckey->digest->data; | ||
268 | if (cb == NULL) | 269 | if (cb == NULL) |
269 | cb=EVP_read_pw_string; | 270 | cb=EVP_read_pw_string; |
270 | if ((ret=d2i_RSA_NET_2(a, enckey->enckey->digest,cb, sgckey)) == NULL) goto err; | 271 | if ((ret=d2i_RSA_NET_2(a, enckey->enckey->digest,cb, sgckey)) == NULL) goto err; |