summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorTomas Mraz <tomas@openssl.org>2021-12-02 22:04:21 +0100
committerTomas Mraz <tomas@openssl.org>2021-12-06 16:38:03 +0100
commitbaa88d9d170b95fd6f177b3e5f8d8818e024a55d (patch)
tree15409ac507a2527785f4ef593aacfd8e5d2af804 /include
parent3dbf82438004b31258627f324841476c4f586c19 (diff)
Fix pvk encoder to properly query for the passphrase
The passphrase callback data was not properly initialized. Fixes #17054 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 'include')
-rw-r--r--include/internal/passphrase.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/internal/passphrase.h b/include/internal/passphrase.h
index ee0be9b128..54d997b0d9 100644
--- a/include/internal/passphrase.h
+++ b/include/internal/passphrase.h
@@ -114,6 +114,7 @@ int ossl_pw_get_passphrase(char *pass, size_t pass_size, size_t *pass_len,
*/
pem_password_cb ossl_pw_pem_password;
+pem_password_cb ossl_pw_pvk_password;
/* One callback for encoding (verification prompt) and one for decoding */
OSSL_PASSPHRASE_CALLBACK ossl_pw_passphrase_callback_enc;
OSSL_PASSPHRASE_CALLBACK ossl_pw_passphrase_callback_dec;