diff options
author | tb <> | 2021-10-31 16:47:27 +0000 |
---|---|---|
committer | tb <> | 2021-10-31 16:47:27 +0000 |
commit | 9088131a0bf4a9930c61b7096992aa4e3fec2959 (patch) | |
tree | 3c9769bd20746b2b91b2bda913b17dee8a2a1288 /src/usr.bin/openssl/pkcs12.c | |
parent | 5975302da7b3560abf4c50749b73f63f7772d1b6 (diff) | |
download | openbsd-9088131a0bf4a9930c61b7096992aa4e3fec2959.tar.gz openbsd-9088131a0bf4a9930c61b7096992aa4e3fec2959.tar.bz2 openbsd-9088131a0bf4a9930c61b7096992aa4e3fec2959.zip |
Various minor adjustments to make openssl(1) compile with opaque
structs in X509.
Diffstat (limited to 'src/usr.bin/openssl/pkcs12.c')
-rw-r--r-- | src/usr.bin/openssl/pkcs12.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/pkcs12.c b/src/usr.bin/openssl/pkcs12.c index 4d5c0bbf21..e1a89211c0 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.15 2021/10/23 14:48:33 tb Exp $ */ | 1 | /* $OpenBSD: pkcs12.c,v 1.16 2021/10/31 16:47:27 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 | */ |
@@ -905,8 +905,11 @@ dump_certs_pkeys_bag(BIO *out, PKCS12_SAFEBAG *bag, char *pass, | |||
905 | 905 | ||
906 | case NID_pkcs8ShroudedKeyBag: | 906 | case NID_pkcs8ShroudedKeyBag: |
907 | if (options & INFO) { | 907 | if (options & INFO) { |
908 | const X509_ALGOR *tp8alg; | ||
909 | |||
908 | BIO_printf(bio_err, "Shrouded Keybag: "); | 910 | BIO_printf(bio_err, "Shrouded Keybag: "); |
909 | alg_print(bio_err, bag->value.shkeybag->algor); | 911 | X509_SIG_get0(bag->value.shkeybag, &tp8alg, NULL); |
912 | alg_print(bio_err, tp8alg); | ||
910 | } | 913 | } |
911 | if (options & NOKEYS) | 914 | if (options & NOKEYS) |
912 | return 1; | 915 | return 1; |