summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509
diff options
context:
space:
mode:
authortb <>2024-01-06 17:37:23 +0000
committertb <>2024-01-06 17:37:23 +0000
commitce013cb97fcfce766becec4de468e051cfe769c2 (patch)
tree52cdbf9594229dc56ff439ea477e9bdeecbdb1a2 /src/lib/libcrypto/x509
parentca00b1e55ab503cc77058c62611b0b6ec94882f2 (diff)
downloadopenbsd-ce013cb97fcfce766becec4de468e051cfe769c2.tar.gz
openbsd-ce013cb97fcfce766becec4de468e051cfe769c2.tar.bz2
openbsd-ce013cb97fcfce766becec4de468e051cfe769c2.zip
Remove X509_CRL_METHOD internals
Another complication of dubious value that nobody's ever used. crl_init(), crl_free() and the meth_data are dead weight, as are their accessors. Inline def_crl_verify() in X509_CRL_verify() so that the latter becomes the trivial wrapper of ASN1_item_verify() that one would expect it to be. It is quite unclear what kind of customization would make sense here... def_crl_lookup() is renamed into crl_lookup() and its two callers, X509_CRL_lookup_by_{serial,cert}(), are moved below it so that we don't need a prototype. ok jsing
Diffstat (limited to 'src/lib/libcrypto/x509')
-rw-r--r--src/lib/libcrypto/x509/x509_local.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509/x509_local.h b/src/lib/libcrypto/x509/x509_local.h
index 6285370b2d..f62f5ad57d 100644
--- a/src/lib/libcrypto/x509/x509_local.h
+++ b/src/lib/libcrypto/x509/x509_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: x509_local.h,v 1.17 2023/12/29 05:33:32 tb Exp $ */ 1/* $OpenBSD: x509_local.h,v 1.18 2024/01/06 17:37:23 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 2013. 3 * project 2013.
4 */ 4 */
@@ -224,8 +224,6 @@ struct X509_crl_st {
224 ASN1_INTEGER *base_crl_number; 224 ASN1_INTEGER *base_crl_number;
225 unsigned char hash[X509_CRL_HASH_LEN]; 225 unsigned char hash[X509_CRL_HASH_LEN];
226 STACK_OF(GENERAL_NAMES) *issuers; 226 STACK_OF(GENERAL_NAMES) *issuers;
227 const X509_CRL_METHOD *meth;
228 void *meth_data;
229} /* X509_CRL */; 227} /* X509_CRL */;
230 228
231struct pkcs8_priv_key_info_st { 229struct pkcs8_priv_key_info_st {