Constify the RSA library.
authorRichard Levitte <levitte@openssl.org>
Mon, 6 Nov 2000 22:49:05 +0000 (22:49 +0000)
committerRichard Levitte <levitte@openssl.org>
Mon, 6 Nov 2000 22:49:05 +0000 (22:49 +0000)
crypto/evp/evp_pkey.c

index 8df2874f3c564ac9318b2c035ffc21ea12530c87..bacbd42797bb44134ec0fc7d45b5cd3642acf53e 100644 (file)
@@ -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;
                }