Constify d2i, s2i, c2i and r2i functions and other associated
[openssl.git] / crypto / x509v3 / v3_lib.c
index ca5a4a4a5709a27699f78ad12e0cf8cf8977420c..04d99b333a4f72308fb63d533bed471eb7711d4d 100644 (file)
@@ -162,7 +162,8 @@ int X509V3_add_standard_extensions(void)
 void *X509V3_EXT_d2i(X509_EXTENSION *ext)
 {
        X509V3_EXT_METHOD *method;
-       unsigned char *p;
+       const unsigned char *p;
+
        if(!(method = X509V3_EXT_get(ext))) return NULL;
        p = ext->value->data;
        if(method->it) return ASN1_item_d2i(NULL, &p, ext->value->length, ASN1_ITEM_ptr(method->it));