summaryrefslogtreecommitdiff
path: root/lib/libcrypto/asn1
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-03-02 08:54:03 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-03-02 08:54:03 +0000
commit89372adda139f64da7474d04666ffe36d8e74cca (patch)
tree5c6d28627fa487feceafe5c083b8df4399b7f92d /lib/libcrypto/asn1
parent06db110dcb07bb4aaf7457be666b7a72c4297487 (diff)
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 'lib/libcrypto/asn1')
-rw-r--r--lib/libcrypto/asn1/a_strnid.c18
-rw-r--r--lib/libcrypto/asn1/asn1.h4
2 files changed, 2 insertions, 20 deletions
diff --git a/lib/libcrypto/asn1/a_strnid.c b/lib/libcrypto/asn1/a_strnid.c
index 6c0c0f095f8..5fa60b9ce7e 100644
--- a/lib/libcrypto/asn1/a_strnid.c
+++ b/lib/libcrypto/asn1/a_strnid.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: a_strnid.c,v 1.30 2024/03/02 08:50:47 tb Exp $ */
+/* $OpenBSD: a_strnid.c,v 1.31 2024/03/02 08:54:02 tb Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project 1999.
*/
@@ -327,19 +327,3 @@ ASN1_STRING_TABLE_get(int nid)
return NULL;
}
LCRYPTO_ALIAS(ASN1_STRING_TABLE_get);
-
-int
-ASN1_STRING_TABLE_add(int nid, long minsize, long maxsize, unsigned long mask,
- unsigned long flags)
-{
- ASN1error(ERR_R_DISABLED);
- return 0;
-}
-LCRYPTO_ALIAS(ASN1_STRING_TABLE_add);
-
-void
-ASN1_STRING_TABLE_cleanup(void)
-{
- ASN1error(ERR_R_DISABLED);
-}
-LCRYPTO_ALIAS(ASN1_STRING_TABLE_cleanup);
diff --git a/lib/libcrypto/asn1/asn1.h b/lib/libcrypto/asn1/asn1.h
index 1e66ee226cd..35f03e0064b 100644
--- a/lib/libcrypto/asn1/asn1.h
+++ b/lib/libcrypto/asn1/asn1.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: asn1.h,v 1.84 2024/03/02 08:50:47 tb Exp $ */
+/* $OpenBSD: asn1.h,v 1.85 2024/03/02 08:54:02 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -857,8 +857,6 @@ int ASN1_mbstring_ncopy(ASN1_STRING **out, const unsigned char *in, int len,
ASN1_STRING *ASN1_STRING_set_by_NID(ASN1_STRING **out,
const unsigned char *in, int inlen, int inform, int nid);
const ASN1_STRING_TABLE *ASN1_STRING_TABLE_get(int nid);
-int ASN1_STRING_TABLE_add(int, long, long, unsigned long, unsigned long);
-void ASN1_STRING_TABLE_cleanup(void);
/* ASN1 template functions */