diff options
| author | tb <> | 2018-05-18 19:34:37 +0000 | 
|---|---|---|
| committer | tb <> | 2018-05-18 19:34:37 +0000 | 
| commit | 7ee7ac4092a33201af1ca59a68f151926c3bef0c (patch) | |
| tree | f2b19a68eb45061d92619f9561893c37fa189705 /src/lib/libcrypto/x509v3/v3_utl.c | |
| parent | 3837f48e35529be04679788d486c2082b24cfa6b (diff) | |
| download | openbsd-7ee7ac4092a33201af1ca59a68f151926c3bef0c.tar.gz openbsd-7ee7ac4092a33201af1ca59a68f151926c3bef0c.tar.bz2 openbsd-7ee7ac4092a33201af1ca59a68f151926c3bef0c.zip | |
The 'name', 'value' and 'section' arguments for a2i_GENERAL_NAME(),
X509V3_get_value_bool(), X509V3_add_value_bool_nf(),
X509V3_get_value_int(), X509V3_get_string(), X509V3_get_section()
are now const.
While there, remove a stupid cast and two redundant checks.
tested in a bulk build by sthen
ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_utl.c')
| -rw-r--r-- | src/lib/libcrypto/x509v3/v3_utl.c | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/src/lib/libcrypto/x509v3/v3_utl.c b/src/lib/libcrypto/x509v3/v3_utl.c index ff3b2c3e86..20af52141a 100644 --- a/src/lib/libcrypto/x509v3/v3_utl.c +++ b/src/lib/libcrypto/x509v3/v3_utl.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: v3_utl.c,v 1.28 2018/04/25 11:48:21 tb Exp $ */ | 1 | /* $OpenBSD: v3_utl.c,v 1.29 2018/05/18 19:34:37 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. | 3 | * project. | 
| 4 | */ | 4 | */ | 
| @@ -140,7 +140,7 @@ X509V3_add_value_bool(const char *name, int asn1_bool, | |||
| 140 | } | 140 | } | 
| 141 | 141 | ||
| 142 | int | 142 | int | 
| 143 | X509V3_add_value_bool_nf(char *name, int asn1_bool, | 143 | X509V3_add_value_bool_nf(const char *name, int asn1_bool, | 
| 144 | STACK_OF(CONF_VALUE) **extlist) | 144 | STACK_OF(CONF_VALUE) **extlist) | 
| 145 | { | 145 | { | 
| 146 | if (asn1_bool) | 146 | if (asn1_bool) | 
| @@ -246,7 +246,7 @@ X509V3_add_value_int(const char *name, ASN1_INTEGER *aint, | |||
| 246 | } | 246 | } | 
| 247 | 247 | ||
| 248 | int | 248 | int | 
| 249 | X509V3_get_value_bool(CONF_VALUE *value, int *asn1_bool) | 249 | X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool) | 
| 250 | { | 250 | { | 
| 251 | char *btmp; | 251 | char *btmp; | 
| 252 | 252 | ||
| @@ -271,7 +271,7 @@ err: | |||
| 271 | } | 271 | } | 
| 272 | 272 | ||
| 273 | int | 273 | int | 
| 274 | X509V3_get_value_int(CONF_VALUE *value, ASN1_INTEGER **aint) | 274 | X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint) | 
| 275 | { | 275 | { | 
| 276 | ASN1_INTEGER *itmp; | 276 | ASN1_INTEGER *itmp; | 
| 277 | 277 | ||
