summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hidden/openssl/x509v3.h
diff options
context:
space:
mode:
authortb <>2024-08-28 08:59:03 +0000
committertb <>2024-08-28 08:59:03 +0000
commitfb8ae0072a5962f3c195e9ed2bb2879d0f5a8c6e (patch)
treeb1f125f4455592dd52fb580844b95a05fc9bfc46 /src/lib/libcrypto/hidden/openssl/x509v3.h
parentcfeae5ca77e441b1a417004ca811135648ad3da4 (diff)
downloadopenbsd-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.h6
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);
147LCRYPTO_USED(X509V3_get_value_int); 147LCRYPTO_USED(X509V3_get_value_int);
148LCRYPTO_USED(X509V3_set_nconf); 148LCRYPTO_USED(X509V3_set_nconf);
149LCRYPTO_UNUSED(X509V3_set_conf_lhash); 149LCRYPTO_UNUSED(X509V3_set_conf_lhash);
150LCRYPTO_USED(X509V3_get_string); 150LCRYPTO_UNUSED(X509V3_get_string);
151LCRYPTO_USED(X509V3_get_section); 151LCRYPTO_USED(X509V3_get_section);
152LCRYPTO_USED(X509V3_string_free); 152LCRYPTO_UNUSED(X509V3_string_free);
153LCRYPTO_USED(X509V3_section_free); 153LCRYPTO_USED(X509V3_section_free);
154LCRYPTO_USED(X509V3_set_ctx); 154LCRYPTO_USED(X509V3_set_ctx);
155LCRYPTO_USED(X509V3_add_value); 155LCRYPTO_USED(X509V3_add_value);