Skip to content

Commit

Permalink
key_to_type_specific_pem_bio_cb: Use passphrase callback from the arg…
Browse files Browse the repository at this point in the history
…uments

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 28257d6 commit c22b659
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion providers/implementations/encode_decode/encode_key2any.c
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ static int key_to_type_specific_pem_bio_cb(BIO *out, const void *key,
{
return
PEM_ASN1_write_bio(k2d, pemname, out, key, ctx->cipher,
NULL, 0, ossl_pw_pem_password, &ctx->pwdata) > 0;
NULL, 0, cb, cbarg) > 0;
}

static int key_to_type_specific_pem_priv_bio(BIO *out, const void *key,
Expand Down

0 comments on commit c22b659

Please sign in to comment.