summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/asn1/asn1_local.h
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/asn1/asn1_local.h
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/asn1/asn1_local.h')
-rw-r--r--src/lib/libcrypto/asn1/asn1_local.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/src/lib/libcrypto/asn1/asn1_local.h b/src/lib/libcrypto/asn1/asn1_local.h
index c1dfa6f68c..a8cc53221f 100644
--- a/src/lib/libcrypto/asn1/asn1_local.h
+++ b/src/lib/libcrypto/asn1/asn1_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1_local.h,v 1.5 2023/12/29 10:59:00 tb Exp $ */ 1/* $OpenBSD: asn1_local.h,v 1.6 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 2006. 3 * project 2006.
4 */ 4 */
@@ -98,15 +98,6 @@ struct asn1_pctx_st {
98 98
99#define X509_CRL_METHOD_DYNAMIC 1 99#define X509_CRL_METHOD_DYNAMIC 1
100 100
101struct x509_crl_method_st {
102 int flags;
103 int (*crl_init)(X509_CRL *crl);
104 int (*crl_free)(X509_CRL *crl);
105 int (*crl_lookup)(X509_CRL *crl, X509_REVOKED **ret,
106 ASN1_INTEGER *ser, X509_NAME *issuer);
107 int (*crl_verify)(X509_CRL *crl, EVP_PKEY *pk);
108};
109
110int asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it); 101int asn1_get_choice_selector(ASN1_VALUE **pval, const ASN1_ITEM *it);
111int asn1_set_choice_selector(ASN1_VALUE **pval, int value, const ASN1_ITEM *it); 102int asn1_set_choice_selector(ASN1_VALUE **pval, int value, const ASN1_ITEM *it);
112 103