summaryrefslogtreecommitdiffstats
path: root/crypto/evp/asymcipher.c
diff options
context:
space:
mode:
authorPedro Monreal <pmgdeb@gmail.com>2021-03-04 17:01:50 +0100
committerPauli <ppzgs1@gmail.com>2021-03-11 03:19:40 +0100
commitbf23b9a163658496c3cabb1d0a00a88b94aede0a (patch)
tree598380f1b369e64dbcb43e5f21fb086689668847 /crypto/evp/asymcipher.c
parenttest: convert store test to use relative paths (diff)
downloadopenssl-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.c4
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;
}