summaryrefslogtreecommitdiffstats
path: root/providers/implementations
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-12-02 22:07:38 +0100
committerTomas Mraz <tomas@openssl.org>2021-12-06 16:38:03 +0100
commitc22b6592135bfba95a315e438ac7bfc6db461407 (patch)
treee772c2ea0efb18f74e8349cd811d053df59d7b9f /providers/implementations
parent28257d60577932e66934096d0ee8a5dfaca1191e (diff)
key_to_type_specific_pem_bio_cb: Use passphrase callback from the arguments
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/implementations')
-rw-r--r--providers/implementations/encode_decode/encode_key2any.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/providers/implementations/encode_decode/encode_key2any.c b/providers/implementations/encode_decode/encode_key2any.c
index 7c9716bca9..ae15a5db46 100644
--- a/providers/implementations/encode_decode/encode_key2any.c
+++ b/providers/implementations/encode_decode/encode_key2any.c
@@ -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,