diff options
author | Pedro Monreal <pmgdeb@gmail.com> | 2021-03-04 17:01:50 +0100 |
---|---|---|
committer | Pauli <ppzgs1@gmail.com> | 2021-03-11 12:19:40 +1000 |
commit | bf23b9a163658496c3cabb1d0a00a88b94aede0a (patch) | |
tree | 598380f1b369e64dbcb43e5f21fb086689668847 /crypto/evp/pmeth_gn.c | |
parent | 903a6558471812c8884a8ba279ad96dc29ccd4b0 (diff) | |
download | openssl-new-bf23b9a163658496c3cabb1d0a00a88b94aede0a.tar.gz |
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/pmeth_gn.c')
-rw-r--r-- | crypto/evp/pmeth_gn.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/evp/pmeth_gn.c b/crypto/evp/pmeth_gn.c index 1953e0f958..091d387795 100644 --- a/crypto/evp/pmeth_gn.c +++ b/crypto/evp/pmeth_gn.c @@ -244,7 +244,7 @@ int EVP_PKEY_gen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) ret = -2; goto end; not_initialized: - ERR_raise(ERR_LIB_EVP, EVP_R_OPERATON_NOT_INITIALIZED); + ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_INITIALIZED); ret = -1; goto end; #ifndef FIPS_MODULE @@ -258,7 +258,7 @@ int EVP_PKEY_gen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) int EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) { if (ctx->operation != EVP_PKEY_OP_PARAMGEN) { - ERR_raise(ERR_LIB_EVP, EVP_R_OPERATON_NOT_INITIALIZED); + ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_INITIALIZED); return -1; } return EVP_PKEY_gen(ctx, ppkey); @@ -267,7 +267,7 @@ int EVP_PKEY_paramgen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) int EVP_PKEY_keygen(EVP_PKEY_CTX *ctx, EVP_PKEY **ppkey) { if (ctx->operation != EVP_PKEY_OP_KEYGEN) { - ERR_raise(ERR_LIB_EVP, EVP_R_OPERATON_NOT_INITIALIZED); + ERR_raise(ERR_LIB_EVP, EVP_R_OPERATION_NOT_INITIALIZED); return -1; } return EVP_PKEY_gen(ctx, ppkey); |