mirror of https://github.com/openssl/openssl
APPS: Set a default passphrase UI for the "ec" command
Fixes #15114 Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15119)
This commit is contained in:
parent
f97bc7c424
commit
49ce003740
|
@ -267,7 +267,10 @@ int ec_main(int argc, char **argv)
|
|||
NULL);
|
||||
if (enc != NULL) {
|
||||
OSSL_ENCODER_CTX_set_cipher(ectx, EVP_CIPHER_name(enc), NULL);
|
||||
/* Default passphrase prompter */
|
||||
OSSL_ENCODER_CTX_set_passphrase_ui(ectx, get_ui_method(), NULL);
|
||||
if (passout != NULL)
|
||||
/* When passout given, override the passphrase prompter */
|
||||
OSSL_ENCODER_CTX_set_passphrase(ectx,
|
||||
(const unsigned char *)passout,
|
||||
strlen(passout));
|
||||
|
|
Loading…
Reference in New Issue