]> git.ipfire.org Git - thirdparty/gnutls.git/commitdiff
bump GNUTLS_MAX_ALGORITHM_NUM / MAX_ALGOS
authorAlexander Sosedkin <asosedkin@redhat.com>
Fri, 18 Feb 2022 10:05:15 +0000 (11:05 +0100)
committerAlexander Sosedkin <asosedkin@redhat.com>
Fri, 18 Feb 2022 11:23:19 +0000 (12:23 +0100)
Fedora 36 LEGACY crypto-policy uses allowlisting format
and is long enough to blow past the 64 priority string
elements mark, causing, effectively, priority string truncation.

Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
lib/includes/gnutls/gnutls.h.in
lib/priority.c

index 6359a0edb6ff39eb1e57391eeab2a7357bc291d5..16140c878794c35592659e3a8e44395dfc5e991a 100644 (file)
@@ -408,7 +408,7 @@ typedef enum {
   /* exported for other gnutls headers. This is the maximum number of
    * algorithms (ciphers, kx or macs).
    */
-#define GNUTLS_MAX_ALGORITHM_NUM 64
+#define GNUTLS_MAX_ALGORITHM_NUM 128
 #define GNUTLS_MAX_SESSION_ID_SIZE 32
 
 
index 54d7b1bb45a59009515730d0be90c5726ff1cf8c..e7698ba7eb0f8f947db9336d2392e6247eb8647f 100644 (file)
@@ -43,7 +43,7 @@
 #include "profiles.h"
 #include "name_val_array.h"
 
-#define MAX_ELEMENTS 64
+#define MAX_ELEMENTS GNUTLS_MAX_ALGORITHM_NUM
 
 #define ENABLE_PROFILE(c, profile) do { \
        c->additional_verify_flags &= 0x00ffffff; \