diff options
Diffstat (limited to '')
-rw-r--r-- | src/lib/libcrypto/asn1/a_strnid.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/libcrypto/asn1/a_strnid.c b/src/lib/libcrypto/asn1/a_strnid.c index 58c6e5edab..6c0c0f095f 100644 --- a/src/lib/libcrypto/asn1/a_strnid.c +++ b/src/lib/libcrypto/asn1/a_strnid.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_strnid.c,v 1.29 2023/12/16 12:56:20 tb Exp $ */ | 1 | /* $OpenBSD: a_strnid.c,v 1.30 2024/03/02 08:50:47 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -141,7 +141,7 @@ ASN1_STRING * | |||
141 | ASN1_STRING_set_by_NID(ASN1_STRING **out, const unsigned char *in, int inlen, | 141 | ASN1_STRING_set_by_NID(ASN1_STRING **out, const unsigned char *in, int inlen, |
142 | int inform, int nid) | 142 | int inform, int nid) |
143 | { | 143 | { |
144 | ASN1_STRING_TABLE *tbl; | 144 | const ASN1_STRING_TABLE *tbl; |
145 | ASN1_STRING *str = NULL; | 145 | ASN1_STRING *str = NULL; |
146 | unsigned long mask; | 146 | unsigned long mask; |
147 | int ret; | 147 | int ret; |
@@ -313,8 +313,7 @@ static const ASN1_STRING_TABLE tbl_standard[] = { | |||
313 | 313 | ||
314 | #define N_STRING_TABLE_ENTRIES (sizeof(tbl_standard) / sizeof(tbl_standard[0])) | 314 | #define N_STRING_TABLE_ENTRIES (sizeof(tbl_standard) / sizeof(tbl_standard[0])) |
315 | 315 | ||
316 | /* XXX - const */ | 316 | const ASN1_STRING_TABLE * |
317 | ASN1_STRING_TABLE * | ||
318 | ASN1_STRING_TABLE_get(int nid) | 317 | ASN1_STRING_TABLE_get(int nid) |
319 | { | 318 | { |
320 | size_t i; | 319 | size_t i; |
@@ -322,7 +321,7 @@ ASN1_STRING_TABLE_get(int nid) | |||
322 | for (i = 0; i < N_STRING_TABLE_ENTRIES; i++) { | 321 | for (i = 0; i < N_STRING_TABLE_ENTRIES; i++) { |
323 | const ASN1_STRING_TABLE *entry = &tbl_standard[i]; | 322 | const ASN1_STRING_TABLE *entry = &tbl_standard[i]; |
324 | if (entry->nid == nid) | 323 | if (entry->nid == nid) |
325 | return (ASN1_STRING_TABLE *)entry; | 324 | return entry; |
326 | } | 325 | } |
327 | 326 | ||
328 | return NULL; | 327 | return NULL; |