From 73f52ef7130cefbe5a8fe028eedaad0e54be7303 Mon Sep 17 00:00:00 2001 From: tb Date: Wed, 3 Aug 2022 20:17:38 +0000 Subject: [PATCH] Add workarounds for some symbols that are hidden under !LIBRESSL_INTERNAL until the next bump exposes new symbols that we can use. --- usr.bin/openssl/pkcs12.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/usr.bin/openssl/pkcs12.c b/usr.bin/openssl/pkcs12.c index b725d773da3..6195a2cc9a1 100644 --- a/usr.bin/openssl/pkcs12.c +++ b/usr.bin/openssl/pkcs12.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pkcs12.c,v 1.20 2022/04/28 15:42:10 inoguchi Exp $ */ +/* $OpenBSD: pkcs12.c,v 1.21 2022/08/03 20:17:38 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -71,6 +71,12 @@ #include #include +/* XXX: temporary workarounds until the next libcrypto bump. */ +#define PKCS12_get_attr(bag, attr_nid) \ + PKCS12_get_attr_gen(bag->attrib, attr_nid) +#undef PKCS12_certbag2x509 +X509 *PKCS12_certbag2x509(PKCS12_SAFEBAG *bag); + #define NOKEYS 0x1 #define NOCERTS 0x2 #define INFO 0x4 -- 2.20.1