diff options
author | tb <> | 2022-08-03 20:17:38 +0000 |
---|---|---|
committer | tb <> | 2022-08-03 20:17:38 +0000 |
commit | ad02ddcb2294f02f2bb3323d39e6043dfc90d54c (patch) | |
tree | 104236db8191f515f1991a8400b7c578613fabcd | |
parent | a32a61a3aa20740d1ab3245e6e33400a7dcfd2ee (diff) | |
download | openbsd-ad02ddcb2294f02f2bb3323d39e6043dfc90d54c.tar.gz openbsd-ad02ddcb2294f02f2bb3323d39e6043dfc90d54c.tar.bz2 openbsd-ad02ddcb2294f02f2bb3323d39e6043dfc90d54c.zip |
Add workarounds for some symbols that are hidden under !LIBRESSL_INTERNAL
until the next bump exposes new symbols that we can use.
-rw-r--r-- | src/usr.bin/openssl/pkcs12.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/usr.bin/openssl/pkcs12.c b/src/usr.bin/openssl/pkcs12.c index b725d773da..6195a2cc9a 100644 --- a/src/usr.bin/openssl/pkcs12.c +++ b/src/usr.bin/openssl/pkcs12.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pkcs12.c,v 1.20 2022/04/28 15:42:10 inoguchi Exp $ */ | 1 | /* $OpenBSD: pkcs12.c,v 1.21 2022/08/03 20:17:38 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. | 3 | * project. |
4 | */ | 4 | */ |
@@ -71,6 +71,12 @@ | |||
71 | #include <openssl/pem.h> | 71 | #include <openssl/pem.h> |
72 | #include <openssl/pkcs12.h> | 72 | #include <openssl/pkcs12.h> |
73 | 73 | ||
74 | /* XXX: temporary workarounds until the next libcrypto bump. */ | ||
75 | #define PKCS12_get_attr(bag, attr_nid) \ | ||
76 | PKCS12_get_attr_gen(bag->attrib, attr_nid) | ||
77 | #undef PKCS12_certbag2x509 | ||
78 | X509 *PKCS12_certbag2x509(PKCS12_SAFEBAG *bag); | ||
79 | |||
74 | #define NOKEYS 0x1 | 80 | #define NOKEYS 0x1 |
75 | #define NOCERTS 0x2 | 81 | #define NOCERTS 0x2 |
76 | #define INFO 0x4 | 82 | #define INFO 0x4 |