summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509/x509_lib.c
diff options
context:
space:
mode:
authortb <>2024-03-02 10:35:32 +0000
committertb <>2024-03-02 10:35:32 +0000
commitbb1a2b0bc26345c9c52fa57aebfca43c2a1e8e60 (patch)
tree935205f7c56a42128fa412c247899647f6609756 /src/lib/libcrypto/x509/x509_lib.c
parent89eb64e4c740465b9ae86211f8cea0d76ff94956 (diff)
downloadopenbsd-bb1a2b0bc26345c9c52fa57aebfca43c2a1e8e60.tar.gz
openbsd-bb1a2b0bc26345c9c52fa57aebfca43c2a1e8e60.tar.bz2
openbsd-bb1a2b0bc26345c9c52fa57aebfca43c2a1e8e60.zip
Remove X509V3_EXT extensibility API
You used to be able to define your own X.509 extension handlers. Great. Even greater: the verifier would ignore any custom extensions. So this was only ever useful for serialization and deserialization. In other words, almost entirely pointless. The API was also unused except for a hack in kore-acme, which was fixed recently. ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509/x509_lib.c')
-rw-r--r--src/lib/libcrypto/x509/x509_lib.c36
1 files changed, 1 insertions, 35 deletions
diff --git a/src/lib/libcrypto/x509/x509_lib.c b/src/lib/libcrypto/x509/x509_lib.c
index 5ddfc37619..c5151d407e 100644
--- a/src/lib/libcrypto/x509/x509_lib.c
+++ b/src/lib/libcrypto/x509/x509_lib.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_lib.c,v 1.16 2024/01/25 15:09:22 tb Exp $ */ 1/* $OpenBSD: x509_lib.c,v 1.17 2024/03/02 10:35:32 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 */
@@ -333,37 +333,3 @@ err:
333 return 0; 333 return 0;
334} 334}
335LCRYPTO_ALIAS(X509V3_add1_i2d); 335LCRYPTO_ALIAS(X509V3_add1_i2d);
336
337/*
338 * XXX - remove all the functions below in the next major bump.
339 */
340
341int
342X509V3_EXT_add(X509V3_EXT_METHOD *ext)
343{
344 X509V3error(ERR_R_DISABLED);
345 return 0;
346}
347LCRYPTO_ALIAS(X509V3_EXT_add);
348
349int
350X509V3_EXT_add_list(X509V3_EXT_METHOD *extlist)
351{
352 X509V3error(ERR_R_DISABLED);
353 return 0;
354}
355LCRYPTO_ALIAS(X509V3_EXT_add_list);
356
357int
358X509V3_EXT_add_alias(int nid_to, int nid_from)
359{
360 X509V3error(ERR_R_DISABLED);
361 return 0;
362}
363LCRYPTO_ALIAS(X509V3_EXT_add_alias);
364
365void
366X509V3_EXT_cleanup(void)
367{
368}
369LCRYPTO_ALIAS(X509V3_EXT_cleanup);