summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjsing <>2016-12-30 15:59:58 +0000
committerjsing <>2016-12-30 15:59:58 +0000
commit3303a656e2ced0a0075ed9068205a36a16a4045c (patch)
treeac658cbc083f4ea53ede7013baa964df398ec42d
parentae84f39407e5f0add92094593cc52922198355d4 (diff)
downloadopenbsd-3303a656e2ced0a0075ed9068205a36a16a4045c.tar.gz
openbsd-3303a656e2ced0a0075ed9068205a36a16a4045c.tar.bz2
openbsd-3303a656e2ced0a0075ed9068205a36a16a4045c.zip
Stop using M_PKCS12_* compatibility macros here as well.
-rw-r--r--src/usr.bin/openssl/pkcs12.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/usr.bin/openssl/pkcs12.c b/src/usr.bin/openssl/pkcs12.c
index 0cd1ed7893..51a5747b4e 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.7 2015/10/17 15:00:11 doug Exp $ */ 1/* $OpenBSD: pkcs12.c,v 1.8 2016/12/30 15:59:58 jsing 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 */
@@ -667,7 +667,7 @@ dump_certs_pkeys_bag(BIO * out, PKCS12_SAFEBAG * bag, char *pass,
667 PKCS8_PRIV_KEY_INFO *p8; 667 PKCS8_PRIV_KEY_INFO *p8;
668 X509 *x509; 668 X509 *x509;
669 669
670 switch (M_PKCS12_bag_type(bag)) { 670 switch (OBJ_obj2nid(bag->type)) {
671 case NID_keyBag: 671 case NID_keyBag:
672 if (options & INFO) 672 if (options & INFO)
673 BIO_printf(bio_err, "Key bag\n"); 673 BIO_printf(bio_err, "Key bag\n");
@@ -713,7 +713,7 @@ dump_certs_pkeys_bag(BIO * out, PKCS12_SAFEBAG * bag, char *pass,
713 } else if (options & CLCERTS) 713 } else if (options & CLCERTS)
714 return 1; 714 return 1;
715 print_attribs(out, bag->attrib, "Bag Attributes"); 715 print_attribs(out, bag->attrib, "Bag Attributes");
716 if (M_PKCS12_cert_bag_type(bag) != NID_x509Certificate) 716 if (OBJ_obj2nid(bag->value.bag->type) != NID_x509Certificate)
717 return 1; 717 return 1;
718 if (!(x509 = PKCS12_certbag2x509(bag))) 718 if (!(x509 = PKCS12_certbag2x509(bag)))
719 return 0; 719 return 0;