diff options
author | Tomas Mraz <tomas@openssl.org> | 2021-12-02 22:06:36 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-12-06 16:39:18 +0100 |
commit | 06082b95fe18dff9354cee02bb0ffec33b00b8cc (patch) | |
tree | 8e1859000a759a2026aff476e48f3807a1b340b1 /providers | |
parent | a2ab3dcde585f49e9a8cdde21571b3a310126eec (diff) |
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)
(cherry picked from commit 28257d60577932e66934096d0ee8a5dfaca1191e)
Diffstat (limited to 'providers')
-rw-r--r-- | providers/implementations/encode_decode/decode_pvk2key.c | 2 |
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); /* |