diff options
author | tb <> | 2018-05-19 10:46:28 +0000 |
---|---|---|
committer | tb <> | 2018-05-19 10:46:28 +0000 |
commit | dd72a6c5c592ecb43f22716a255db7a9fe3db46e (patch) | |
tree | 4a8ed177664bcfadb9d219571fc0fb7ee746328c /src | |
parent | 0a5fa0185a9762195b939da5ca2d02ec60c01f7d (diff) | |
download | openbsd-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')
-rw-r--r-- | src/lib/libcrypto/asn1/a_strex.c | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 4 |
2 files changed, 4 insertions, 4 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 | ||
626 | int | 626 | int |
627 | ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in) | 627 | ASN1_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; |
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 @@ | |||
1 | /* $OpenBSD: asn1.h,v 1.48 2018/05/01 13:29:09 tb Exp $ */ | 1 | /* $OpenBSD: asn1.h,v 1.49 2018/05/19 10:46:28 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -1055,7 +1055,7 @@ int ASN1_item_i2d_fp(const ASN1_ITEM *it, FILE *out, void *x); | |||
1055 | int ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, | 1055 | int ASN1_STRING_print_ex_fp(FILE *fp, const ASN1_STRING *str, |
1056 | unsigned long flags); | 1056 | unsigned long flags); |
1057 | 1057 | ||
1058 | int ASN1_STRING_to_UTF8(unsigned char **out, ASN1_STRING *in); | 1058 | int ASN1_STRING_to_UTF8(unsigned char **out, const ASN1_STRING *in); |
1059 | 1059 | ||
1060 | #ifndef OPENSSL_NO_BIO | 1060 | #ifndef OPENSSL_NO_BIO |
1061 | void *ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x); | 1061 | void *ASN1_d2i_bio(void *(*xnew)(void), d2i_of_void *d2i, BIO *in, void **x); |