diff options
author | tb <> | 2024-06-18 08:29:40 +0000 |
---|---|---|
committer | tb <> | 2024-06-18 08:29:40 +0000 |
commit | 1b7803704ab52275332055e4223af5c3e016f80d (patch) | |
tree | 9e309bce1cefc6c6838a79e04b5242d4fd3b4f26 /src/lib/libcrypto/x509/x509_utl.c | |
parent | 3e972731aa586bec2061f1f6b6ec339b69de2516 (diff) | |
download | openbsd-1b7803704ab52275332055e4223af5c3e016f80d.tar.gz openbsd-1b7803704ab52275332055e4223af5c3e016f80d.tar.bz2 openbsd-1b7803704ab52275332055e4223af5c3e016f80d.zip |
Make local BIT_STRING_BITNAME variables const
There's no reason for them not to be const. This is a piece of a larger
diff that I carry in several of my trees to move more things to rodata
or relro. The full diff requires a change to a public header and it's
very annoying to have to 'make includes' and recompile the entire lib
all the time when hopping from tree to tree.
Diffstat (limited to 'src/lib/libcrypto/x509/x509_utl.c')
-rw-r--r-- | src/lib/libcrypto/x509/x509_utl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509/x509_utl.c b/src/lib/libcrypto/x509/x509_utl.c index 14b43e8b6c..e5e95bfac5 100644 --- a/src/lib/libcrypto/x509/x509_utl.c +++ b/src/lib/libcrypto/x509/x509_utl.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: x509_utl.c,v 1.17 2023/05/12 19:02:10 tb Exp $ */ | 1 | /* $OpenBSD: x509_utl.c,v 1.18 2024/06/18 08:29:40 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 | */ |
@@ -210,7 +210,7 @@ LCRYPTO_ALIAS(i2s_ASN1_ENUMERATED); | |||
210 | char * | 210 | char * |
211 | i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *method, const ASN1_ENUMERATED *e) | 211 | i2s_ASN1_ENUMERATED_TABLE(X509V3_EXT_METHOD *method, const ASN1_ENUMERATED *e) |
212 | { | 212 | { |
213 | BIT_STRING_BITNAME *enam; | 213 | const BIT_STRING_BITNAME *enam; |
214 | long strval; | 214 | long strval; |
215 | 215 | ||
216 | strval = ASN1_ENUMERATED_get(e); | 216 | strval = ASN1_ENUMERATED_get(e); |