From ca50cd911ca3c9dc9ec8dd956f8eb45557585a98 Mon Sep 17 00:00:00 2001 From: Matt Caswell Date: Tue, 24 Apr 2018 10:10:39 +0100 Subject: [PATCH] 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 (Merged from https://github.com/openssl/openssl/pull/6065) --- ssl/t1_lib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssl/t1_lib.c b/ssl/t1_lib.c index b777b3acbb..6f4923d5b6 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; -- 2.25.1