|
|
cabbaa |
From b5a2cbce49d94a04a68acbbc31caaa0c5d7b3321 Mon Sep 17 00:00:00 2001
|
|
|
cabbaa |
From: Alexander Sosedkin <asosedkin@redhat.com>
|
|
|
cabbaa |
Date: Fri, 18 Feb 2022 11:05:15 +0100
|
|
|
cabbaa |
Subject: [PATCH] bump GNUTLS_MAX_ALGORITHM_NUM / MAX_ALGOS
|
|
|
cabbaa |
|
|
|
cabbaa |
Fedora 36 LEGACY crypto-policy uses allowlisting format
|
|
|
cabbaa |
and is long enough to blow past the 64 priority string
|
|
|
cabbaa |
elements mark, causing, effectively, priority string truncation.
|
|
|
cabbaa |
|
|
|
cabbaa |
Signed-off-by: Alexander Sosedkin <asosedkin@redhat.com>
|
|
|
cabbaa |
---
|
|
|
cabbaa |
lib/includes/gnutls/gnutls.h.in | 2 +-
|
|
|
cabbaa |
lib/priority.c | 2 +-
|
|
|
cabbaa |
2 files changed, 2 insertions(+), 2 deletions(-)
|
|
|
cabbaa |
|
|
|
cabbaa |
diff --git a/lib/includes/gnutls/gnutls.h.in b/lib/includes/gnutls/gnutls.h.in
|
|
|
cabbaa |
index 6359a0edb6..16140c8787 100644
|
|
|
cabbaa |
--- a/lib/includes/gnutls/gnutls.h.in
|
|
|
cabbaa |
+++ b/lib/includes/gnutls/gnutls.h.in
|
|
|
cabbaa |
@@ -408,7 +408,7 @@ typedef enum {
|
|
|
cabbaa |
/* exported for other gnutls headers. This is the maximum number of
|
|
|
cabbaa |
* algorithms (ciphers, kx or macs).
|
|
|
cabbaa |
*/
|
|
|
cabbaa |
-#define GNUTLS_MAX_ALGORITHM_NUM 64
|
|
|
cabbaa |
+#define GNUTLS_MAX_ALGORITHM_NUM 128
|
|
|
cabbaa |
#define GNUTLS_MAX_SESSION_ID_SIZE 32
|
|
|
cabbaa |
|
|
|
cabbaa |
|
|
|
cabbaa |
diff --git a/lib/priority.c b/lib/priority.c
|
|
|
cabbaa |
index 54d7b1bb45..e7698ba7eb 100644
|
|
|
cabbaa |
--- a/lib/priority.c
|
|
|
cabbaa |
+++ b/lib/priority.c
|
|
|
cabbaa |
@@ -43,7 +43,7 @@
|
|
|
cabbaa |
#include "profiles.h"
|
|
|
cabbaa |
#include "name_val_array.h"
|
|
|
cabbaa |
|
|
|
cabbaa |
-#define MAX_ELEMENTS 64
|
|
|
cabbaa |
+#define MAX_ELEMENTS GNUTLS_MAX_ALGORITHM_NUM
|
|
|
cabbaa |
|
|
|
cabbaa |
#define ENABLE_PROFILE(c, profile) do { \
|
|
|
cabbaa |
c->additional_verify_flags &= 0x00ffffff; \
|
|
|
cabbaa |
--
|
|
|
cabbaa |
2.34.1
|
|
|
cabbaa |
|