Skip to content

Commit

Permalink
PVK decoder: prompt for PVK passphrase and not PEM
Browse files Browse the repository at this point in the history
Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from #17181)
  • Loading branch information
t8m committed Dec 6, 2021
1 parent baa88d9 commit 28257d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/implementations/encode_decode/decode_pvk2key.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

/*
Expand Down

0 comments on commit 28257d6

Please sign in to comment.