Constify d2i, s2i, c2i and r2i functions and other associated
[openssl.git] / crypto / asn1 / x_x509.c
index b50167ce433b73edeb2465755161c529ac5edb05..f71ba267d94c7670d1abe2b744c28a1c3f22a090 100644 (file)
@@ -161,9 +161,9 @@ void *X509_get_ex_data(X509 *r, int idx)
  *
  */
 
-X509 *d2i_X509_AUX(X509 **a, unsigned char **pp, long length)
+X509 *d2i_X509_AUX(X509 **a, const unsigned char **pp, long length)
 {
-       unsigned char *q;
+       const unsigned char *q;
        X509 *ret;
        /* Save start position */
        q = *pp;