Blame SOURCES/gnutls-3.7.3-ktls-stub.patch

118cf7
From a97a93e23483aafc3508adee8e6399a2302e0fbc Mon Sep 17 00:00:00 2001
118cf7
From: Daiki Ueno <ueno@gnu.org>
118cf7
Date: Tue, 15 Feb 2022 17:38:20 +0100
118cf7
Subject: [PATCH] gnutls_transport_is_ktls_enabled: fix return value of stub
118cf7
118cf7
Signed-off-by: Daiki Ueno <ueno@gnu.org>
118cf7
---
118cf7
 lib/system/ktls.c | 7 +++----
118cf7
 1 file changed, 3 insertions(+), 4 deletions(-)
118cf7
118cf7
diff --git a/lib/system/ktls.c b/lib/system/ktls.c
118cf7
index 7e3cb875ed..f156f08ab2 100644
118cf7
--- a/lib/system/ktls.c
118cf7
+++ b/lib/system/ktls.c
118cf7
@@ -422,12 +422,11 @@ int _gnutls_ktls_recv_int(gnutls_session_t session, content_type_t type,
118cf7
 
118cf7
 #else //ENABLE_KTLS
118cf7
 gnutls_transport_ktls_enable_flags_t
118cf7
-gnutls_transport_is_ktls_enabled(gnutls_session_t session){
118cf7
-	return gnutls_assert_val(GNUTLS_E_UNIMPLEMENTED_FEATURE);
118cf7
+gnutls_transport_is_ktls_enabled(gnutls_session_t session) {
118cf7
+	return 0;
118cf7
 }
118cf7
 
118cf7
-void _gnutls_ktls_enable(gnutls_session_t session){
118cf7
-	return;
118cf7
+void _gnutls_ktls_enable(gnutls_session_t session) {
118cf7
 }
118cf7
 
118cf7
 int _gnutls_ktls_set_keys(gnutls_session_t session) {
118cf7
-- 
118cf7
2.34.1
118cf7