diff options
Diffstat (limited to 'src/tool/pkcs12.cc')
-rw-r--r-- | src/tool/pkcs12.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/tool/pkcs12.cc b/src/tool/pkcs12.cc index e0133e5..c191531 100644 --- a/src/tool/pkcs12.cc +++ b/src/tool/pkcs12.cc @@ -31,6 +31,7 @@ #endif #include <openssl/bytestring.h> +#include <openssl/err.h> #include <openssl/pem.h> #include <openssl/pkcs8.h> #include <openssl/stack.h> @@ -46,10 +47,11 @@ typedef ssize_t read_result_t; static const struct argument kArguments[] = { { - "-dump", false, "Dump the key and contents of the given file to stdout", + "-dump", kOptionalArgument, + "Dump the key and contents of the given file to stdout", }, { - "", false, "", + "", kOptionalArgument, "", }, }; @@ -122,7 +124,7 @@ bool DoPKCS12(const std::vector<std::string> &args) { if (!PKCS12_get_key_and_certs(&key, certs, &pkcs12, password)) { fprintf(stderr, "Failed to parse PKCS#12 data:\n"); - BIO_print_errors_fp(stderr); + ERR_print_errors_fp(stderr); return false; } |