diff options
author | tb <> | 2018-05-19 10:37:02 +0000 |
---|---|---|
committer | tb <> | 2018-05-19 10:37:02 +0000 |
commit | 1e92ef5d4e261f540f7f155e7edf5fe8a68cf59e (patch) | |
tree | 09bff977b3c9b52dbc505b7c8619bb34881b3f0f /src/lib/libcrypto/x509v3/v3_utl.c | |
parent | a3571a6f5858811485a8369d25914a65dac0e7dc (diff) | |
download | openbsd-1e92ef5d4e261f540f7f155e7edf5fe8a68cf59e.tar.gz openbsd-1e92ef5d4e261f540f7f155e7edf5fe8a68cf59e.tar.bz2 openbsd-1e92ef5d4e261f540f7f155e7edf5fe8a68cf59e.zip |
Add a const qualifier to the 'key' argument of i2o_ECPublicKey() and
one to the last argument of each one of i2s_ASN1_OCTET_STRING(),
s2i_ASN1_OCTET_STRING(), i2s_ASN1_INTEGER(), i2s_ASN1_ENUMERATED(),
and i2s_ASN1_ENUMERATED_TABLE().
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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_utl.c b/src/lib/libcrypto/x509v3/v3_utl.c index 20af52141a..07c7881581 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.29 2018/05/18 19:34:37 tb Exp $ */ | 1 | /* $OpenBSD: v3_utl.c,v 1.30 2018/05/19 10:37:02 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 | */ |
@@ -150,7 +150,7 @@ X509V3_add_value_bool_nf(const char *name, int asn1_bool, | |||
150 | 150 | ||
151 | 151 | ||
152 | char * | 152 | char * |
153 | i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *method, ASN1_ENUMERATED *a) | 153 | i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *method, const ASN1_ENUMERATED *a) |
154 | { | 154 | { |
155 | BIGNUM *bntmp = NULL; | 155 | BIGNUM *bntmp = NULL; |
156 | char *strtmp = NULL; | 156 | char *strtmp = NULL; |
@@ -165,7 +165,7 @@ i2s_ASN1_ENUMERATED(X509V3_EXT_METHOD *method, ASN1_ENUMERATED *a) | |||
165 | } | 165 | } |
166 | 166 | ||
167 | char * | 167 | char * |
168 | i2s_ASN1_INTEGER(X509V3_EXT_METHOD *method, ASN1_INTEGER *a) | 168 | i2s_ASN1_INTEGER(X509V3_EXT_METHOD *method, const ASN1_INTEGER *a) |
169 | { | 169 | { |
170 | BIGNUM *bntmp = NULL; | 170 | BIGNUM *bntmp = NULL; |
171 | char *strtmp = NULL; | 171 | char *strtmp = NULL; |