File: configure-disable-use-of-gnutls-api-not-yet-accepted-upstream.patch

package info (click to toggle)
ktls-utils 1.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 636 kB
  • sloc: ansic: 3,620; makefile: 55; sh: 44
file content (32 lines) | stat: -rw-r--r-- 1,563 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From: Ben Hutchings <benh@debian.org>
Date: Mon, 19 May 2025 22:52:39 +0200
Subject: configure: Disable use of GnuTLS API not yet accepted upstream

The gnutls_psk_allocate_{client,server}_credentials2() functions were
proposed in <https://gitlab.com/gnutls/gnutls/-/merge_requests/1939>
but have not yet been accepted.  Disable use of these functions
unconditionally, since they could be added upstream with different
semantics.

---
 configure.ac | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/configure.ac b/configure.ac
index d9ec9e5..ebe0ee2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -83,9 +83,10 @@ AC_CHECK_LIB([gnutls], [gnutls_protocol_set_enabled],
 AC_CHECK_LIB([gnutls], [gnutls_get_system_config_file],
              [AC_DEFINE([HAVE_GNUTLS_GET_SYSTEM_CONFIG_FILE], [1],
                         [Define to 1 if you have the gnutls_get_system_config_file function.])])
-AC_CHECK_LIB([gnutls], [gnutls_psk_allocate_client_credentials2],
-             [AC_DEFINE([HAVE_GNUTLS_PSK_ALLOCATE_CREDENTIALS2], [1],
-                        [Define to 1 if you have the gnutls_psk_allocate_client_credentials2 function.])])
+dnl This has not yet been accepted into upstream GnuTLS and might change
+dnl AC_CHECK_LIB([gnutls], [gnutls_psk_allocate_client_credentials2],
+dnl              [AC_DEFINE([HAVE_GNUTLS_PSK_ALLOCATE_CREDENTIALS2], [1],
+dnl                         [Define to 1 if you have the gnutls_psk_allocate_client_credentials2 function.])])
 
 AC_MSG_CHECKING(for ML-DSA support in gnutls)
 AC_COMPILE_IFELSE(