summaryrefslogtreecommitdiff
path: root/apps/enc.c
diff options
context:
space:
mode:
authorgujinqiang <gujinqiangggs@126.com>2020-07-17 17:52:26 +0800
committerDmitry Belyavskiy <beldmit@gmail.com>2020-07-22 10:37:49 +0300
commit1d864f0f534fe38541c7adba5777935a0f2a2eb9 (patch)
tree5fb8b18253d319fd5408b007248922dba1fb47a5 /apps/enc.c
parent490c87110cc1fd673604fa1b94d5538f9fd852bb (diff)
downloadopenssl-new-1d864f0f534fe38541c7adba5777935a0f2a2eb9.tar.gz
Specific the engine pointer
CLA: trivial I found that when I wanted to use an engine by the option-engine XXX , it didn't work. Checking the code, I guess it missed the engine pointer when calling EVP_CipherInit_ex. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Paul Yang <kaishen.yy@antfin.com> Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> (Merged from https://github.com/openssl/openssl/pull/12475)
Diffstat (limited to 'apps/enc.c')
-rw-r--r--apps/enc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/enc.c b/apps/enc.c
index 4d59391c22..0f4cdae3c2 100644
--- a/apps/enc.c
+++ b/apps/enc.c
@@ -551,7 +551,7 @@ int enc_main(int argc, char **argv)
BIO_get_cipher_ctx(benc, &ctx);
- if (!EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, enc)) {
+ if (!EVP_CipherInit_ex(ctx, cipher, e, NULL, NULL, enc)) {
BIO_printf(bio_err, "Error setting cipher %s\n",
EVP_CIPHER_name(cipher));
ERR_print_errors(bio_err);