diff options
author | tb <> | 2024-08-28 08:59:03 +0000 |
---|---|---|
committer | tb <> | 2024-08-28 08:59:03 +0000 |
commit | fb8ae0072a5962f3c195e9ed2bb2879d0f5a8c6e (patch) | |
tree | b1f125f4455592dd52fb580844b95a05fc9bfc46 /src/lib/libcrypto/hidden/openssl/x509v3.h | |
parent | cfeae5ca77e441b1a417004ca811135648ad3da4 (diff) | |
download | openbsd-fb8ae0072a5962f3c195e9ed2bb2879d0f5a8c6e.tar.gz openbsd-fb8ae0072a5962f3c195e9ed2bb2879d0f5a8c6e.tar.bz2 openbsd-fb8ae0072a5962f3c195e9ed2bb2879d0f5a8c6e.zip |
Get rid of last use of db_meth
Nothing touches db_meth in ports. Thus only way a db_meth can be set is
now as a side effect X509V3_set_conf() in which case the db is an NCONF
database and the db_meth will be a thin wrapper of NCONF_get_section().
Make that explicit in the implementation, remove the guts of the unused
X509V3_get_string() and X509V3_string_free(), turn X509V3_section_free()
into a noop and replace several checks for ctx->db, ctx->db->meth, ...
with a simple ctx->db != NULL check.
ok beck jsing
Diffstat (limited to 'src/lib/libcrypto/hidden/openssl/x509v3.h')
-rw-r--r-- | src/lib/libcrypto/hidden/openssl/x509v3.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/hidden/openssl/x509v3.h b/src/lib/libcrypto/hidden/openssl/x509v3.h index f0db675e48..d0d4e97ec9 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.11 2024/08/28 08:43:55 tb Exp $ */ | 1 | /* $OpenBSD: x509v3.h,v 1.12 2024/08/28 08:59:03 tb Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2022 Bob Beck <beck@openbsd.org> | 3 | * Copyright (c) 2022 Bob Beck <beck@openbsd.org> |
4 | * | 4 | * |
@@ -147,9 +147,9 @@ LCRYPTO_USED(X509V3_get_value_bool); | |||
147 | LCRYPTO_USED(X509V3_get_value_int); | 147 | LCRYPTO_USED(X509V3_get_value_int); |
148 | LCRYPTO_USED(X509V3_set_nconf); | 148 | LCRYPTO_USED(X509V3_set_nconf); |
149 | LCRYPTO_UNUSED(X509V3_set_conf_lhash); | 149 | LCRYPTO_UNUSED(X509V3_set_conf_lhash); |
150 | LCRYPTO_USED(X509V3_get_string); | 150 | LCRYPTO_UNUSED(X509V3_get_string); |
151 | LCRYPTO_USED(X509V3_get_section); | 151 | LCRYPTO_USED(X509V3_get_section); |
152 | LCRYPTO_USED(X509V3_string_free); | 152 | LCRYPTO_UNUSED(X509V3_string_free); |
153 | LCRYPTO_USED(X509V3_section_free); | 153 | LCRYPTO_USED(X509V3_section_free); |
154 | LCRYPTO_USED(X509V3_set_ctx); | 154 | LCRYPTO_USED(X509V3_set_ctx); |
155 | LCRYPTO_USED(X509V3_add_value); | 155 | LCRYPTO_USED(X509V3_add_value); |