diff options
author | Pedro Monreal <pmgdeb@gmail.com> | 2021-03-04 17:01:50 +0100 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-03-11 03:19:40 +0100 |
commit | bf23b9a163658496c3cabb1d0a00a88b94aede0a (patch) | |
tree | 598380f1b369e64dbcb43e5f21fb086689668847 /crypto/evp/asymcipher.c | |
parent | test: convert store test to use relative paths (diff) | |
download | openssl-bf23b9a163658496c3cabb1d0a00a88b94aede0a.tar.xz openssl-bf23b9a163658496c3cabb1d0a00a88b94aede0a.zip |
Fix reason code: EVP_R_OPERATON_NOT_INITIALIZED
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/14429)
Diffstat (limited to 'crypto/evp/asymcipher.c')
-rw-r--r-- | crypto/evp/asymcipher.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/asymcipher.c b/crypto/evp/asymcipher.c index ee8e8662b0..221ceb038d 100644 --- a/crypto/evp/asymcipher.c +++ b/crypto/evp/asymcipher.c @@ -183,7 +183,7 @@ int EVP_PKEY_encrypt(EVP_PKEY_CTX *ctx, } if (ctx->operation != EVP_PKEY_OP_ENCRYPT) { - ERR_raise(ERR_LIB_EVP, EVP_R_OPERATON_NOT_INITIALIZED); + ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_INITIALIZED); return -1; } @@ -220,7 +220,7 @@ int EVP_PKEY_decrypt(EVP_PKEY_CTX *ctx, } if (ctx->operation != EVP_PKEY_OP_DECRYPT) { - ERR_raise(ERR_LIB_EVP, EVP_R_OPERATON_NOT_INITIALIZED); + ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_INITIALIZED); return -1; } |