aboutsummaryrefslogtreecommitdiff
path: root/ssl/t1_lib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2018-04-24 10:10:39 +0100
committerMatt Caswell <matt@openssl.org>2018-04-25 10:20:43 +0100
commitca50cd911ca3c9dc9ec8dd956f8eb45557585a98 (patch)
tree86bf3e97141e205efa9ec81f6c9f3f253c22a52f /ssl/t1_lib.c
parentf90bc6c5cb9ca4d97730ff63e6d34fd94047893e (diff)
downloadopenssl-ca50cd911ca3c9dc9ec8dd956f8eb45557585a98.zip
openssl-ca50cd911ca3c9dc9ec8dd956f8eb45557585a98.tar.gz
openssl-ca50cd911ca3c9dc9ec8dd956f8eb45557585a98.tar.bz2
Fix the MAX_CURVELIST definition
The MAX_CURVELIST macro defines the total number of in-built SSL/TLS curves that we support. However it has not been updated as new curves are added. Fixes #5232 Reviewed-by: Bernd Edlinger <bernd.edlinger@hotmail.de> (Merged from https://github.com/openssl/openssl/pull/6065)
Diffstat (limited to 'ssl/t1_lib.c')
-rw-r--r--ssl/t1_lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c
index b777b3a..6f4923d 100644
--- a/ssl/t1_lib.c
+++ b/ssl/t1_lib.c
@@ -366,7 +366,7 @@ int tls1_set_groups(uint16_t **pext, size_t *pextlen,
return 1;
}
-# define MAX_CURVELIST 28
+# define MAX_CURVELIST OSSL_NELEM(nid_list)
typedef struct {
size_t nidcnt;