From 65a74ca85df35967792e35e1060f5c4f7cfea35c Mon Sep 17 00:00:00 2001 From: tb <> Date: Wed, 3 Aug 2022 20:16:06 +0000 Subject: Prepare to provide PKCS12 accessors In order to be able to make pkcs12/ opaque, we need an entire family of accessors. These are in a particularly nasty tangle since this was done in about a dozen steps while sprinkling const, renaming functions, etc. The public API also adds backward compat macros for functions that were in the tree for half a day and then renamed. Of course some of them got picked up by some ports. Some of the gruesome hacks in here will go away with the next bump, but that doesn't mean that the pkcs12 directory will be prettier afterward. ok jsing --- src/lib/libcrypto/pkcs12/p12_utl.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/pkcs12/p12_utl.c') diff --git a/src/lib/libcrypto/pkcs12/p12_utl.c b/src/lib/libcrypto/pkcs12/p12_utl.c index ff3a035d3f..8efe7a2653 100644 --- a/src/lib/libcrypto/pkcs12/p12_utl.c +++ b/src/lib/libcrypto/pkcs12/p12_utl.c @@ -1,4 +1,4 @@ -/* $OpenBSD: p12_utl.c,v 1.16 2018/05/30 15:32:11 tb Exp $ */ +/* $OpenBSD: p12_utl.c,v 1.17 2022/08/03 20:16:06 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -148,6 +148,12 @@ d2i_PKCS12_fp(FILE *fp, PKCS12 **p12) return ASN1_item_d2i_fp(&PKCS12_it, fp, p12); } +#if !defined(LIBRESSL_NEXT_API) +#undef PKCS12_x5092certbag +#undef PKCS12_x509crl2certbag +#undef PKCS12_certbag2x509 +#undef PKCS12_certbag2x509crl + PKCS12_SAFEBAG * PKCS12_x5092certbag(X509 *x509) { @@ -183,3 +189,4 @@ PKCS12_certbag2x509crl(PKCS12_SAFEBAG *bag) return ASN1_item_unpack(bag->value.bag->value.octet, &X509_CRL_it); } +#endif -- cgit v1.2.3-55-g6feb