summaryrefslogtreecommitdiff
path: root/crypto/dh/dh_err.c
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2019-07-22 22:50:19 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2019-07-24 14:44:08 +0200
commit6de1fe90860ddfe768864838637f681537f3f108 (patch)
treeeb7dc66acc7eef6124922ad47edfdd168bd1eb19 /crypto/dh/dh_err.c
parent8b84b075ff065554c0cdd1086950f1a8614d93a4 (diff)
downloadopenssl-new-6de1fe90860ddfe768864838637f681537f3f108.tar.gz
Enforce a minimum DH modulus size of 512 bits
[extended tests] Reviewed-by: Paul Dale <paul.dale@oracle.com> (Merged from https://github.com/openssl/openssl/pull/9437)
Diffstat (limited to 'crypto/dh/dh_err.c')
-rw-r--r--crypto/dh/dh_err.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dh/dh_err.c b/crypto/dh/dh_err.c
index cbde260145..69f1452441 100644
--- a/crypto/dh/dh_err.c
+++ b/crypto/dh/dh_err.c
@@ -41,6 +41,7 @@ static const ERR_STRING_DATA DH_str_reasons[] = {
{ERR_PACK(ERR_LIB_DH, 0, DH_R_KEYS_NOT_SET), "keys not set"},
{ERR_PACK(ERR_LIB_DH, 0, DH_R_MISSING_PUBKEY), "missing pubkey"},
{ERR_PACK(ERR_LIB_DH, 0, DH_R_MODULUS_TOO_LARGE), "modulus too large"},
+ {ERR_PACK(ERR_LIB_DH, 0, DH_R_MODULUS_TOO_SMALL), "modulus too small"},
{ERR_PACK(ERR_LIB_DH, 0, DH_R_NOT_SUITABLE_GENERATOR),
"not suitable generator"},
{ERR_PACK(ERR_LIB_DH, 0, DH_R_NO_PARAMETERS_SET), "no parameters set"},