Constify d2i, s2i, c2i and r2i functions and other associated
[oweals/openssl.git] / crypto / asn1 / a_bool.c
index 24333ea4d5250bed4eb611cb9fcdfd4d6a7e99c4..331acdf05350cff70cd90678d401fec1978b7b5d 100644 (file)
@@ -75,10 +75,10 @@ int i2d_ASN1_BOOLEAN(int a, unsigned char **pp)
        return(r);
        }
 
-int d2i_ASN1_BOOLEAN(int *a, unsigned char **pp, long length)
+int d2i_ASN1_BOOLEAN(int *a, const unsigned char **pp, long length)
        {
        int ret= -1;
-       unsigned char *p;
+       const unsigned char *p;
        long len;
        int inf,tag,xclass;
        int i=0;