Constify some inputs buffers
[openssl.git] / crypto / asn1 / a_utctm.c
index eadc31a4522ab96c6fe81f6258feb22407c2cac2..7916e300ef0509a523b7712d2d2382ca5c4c21b0 100644 (file)
@@ -119,8 +119,7 @@ int ASN1_UTCTIME_set_string(ASN1_UTCTIME *s, const char *str)
     t.data = (unsigned char *)str;
     if (ASN1_UTCTIME_check(&t)) {
         if (s != NULL) {
-            if (!ASN1_STRING_set((ASN1_STRING *)s,
-                                 (unsigned char *)str, t.length))
+            if (!ASN1_STRING_set((ASN1_STRING *)s, str, t.length))
                 return 0;
             s->type = V_ASN1_UTCTIME;
         }