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_add.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/lib/libcrypto/pkcs12/p12_add.c') diff --git a/src/lib/libcrypto/pkcs12/p12_add.c b/src/lib/libcrypto/pkcs12/p12_add.c index 08bb75d312..e423c76411 100644 --- a/src/lib/libcrypto/pkcs12/p12_add.c +++ b/src/lib/libcrypto/pkcs12/p12_add.c @@ -1,4 +1,4 @@ -/* $OpenBSD: p12_add.c,v 1.17 2018/05/13 14:24:07 tb Exp $ */ +/* $OpenBSD: p12_add.c,v 1.18 2022/08/03 20:16:06 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -89,6 +89,9 @@ PKCS12_item_pack_safebag(void *obj, const ASN1_ITEM *it, int nid1, int nid2) return safebag; } +#if !defined(LIBRESSL_NEXT_API) +#undef PKCS12_MAKE_KEYBAG +#undef PKCS12_MAKE_SHKEYBAG /* Turn PKCS8 object into a keybag */ PKCS12_SAFEBAG * @@ -136,6 +139,7 @@ PKCS12_MAKE_SHKEYBAG(int pbe_nid, const char *pass, int passlen, return bag; } +#endif /* Turn a stack of SAFEBAGS into a PKCS#7 data Contentinfo */ PKCS7 * -- cgit v1.2.3-55-g6feb