Constify d2i, s2i, c2i and r2i functions and other associated
[openssl.git] / crypto / pkcs12 / p12_npas.c
index af708a27436e4b51de0294d70bafc5296a0b06b6..e62d497c6ff02960e8547fa87e14b7e78def63db 100644 (file)
@@ -206,7 +206,8 @@ static int newpass_bag(PKCS12_SAFEBAG *bag, char *oldpass, char *newpass)
 static int alg_get(X509_ALGOR *alg, int *pnid, int *piter, int *psaltlen)
 {
         PBEPARAM *pbe;
-        unsigned char *p;
+        const unsigned char *p;
+
         p = alg->parameter->value.sequence->data;
         pbe = d2i_PBEPARAM(NULL, &p, alg->parameter->value.sequence->length);
         *pnid = OBJ_obj2nid(alg->algorithm);