diff options
author | tb <> | 2024-08-31 09:59:12 +0000 |
---|---|---|
committer | tb <> | 2024-08-31 09:59:12 +0000 |
commit | d58c480554b7e690b2dab126d2f8f622324e3a42 (patch) | |
tree | 7016f71e4d6409ed51ab72981c135a0cdddf6cbc | |
parent | c92ddde3194a70c609ab5dd8987a10b6cf10c12f (diff) | |
download | openbsd-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.list | 1 | ||||
-rw-r--r-- | src/lib/libcrypto/hidden/openssl/x509v3.h | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509_conf.c | 12 | ||||
-rw-r--r-- | src/lib/libcrypto/x509/x509v3.h | 3 |
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 | |||
2384 | X509V3_get_value_int | 2384 | X509V3_get_value_int |
2385 | X509V3_parse_list | 2385 | X509V3_parse_list |
2386 | X509V3_section_free | 2386 | X509V3_section_free |
2387 | X509V3_set_conf_lhash | ||
2388 | X509V3_set_ctx | 2387 | X509V3_set_ctx |
2389 | X509V3_set_nconf | 2388 | X509V3_set_nconf |
2390 | X509V3_string_free | 2389 | X509V3_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); | |||
143 | LCRYPTO_USED(X509V3_get_value_bool); | 143 | LCRYPTO_USED(X509V3_get_value_bool); |
144 | LCRYPTO_USED(X509V3_get_value_int); | 144 | LCRYPTO_USED(X509V3_get_value_int); |
145 | LCRYPTO_USED(X509V3_set_nconf); | 145 | LCRYPTO_USED(X509V3_set_nconf); |
146 | LCRYPTO_UNUSED(X509V3_set_conf_lhash); | ||
147 | LCRYPTO_UNUSED(X509V3_get_string); | 146 | LCRYPTO_UNUSED(X509V3_get_string); |
148 | LCRYPTO_USED(X509V3_get_section); | 147 | LCRYPTO_USED(X509V3_get_section); |
149 | LCRYPTO_UNUSED(X509V3_string_free); | 148 | LCRYPTO_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 | } |
481 | LCRYPTO_ALIAS(X509V3_EXT_conf_nid); | 481 | LCRYPTO_ALIAS(X509V3_EXT_conf_nid); |
482 | |||
483 | /* | ||
484 | * XXX - remove everything below in the next bump. | ||
485 | */ | ||
486 | |||
487 | void | ||
488 | X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash) | ||
489 | { | ||
490 | } | ||
491 | LCRYPTO_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, | |||
653 | int X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool); | 653 | int X509V3_get_value_bool(const CONF_VALUE *value, int *asn1_bool); |
654 | int X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint); | 654 | int X509V3_get_value_int(const CONF_VALUE *value, ASN1_INTEGER **aint); |
655 | void X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf); | 655 | void X509V3_set_nconf(X509V3_CTX *ctx, CONF *conf); |
656 | void X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash); | ||
657 | #endif | 656 | #endif |
658 | 657 | ||
659 | char *X509V3_get_string(X509V3_CTX *ctx, const char *name, | 658 | char *X509V3_get_string(X509V3_CTX *ctx, const char *name, |