summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_utl.c
diff options
context:
space:
mode:
authortb <>2018-05-18 19:34:37 +0000
committertb <>2018-05-18 19:34:37 +0000
commit634ba320528daa064590229749a91b1740c31c1c (patch)
treef2b19a68eb45061d92619f9561893c37fa189705 /src/lib/libcrypto/x509v3/v3_utl.c
parent8f0380c45f6d68d154c00d69c95ab79609a0cd2d (diff)
downloadopenbsd-634ba320528daa064590229749a91b1740c31c1c.tar.gz
openbsd-634ba320528daa064590229749a91b1740c31c1c.tar.bz2
openbsd-634ba320528daa064590229749a91b1740c31c1c.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.c8
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
142int 142int
143X509V3_add_value_bool_nf(char *name, int asn1_bool, 143X509V3_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
248int 248int
249X509V3_get_value_bool(CONF_VALUE *value, int *asn1_bool) 249X509V3_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
273int 273int
274X509V3_get_value_int(CONF_VALUE *value, ASN1_INTEGER **aint) 274X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint)
275{ 275{
276 ASN1_INTEGER *itmp; 276 ASN1_INTEGER *itmp;
277 277