summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1
diff options
context:
space:
mode:
authortb <>2024-03-02 08:54:02 +0000
committertb <>2024-03-02 08:54:02 +0000
commitef375d49d18f0a2c367fd9ead5404a1512119ccf (patch)
tree8dc54b4b46859164b7264dce8651bdbda45d25e1 /src/lib/libcrypto/asn1
parent187866d904cc76d1ca848a3208703b9e43c07ccf (diff)
downloadopenbsd-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
Diffstat (limited to 'src/lib/libcrypto/asn1')
-rw-r--r--src/lib/libcrypto/asn1/a_strnid.c18
-rw-r--r--src/lib/libcrypto/asn1/asn1.h4
2 files changed, 2 insertions, 20 deletions
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}
329LCRYPTO_ALIAS(ASN1_STRING_TABLE_get); 329LCRYPTO_ALIAS(ASN1_STRING_TABLE_get);
330
331int
332ASN1_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}
338LCRYPTO_ALIAS(ASN1_STRING_TABLE_add);
339
340void
341ASN1_STRING_TABLE_cleanup(void)
342{
343 ASN1error(ERR_R_DISABLED);
344}
345LCRYPTO_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,
857ASN1_STRING *ASN1_STRING_set_by_NID(ASN1_STRING **out, 857ASN1_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);
859const ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid); 859const ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid);
860int ASN1_STRING_TABLE_add(int, long, long, unsigned long, unsigned long);
861void ASN1_STRING_TABLE_cleanup(void);
862 860
863/* ASN1 template functions */ 861/* ASN1 template functions */
864 862