diff options
| author | tb <> | 2024-08-28 08:59:03 +0000 |
|---|---|---|
| committer | tb <> | 2024-08-28 08:59:03 +0000 |
| commit | 3c509700cc3e08f35c0600e61e87525876ccc3f9 (patch) | |
| tree | b1f125f4455592dd52fb580844b95a05fc9bfc46 /src/lib/libcrypto/hidden/openssl/x509v3.h | |
| parent | 8ad251e6e40a1a47f684409d1af9a1e455b946d5 (diff) | |
| download | openbsd-3c509700cc3e08f35c0600e61e87525876ccc3f9.tar.gz openbsd-3c509700cc3e08f35c0600e61e87525876ccc3f9.tar.bz2 openbsd-3c509700cc3e08f35c0600e61e87525876ccc3f9.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); |
