diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2024-08-28 08:43:56 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2024-08-28 08:43:56 +0000 |
commit | 4208299ad0c2336ada67c88e89746f82d4d5fe3b (patch) | |
tree | c5b2c2277b2c071bf967509c9a5fca6f8c295873 /lib/libcrypto | |
parent | 4f24a6d3a75d1708bdc5dd59f3afdcb12228f389 (diff) |
Turn X509V3_set_conf_lhash() into a noop
Another legacy turd that was only used by PHP 7.4 and 8.0.
ok beck jsing
Diffstat (limited to 'lib/libcrypto')
-rw-r--r-- | lib/libcrypto/hidden/openssl/x509v3.h | 4 | ||||
-rw-r--r-- | lib/libcrypto/x509/x509_conf.c | 27 |
2 files changed, 3 insertions, 28 deletions
diff --git a/lib/libcrypto/hidden/openssl/x509v3.h b/lib/libcrypto/hidden/openssl/x509v3.h index c2293d8ea05..f0db675e48d 100644 --- a/lib/libcrypto/hidden/openssl/x509v3.h +++ b/lib/libcrypto/hidden/openssl/x509v3.h @@ -1,4 +1,4 @@ -/* $OpenBSD: x509v3.h,v 1.10 2024/08/28 08:33:06 tb Exp $ */ +/* $OpenBSD: x509v3.h,v 1.11 2024/08/28 08:43:55 tb Exp $ */ /* * Copyright (c) 2022 Bob Beck <beck@openbsd.org> * @@ -146,7 +146,7 @@ LCRYPTO_USED(X509V3_add_value_bool_nf); LCRYPTO_USED(X509V3_get_value_bool); LCRYPTO_USED(X509V3_get_value_int); LCRYPTO_USED(X509V3_set_nconf); -LCRYPTO_USED(X509V3_set_conf_lhash); +LCRYPTO_UNUSED(X509V3_set_conf_lhash); LCRYPTO_USED(X509V3_get_string); LCRYPTO_USED(X509V3_get_section); LCRYPTO_USED(X509V3_string_free); diff --git a/lib/libcrypto/x509/x509_conf.c b/lib/libcrypto/x509/x509_conf.c index b6e5cd147ac..5e6f1d62625 100644 --- a/lib/libcrypto/x509/x509_conf.c +++ b/lib/libcrypto/x509/x509_conf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_conf.c,v 1.19 2024/08/28 08:33:06 tb Exp $ */ +/* $OpenBSD: x509_conf.c,v 1.20 2024/08/28 08:43:55 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -74,10 +74,6 @@ static X509_EXTENSION *do_ext_nconf(CONF *conf, X509V3_CTX *ctx, int nid, int crit, const char *value); static X509_EXTENSION *v3_generic_extension(const char *ext, const char *value, int crit, int type, X509V3_CTX *ctx); -static char *conf_lhash_get_string(void *db, const char *section, - const char *value); -static STACK_OF(CONF_VALUE) *conf_lhash_get_section(void *db, - const char *section); static X509_EXTENSION *do_ext_i2d(const X509V3_EXT_METHOD *method, int nid, int crit, void *ext_struct); static unsigned char *generic_asn1(const char *value, X509V3_CTX *ctx, @@ -531,30 +527,9 @@ X509V3_EXT_conf_nid(LHASH_OF(CONF_VALUE) *conf, X509V3_CTX *ctx, int nid, } LCRYPTO_ALIAS(X509V3_EXT_conf_nid); -static char * -conf_lhash_get_string(void *db, const char *section, const char *value) -{ - return CONF_get_string(db, section, value); -} - -static STACK_OF(CONF_VALUE) * -conf_lhash_get_section(void *db, const char *section) -{ - return CONF_get_section(db, section); -} - -static X509V3_CONF_METHOD conf_lhash_method = { - conf_lhash_get_string, - conf_lhash_get_section, - NULL, - NULL -}; - void X509V3_set_conf_lhash(X509V3_CTX *ctx, LHASH_OF(CONF_VALUE) *lhash) { - ctx->db_meth = &conf_lhash_method; - ctx->db = lhash; } LCRYPTO_ALIAS(X509V3_set_conf_lhash); |