diff options
author | tb <> | 2024-03-02 08:54:02 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 08:54:02 +0000 |
commit | ef375d49d18f0a2c367fd9ead5404a1512119ccf (patch) | |
tree | 8dc54b4b46859164b7264dce8651bdbda45d25e1 | |
parent | 187866d904cc76d1ca848a3208703b9e43c07ccf (diff) | |
download | openbsd-ef375d49d18f0a2c367fd9ead5404a1512119ccf.tar.gz openbsd-ef375d49d18f0a2c367fd9ead5404a1512119ccf.tar.bz2 openbsd-ef375d49d18f0a2c367fd9ead5404a1512119ccf.zip |
Remove ASN1_STRING_TABLE_{add,cleanup}
This was API for the ASN1_STRING_TABLE extensibility which has been
neutered for months and was completely unused in the ecosystem.
ok jsing
-rw-r--r-- | src/lib/libcrypto/Symbols.list | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/Symbols.namespace | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/a_strnid.c | 18 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/hidden/openssl/asn1.h | 4 |
5 files changed, 3 insertions, 27 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index bb80f34cf5..e23944d189 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
@@ -103,8 +103,6 @@ ASN1_PRINTABLE_type | |||
103 | ASN1_SEQUENCE_ANY_it | 103 | ASN1_SEQUENCE_ANY_it |
104 | ASN1_SEQUENCE_it | 104 | ASN1_SEQUENCE_it |
105 | ASN1_SET_ANY_it | 105 | ASN1_SET_ANY_it |
106 | ASN1_STRING_TABLE_add | ||
107 | ASN1_STRING_TABLE_cleanup | ||
108 | ASN1_STRING_TABLE_get | 106 | ASN1_STRING_TABLE_get |
109 | ASN1_STRING_cmp | 107 | ASN1_STRING_cmp |
110 | ASN1_STRING_copy | 108 | ASN1_STRING_copy |
diff --git a/src/lib/libcrypto/Symbols.namespace b/src/lib/libcrypto/Symbols.namespace index bcd5b84ba6..d99d58bddc 100644 --- a/src/lib/libcrypto/Symbols.namespace +++ b/src/lib/libcrypto/Symbols.namespace | |||
@@ -1093,8 +1093,6 @@ _libre_ASN1_mbstring_copy | |||
1093 | _libre_ASN1_mbstring_ncopy | 1093 | _libre_ASN1_mbstring_ncopy |
1094 | _libre_ASN1_STRING_set_by_NID | 1094 | _libre_ASN1_STRING_set_by_NID |
1095 | _libre_ASN1_STRING_TABLE_get | 1095 | _libre_ASN1_STRING_TABLE_get |
1096 | _libre_ASN1_STRING_TABLE_add | ||
1097 | _libre_ASN1_STRING_TABLE_cleanup | ||
1098 | _libre_ASN1_item_new | 1096 | _libre_ASN1_item_new |
1099 | _libre_ASN1_item_free | 1097 | _libre_ASN1_item_free |
1100 | _libre_ASN1_item_d2i | 1098 | _libre_ASN1_item_d2i |
diff --git a/src/lib/libcrypto/asn1/a_strnid.c b/src/lib/libcrypto/asn1/a_strnid.c index 6c0c0f095f..5fa60b9ce7 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.30 2024/03/02 08:50:47 tb Exp $ */ | 1 | /* $OpenBSD: a_strnid.c,v 1.31 2024/03/02 08:54: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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -327,19 +327,3 @@ ASN1_STRING_TABLE_get(int nid) | |||
327 | return NULL; | 327 | return NULL; |
328 | } | 328 | } |
329 | LCRYPTO_ALIAS(ASN1_STRING_TABLE_get); | 329 | LCRYPTO_ALIAS(ASN1_STRING_TABLE_get); |
330 | |||
331 | int | ||
332 | ASN1_STRING_TABLE_add(int nid, long minsize, long maxsize, unsigned long mask, | ||
333 | unsigned long flags) | ||
334 | { | ||
335 | ASN1error(ERR_R_DISABLED); | ||
336 | return 0; | ||
337 | } | ||
338 | LCRYPTO_ALIAS(ASN1_STRING_TABLE_add); | ||
339 | |||
340 | void | ||
341 | ASN1_STRING_TABLE_cleanup(void) | ||
342 | { | ||
343 | ASN1error(ERR_R_DISABLED); | ||
344 | } | ||
345 | LCRYPTO_ALIAS(ASN1_STRING_TABLE_cleanup); | ||
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h index 1e66ee226c..35f03e0064 100644 --- a/src/lib/libcrypto/asn1/asn1.h +++ b/src/lib/libcrypto/asn1/asn1.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1.h,v 1.84 2024/03/02 08:50:47 tb Exp $ */ | 1 | /* $OpenBSD: asn1.h,v 1.85 2024/03/02 08:54:02 tb Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -857,8 +857,6 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len, | |||
857 | ASN1_STRING *ASN1_STRING_set_by_NID(ASN1_STRING **out, | 857 | ASN1_STRING *ASN1_STRING_set_by_NID(ASN1_STRING **out, |
858 | const unsigned char *in, int inlen, int inform, int nid); | 858 | const unsigned char *in, int inlen, int inform, int nid); |
859 | const ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid); | 859 | const ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid); |
860 | int ASN1_STRING_TABLE_add(int, long, long, unsigned long, unsigned long); | ||
861 | void ASN1_STRING_TABLE_cleanup(void); | ||
862 | 860 | ||
863 | /* ASN1 template functions */ | 861 | /* ASN1 template functions */ |
864 | 862 | ||
diff --git a/src/lib/libcrypto/hidden/openssl/asn1.h b/src/lib/libcrypto/hidden/openssl/asn1.h index 63852d1e67..39cb9ec685 100644 --- a/src/lib/libcrypto/hidden/openssl/asn1.h +++ b/src/lib/libcrypto/hidden/openssl/asn1.h | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: asn1.h,v 1.8 2024/03/01 07:38:33 tb Exp $ */ | 1 | /* $OpenBSD: asn1.h,v 1.9 2024/03/02 08:54:02 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -222,8 +222,6 @@ LCRYPTO_USED(ASN1_mbstring_copy); | |||
222 | LCRYPTO_USED(ASN1_mbstring_ncopy); | 222 | LCRYPTO_USED(ASN1_mbstring_ncopy); |
223 | LCRYPTO_USED(ASN1_STRING_set_by_NID); | 223 | LCRYPTO_USED(ASN1_STRING_set_by_NID); |
224 | LCRYPTO_USED(ASN1_STRING_TABLE_get); | 224 | LCRYPTO_USED(ASN1_STRING_TABLE_get); |
225 | LCRYPTO_USED(ASN1_STRING_TABLE_add); | ||
226 | LCRYPTO_USED(ASN1_STRING_TABLE_cleanup); | ||
227 | LCRYPTO_USED(ASN1_item_new); | 225 | LCRYPTO_USED(ASN1_item_new); |
228 | LCRYPTO_USED(ASN1_item_free); | 226 | LCRYPTO_USED(ASN1_item_free); |
229 | LCRYPTO_USED(ASN1_item_d2i); | 227 | LCRYPTO_USED(ASN1_item_d2i); |