summaryrefslogtreecommitdiff
path: root/crypto/evp
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2000-11-06 22:49:05 +0000
committerRichard Levitte <levitte@openssl.org>2000-11-06 22:49:05 +0000
commit0413ba429c9dd4a49668da7c6d696720480aa4f1 (patch)
treed40cb883759cb845b4b5bb69e5e5e374f2232e5e /crypto/evp
parent29c1f0615baff7e213fd664798f5d4fc89adda26 (diff)
downloadopenssl-new-0413ba429c9dd4a49668da7c6d696720480aa4f1.tar.gz
Constify the RSA library.
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/evp_pkey.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/crypto/evp/evp_pkey.c b/crypto/evp/evp_pkey.c
index 8df2874f3c..bacbd42797 100644
--- a/crypto/evp/evp_pkey.c
+++ b/crypto/evp/evp_pkey.c
@@ -82,6 +82,7 @@ EVP_PKEY *EVP_PKCS82PKEY (PKCS8_PRIV_KEY_INFO *p8)
#endif
X509_ALGOR *a;
unsigned char *p;
+ const unsigned char *cp;
int pkeylen;
char obj_tmp[80];
@@ -103,7 +104,8 @@ EVP_PKEY *EVP_PKCS82PKEY (PKCS8_PRIV_KEY_INFO *p8)
{
#ifndef NO_RSA
case NID_rsaEncryption:
- if (!(rsa = d2i_RSAPrivateKey (NULL, &p, pkeylen))) {
+ cp = p;
+ if (!(rsa = d2i_RSAPrivateKey (NULL,&cp, pkeylen))) {
EVPerr(EVP_F_EVP_PKCS82PKEY, EVP_R_DECODE_ERROR);
return NULL;
}