diff options
author | tb <> | 2018-04-25 11:48:21 +0000 |
---|---|---|
committer | tb <> | 2018-04-25 11:48:21 +0000 |
commit | b32b7334e82988558a84760f424f8dd93d902393 (patch) | |
tree | 2706fdfa25b0fa2dc71fc06b437d687057013dcc /src/lib/libcrypto/asn1/asn1_gen.c | |
parent | 2225014e9e21b521735cd7db7cea4d899863d67b (diff) | |
download | openbsd-b32b7334e82988558a84760f424f8dd93d902393.tar.gz openbsd-b32b7334e82988558a84760f424f8dd93d902393.tar.bz2 openbsd-b32b7334e82988558a84760f424f8dd93d902393.zip |
Add const to functions in asn1/asn1.h as they did in OpenSSL.
BIO_f_asn1() will be taken care of later.
Tested in a bulk by sthen
ok bcook jca jsing
Diffstat (limited to 'src/lib/libcrypto/asn1/asn1_gen.c')
-rw-r--r-- | src/lib/libcrypto/asn1/asn1_gen.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_gen.c b/src/lib/libcrypto/asn1/asn1_gen.c index f84cc6136b..ad7802cb11 100644 --- a/src/lib/libcrypto/asn1/asn1_gen.c +++ b/src/lib/libcrypto/asn1/asn1_gen.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1_gen.c,v 1.16 2017/01/29 17:49:22 beck Exp $ */ | 1 | /* $OpenBSD: asn1_gen.c,v 1.17 2018/04/25 11:48:21 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 2002. | 3 | * project 2002. |
4 | */ | 4 | */ |
@@ -121,7 +121,7 @@ static ASN1_TYPE *asn1_str2type(const char *str, int format, int utype); | |||
121 | static int asn1_str2tag(const char *tagstr, int len); | 121 | static int asn1_str2tag(const char *tagstr, int len); |
122 | 122 | ||
123 | ASN1_TYPE * | 123 | ASN1_TYPE * |
124 | ASN1_generate_nconf(char *str, CONF *nconf) | 124 | ASN1_generate_nconf(const char *str, CONF *nconf) |
125 | { | 125 | { |
126 | X509V3_CTX cnf; | 126 | X509V3_CTX cnf; |
127 | 127 | ||
@@ -133,7 +133,7 @@ ASN1_generate_nconf(char *str, CONF *nconf) | |||
133 | } | 133 | } |
134 | 134 | ||
135 | ASN1_TYPE * | 135 | ASN1_TYPE * |
136 | ASN1_generate_v3(char *str, X509V3_CTX *cnf) | 136 | ASN1_generate_v3(const char *str, X509V3_CTX *cnf) |
137 | { | 137 | { |
138 | ASN1_TYPE *ret; | 138 | ASN1_TYPE *ret; |
139 | tag_exp_arg asn1_tags; | 139 | tag_exp_arg asn1_tags; |