aboutsummaryrefslogtreecommitdiffstats
path: root/providers
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-12-02 22:06:36 +0100
committerTomas Mraz <tomas@openssl.org>2021-12-06 16:38:03 +0100
commit28257d60577932e66934096d0ee8a5dfaca1191e (patch)
tree9f9cdf851ed9d1e276c2f971b66198f788fd1627 /providers
parentbaa88d9d170b95fd6f177b3e5f8d8818e024a55d (diff)
downloadopenssl-28257d60577932e66934096d0ee8a5dfaca1191e.tar.gz
PVK decoder: prompt for PVK passphrase and not PEM
Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/17181)
Diffstat (limited to 'providers')
-rw-r--r--providers/implementations/encode_decode/decode_pvk2key.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/encode_decode/decode_pvk2key.c b/providers/implementations/encode_decode/decode_pvk2key.c
index 30b42d2097..32206fe84d 100644
--- a/providers/implementations/encode_decode/decode_pvk2key.c
+++ b/providers/implementations/encode_decode/decode_pvk2key.c
@@ -100,7 +100,7 @@ static int pvk2key_decode(void *vctx, OSSL_CORE_BIO *cin, int selection,
if (!ossl_pw_set_ossl_passphrase_cb(&pwdata, pw_cb, pw_cbarg))
goto end;
- key = ctx->desc->read_private_key(in, ossl_pw_pem_password, &pwdata,
+ key = ctx->desc->read_private_key(in, ossl_pw_pvk_password, &pwdata,
PROV_LIBCTX_OF(ctx->provctx), NULL);
/*