summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/a_strex.c
diff options
context:
space:
mode:
authortb <>2018-05-19 10:46:28 +0000
committertb <>2018-05-19 10:46:28 +0000
commitdd72a6c5c592ecb43f22716a255db7a9fe3db46e (patch)
tree4a8ed177664bcfadb9d219571fc0fb7ee746328c /src/lib/libcrypto/asn1/a_strex.c
parent0a5fa0185a9762195b939da5ca2d02ec60c01f7d (diff)
downloadopenbsd-dd72a6c5c592ecb43f22716a255db7a9fe3db46e.tar.gz
openbsd-dd72a6c5c592ecb43f22716a255db7a9fe3db46e.tar.bz2
openbsd-dd72a6c5c592ecb43f22716a255db7a9fe3db46e.zip
The 'in' argument of ASN1_STRING_to_UTF8() is now adorned with const.
tested in a bulk build by sthen ok jsing
Diffstat (limited to 'src/lib/libcrypto/asn1/a_strex.c')
-rw-r--r--src/lib/libcrypto/asn1/a_strex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/asn1/a_strex.c b/src/lib/libcrypto/asn1/a_strex.c
index a8b5595db9..4e3deccfda 100644
--- a/src/lib/libcrypto/asn1/a_strex.c
+++ b/src/lib/libcrypto/asn1/a_strex.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: a_strex.c,v 1.27 2018/05/18 18:23:24 tb Exp $ */ 1/* $OpenBSD: a_strex.c,v 1.28 2018/05/19 10:46:28 tb Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -624,7 +624,7 @@ ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags)
624 */ 624 */
625 625
626int 626int
627ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in) 627ASN1_STRING_to_UTF8(unsigned char **out, const ASN1_STRING *in)
628{ 628{
629 ASN1_STRING stmp, *str = &stmp; 629 ASN1_STRING stmp, *str = &stmp;
630 int mbflag, type, ret; 630 int mbflag, type, ret;