summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsing <jsing@openbsd.org>2016-12-30 15:59:58 +0000
committerjsing <jsing@openbsd.org>2016-12-30 15:59:58 +0000
commit2bc56ac719110e9fc8b7c4b0adc0735c739190c6 (patch)
treee8ba2fca3bd9ba317b5aa208d2b2abf5605a955a
parentExpand ASN1_ITEM_ref and ASN1_ITEM_ptr macros - no change in generated (diff)
downloadwireguard-openbsd-2bc56ac719110e9fc8b7c4b0adc0735c739190c6.tar.xz
wireguard-openbsd-2bc56ac719110e9fc8b7c4b0adc0735c739190c6.zip
Stop using M_PKCS12_* compatibility macros here as well.
-rw-r--r--usr.bin/openssl/pkcs12.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/openssl/pkcs12.c b/usr.bin/openssl/pkcs12.c
index 0cd1ed7893a..51a5747b4e7 100644
--- a/usr.bin/openssl/pkcs12.c
+++ b/usr.bin/openssl/pkcs12.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pkcs12.c,v 1.7 2015/10/17 15:00:11 doug Exp $ */
+/* $OpenBSD: pkcs12.c,v 1.8 2016/12/30 15:59:58 jsing Exp $ */
/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
* project.
*/
@@ -667,7 +667,7 @@ dump_certs_pkeys_bag(BIO * out, PKCS12_SAFEBAG * bag, char *pass,
PKCS8_PRIV_KEY_INFO *p8;
X509 *x509;
- switch (M_PKCS12_bag_type(bag)) {
+ switch (OBJ_obj2nid(bag->type)) {
case NID_keyBag:
if (options & INFO)
BIO_printf(bio_err, "Key bag\n");
@@ -713,7 +713,7 @@ dump_certs_pkeys_bag(BIO * out, PKCS12_SAFEBAG * bag, char *pass,
} else if (options & CLCERTS)
return 1;
print_attribs(out, bag->attrib, "Bag Attributes");
- if (M_PKCS12_cert_bag_type(bag) != NID_x509Certificate)
+ if (OBJ_obj2nid(bag->value.bag->type) != NID_x509Certificate)
return 1;
if (!(x509 = PKCS12_certbag2x509(bag)))
return 0;