summaryrefslogtreecommitdiffstats
path: root/apps/pkcs12.c
diff options
context:
space:
mode:
authorDavid von Oheimb <David.von.Oheimb@siemens.com>2017-12-14 11:10:33 +0100
committerDr. David von Oheimb <David.von.Oheimb@siemens.com>2020-11-19 11:36:02 +0100
commit9c73e48a081278f18f3203efca980ddfa873e71f (patch)
tree393192b81dd4002526c99474374e5b5a6f152f29 /apps/pkcs12.c
parentapps/ca: Minor code and doc cleanup (diff)
downloadopenssl-9c73e48a081278f18f3203efca980ddfa873e71f.tar.xz
openssl-9c73e48a081278f18f3203efca980ddfa873e71f.zip
Minor cleanup of error output for various apps
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org> (Merged from https://github.com/openssl/openssl/pull/4930)
Diffstat (limited to 'apps/pkcs12.c')
-rw-r--r--apps/pkcs12.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/pkcs12.c b/apps/pkcs12.c
index 1432d2b930..2c4e11a410 100644
--- a/apps/pkcs12.c
+++ b/apps/pkcs12.c
@@ -596,7 +596,8 @@ int pkcs12_main(int argc, char **argv)
key_pbe, cert_pbe, iter, -1, keytype);
if (p12 == NULL) {
- ERR_print_errors(bio_err);
+ BIO_printf(bio_err, "Error creating PKCS12 structure for %s\n",
+ outfile);
goto export_end;
}
@@ -625,6 +626,7 @@ int pkcs12_main(int argc, char **argv)
sk_X509_pop_free(untrusted_certs, X509_free);
X509_free(ee_cert);
+ ERR_print_errors(bio_err);
goto end;
}