From dd72a6c5c592ecb43f22716a255db7a9fe3db46e Mon Sep 17 00:00:00 2001 From: tb <> Date: Sat, 19 May 2018 10:46:28 +0000 Subject: The 'in' argument of ASN1_STRING_to_UTF8() is now adorned with const. tested in a bulk build by sthen ok jsing --- src/lib/libcrypto/asn1/a_strex.c | 4 ++-- src/lib/libcrypto/asn1/asn1.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 @@ -/* $OpenBSD: a_strex.c,v 1.27 2018/05/18 18:23:24 tb Exp $ */ +/* $OpenBSD: a_strex.c,v 1.28 2018/05/19 10:46:28 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 2000. */ @@ -624,7 +624,7 @@ ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags) */ int -ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in) +ASN1_STRING_to_UTF8(unsigned char **out, const ASN1_STRING *in) { ASN1_STRING stmp, *str = &stmp; int mbflag, type, ret; diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index b1bf40dc63..e3bebe45a6 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h @@ -1,4 +1,4 @@ -/* $OpenBSD: asn1.h,v 1.48 2018/05/01 13:29:09 tb Exp $ */ +/* $OpenBSD: asn1.h,v 1.49 2018/05/19 10:46:28 tb Exp $ */ /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * @@ -1055,7 +1055,7 @@ int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); int ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, unsigned long flags); -int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); +int ASN1_STRING_to_UTF8(unsigned char **out, const ASN1_STRING *in); #ifndef OPENSSL_NO_BIO void *ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x); -- cgit v1.2.3-55-g6feb