]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Make nid_to_group read-only
authorHugo Landau <hlandau@openssl.org>
Mon, 27 Nov 2023 07:52:54 +0000 (07:52 +0000)
committerHugo Landau <hlandau@openssl.org>
Mon, 27 Nov 2023 07:52:54 +0000 (07:52 +0000)
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/22828)

ssl/t1_lib.c

index 631e1fdef93cef7648a794a856854368daab1aa8..236c1b49a782526b09ffd76451c3993352bfd9ea 100644 (file)
@@ -140,7 +140,7 @@ int tls1_clear(SSL *s)
 }
 
 /* Legacy NID to group_id mapping. Only works for groups we know about */
-static struct {
+static const struct {
     int nid;
     uint16_t group_id;
 } nid_to_group[] = {