diff options
author | Tomas Mraz <tomas@openssl.org> | 2022-03-31 11:01:33 +0200 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2022-04-14 08:51:18 +0200 |
commit | 53137462f42f8673fbd5b0831f8ea051ddea509f (patch) | |
tree | 2f333780150ca35f0de587a71be216bed7af79e3 /crypto/ec/ec_lib.c | |
parent | e8a4145968eea576788761f39c5e4cb68b7c4a42 (diff) |
Add error code for unsupported explicit parameters
Reviewed-by: Nicola Tuveri <nic.tuv@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17998)
Diffstat (limited to 'crypto/ec/ec_lib.c')
-rw-r--r-- | crypto/ec/ec_lib.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ec/ec_lib.c b/crypto/ec/ec_lib.c index f00b222aeb..f686e45f89 100644 --- a/crypto/ec/ec_lib.c +++ b/crypto/ec/ec_lib.c @@ -1567,6 +1567,7 @@ EC_GROUP *EC_GROUP_new_from_params(const OSSL_PARAM params[], return group; } #ifdef FIPS_MODULE + ERR_raise(ERR_LIB_EC, EC_R_EXPLICIT_PARAMS_NOT_SUPPORTED); return NULL; #else /* If it gets here then we are trying explicit parameters */ |