Fix another possible crash in rsa_ossl_mod_exp.
[oweals/openssl.git] / crypto / rsa / rsa_ameth.c
index d55cf330b9a2230b59d1c8b55baf9a7a78e635a6..5694140af82429d10af28979b43853668456219a 100644 (file)
@@ -101,7 +101,7 @@ static int rsa_priv_encode(PKCS8_PRIV_KEY_INFO *p8, const EVP_PKEY *pkey)
     return 1;
 }
 
-static int rsa_priv_decode(EVP_PKEY *pkey, PKCS8_PRIV_KEY_INFO *p8)
+static int rsa_priv_decode(EVP_PKEY *pkey, const PKCS8_PRIV_KEY_INFO *p8)
 {
     const unsigned char *p;
     int pklen;