summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-08-31 09:59:12 +0000
committertb <>2024-08-31 09:59:12 +0000
commitd58c480554b7e690b2dab126d2f8f622324e3a42 (patch)
tree7016f71e4d6409ed51ab72981c135a0cdddf6cbc
parentc92ddde3194a70c609ab5dd8987a10b6cf10c12f (diff)
downloadopenbsd-d58c480554b7e690b2dab126d2f8f622324e3a42.tar.gz
openbsd-d58c480554b7e690b2dab126d2f8f622324e3a42.tar.bz2
openbsd-d58c480554b7e690b2dab126d2f8f622324e3a42.zip
Retire X509V3_set_conf_lhash()
Thankfully sthen removed the out-of-support PHP versions 7.4 and 8.0, which were the last users of this API, which in turn permitted much of this conf rampage. Now the stub can join its guts in the attic. ok beck jsing
-rw-r--r--src/lib/libcrypto/Symbols.list1
-rw-r--r--src/lib/libcrypto/hidden/openssl/x509v3.h3
-rw-r--r--src/lib/libcrypto/x509/x509_conf.c12
-rw-r--r--src/lib/libcrypto/x509/x509v3.h3
4 files changed, 3 insertions, 16 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index c5187d65ee..d18a13410d 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -2384,7 +2384,6 @@ X509V3_get_value_bool
2384X509V3_get_value_int 2384X509V3_get_value_int
2385X509V3_parse_list 2385X509V3_parse_list
2386X509V3_section_free 2386X509V3_section_free
2387X509V3_set_conf_lhash
2388X509V3_set_ctx 2387X509V3_set_ctx
2389X509V3_set_nconf 2388X509V3_set_nconf
2390X509V3_string_free 2389X509V3_string_free
diff --git a/src/lib/libcrypto/hidden/openssl/x509v3.h b/src/lib/libcrypto/hidden/openssl/x509v3.h
index 5912726791..6cdd932209 100644
--- a/src/lib/libcrypto/hidden/openssl/x509v3.h
+++ b/src/lib/libcrypto/hidden/openssl/x509v3.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509v3.h,v 1.13 2024/08/31 09:56:50 tb Exp $ */ 1/* $OpenBSD: x509v3.h,v 1.14 2024/08/31 09:59:12 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2022 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2022 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -143,7 +143,6 @@ LCRYPTO_USED(X509V3_add_value_bool_nf);
143LCRYPTO_USED(X509V3_get_value_bool); 143LCRYPTO_USED(X509V3_get_value_bool);
144LCRYPTO_USED(X509V3_get_value_int); 144LCRYPTO_USED(X509V3_get_value_int);
145LCRYPTO_USED(X509V3_set_nconf); 145LCRYPTO_USED(X509V3_set_nconf);
146LCRYPTO_UNUSED(X509V3_set_conf_lhash);
147LCRYPTO_UNUSED(X509V3_get_string); 146LCRYPTO_UNUSED(X509V3_get_string);
148LCRYPTO_USED(X509V3_get_section); 147LCRYPTO_USED(X509V3_get_section);
149LCRYPTO_UNUSED(X509V3_string_free); 148LCRYPTO_UNUSED(X509V3_string_free);
diff --git a/src/lib/libcrypto/x509/x509_conf.c b/src/lib/libcrypto/x509/x509_conf.c
index dee9bf65e0..ab78649453 100644
--- a/src/lib/libcrypto/x509/x509_conf.c
+++ b/src/lib/libcrypto/x509/x509_conf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_conf.c,v 1.24 2024/08/31 09:56:50 tb Exp $ */ 1/* $OpenBSD: x509_conf.c,v 1.25 2024/08/31 09:59:12 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 */
@@ -479,13 +479,3 @@ X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, int nid,
479 return X509V3_EXT_nconf_nid(&ctmp, ctx, nid, value); 479 return X509V3_EXT_nconf_nid(&ctmp, ctx, nid, value);
480} 480}
481LCRYPTO_ALIAS(X509V3_EXT_conf_nid); 481LCRYPTO_ALIAS(X509V3_EXT_conf_nid);
482
483/*
484 * XXX - remove everything below in the next bump.
485 */
486
487void
488X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash)
489{
490}
491LCRYPTO_ALIAS(X509V3_set_conf_lhash);
diff --git a/src/lib/libcrypto/x509/x509v3.h b/src/lib/libcrypto/x509/x509v3.h
index 6470f059ee..6a18c1f153 100644
--- a/src/lib/libcrypto/x509/x509v3.h
+++ b/src/lib/libcrypto/x509/x509v3.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509v3.h,v 1.31 2024/08/31 09:56:50 tb Exp $ */ 1/* $OpenBSD: x509v3.h,v 1.32 2024/08/31 09:59:12 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 */
@@ -653,7 +653,6 @@ int X509V3_add_value_bool_nf(const char *name, int asn1_bool,
653int X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool); 653int X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool);
654int X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint); 654int X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint);
655void X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf); 655void X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf);
656void X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash);
657#endif 656#endif
658 657
659char *X509V3_get_string(X509V3_CTX *ctx, const char *name, 658char *X509V3_get_string(X509V3_CTX *ctx, const char *name,