From 87eb6cc7e1a6aa574bbc1ef0c61c067f9b182a6c Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Sat, 23 Aug 2025 13:06:19 +0100 Subject: [PATCH] Bump required gnutls to v3.6.3 Bump the requirement to v3.6.3, which means we can remove the final ifdef guard and all the builds have TLS 1.3 support. It was released over 7 years ago, with 2 new feature releases since then and dozen of bugfix releases in the 3.6 branch. The oldest distributions we target Ubuntu 20.04 and Debian Bullseye, have 3.6.13 and 3.7.1 respectively. Signed-off-by: Emil Velikov --- CMakeLists.txt | 2 +- src/plugins/irc/irc-bar-item.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 41255e4b8..4484c71a9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -252,7 +252,7 @@ include_directories(${LIBGCRYPT_INCLUDE_DIRS}) list(APPEND EXTRA_LIBS ${LIBGCRYPT_LDFLAGS}) # Check for GnuTLS -pkg_check_modules(GNUTLS REQUIRED gnutls>=3.3.0) +pkg_check_modules(GNUTLS REQUIRED gnutls>=3.6.3) include_directories(${GNUTLS_INCLUDE_DIRS}) list(APPEND EXTRA_LIBS ${GNUTLS_LDFLAGS}) diff --git a/src/plugins/irc/irc-bar-item.c b/src/plugins/irc/irc-bar-item.c index 932438f06..336ccac5a 100644 --- a/src/plugins/irc/irc-bar-item.c +++ b/src/plugins/irc/irc-bar-item.c @@ -497,11 +497,9 @@ irc_bar_item_tls_version (const void *pointer, void *data, version = gnutls_protocol_get_version (server->gnutls_sess); switch (version) { -#if LIBGNUTLS_VERSION_NUMBER >= 0x030603 /* 3.6.3 */ case GNUTLS_TLS1_3: color = IRC_COLOR_ITEM_TLS_VERSION_OK; break; -#endif case GNUTLS_TLS1_2: color = IRC_COLOR_ITEM_TLS_VERSION_DEPRECATED; break;