summaryrefslogtreecommitdiff
path: root/security/gnutls/files/patch-lib_system_ktls.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/gnutls/files/patch-lib_system_ktls.c')
-rw-r--r--security/gnutls/files/patch-lib_system_ktls.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/security/gnutls/files/patch-lib_system_ktls.c b/security/gnutls/files/patch-lib_system_ktls.c
new file mode 100644
index 000000000000..3c0dbc6a8734
--- /dev/null
+++ b/security/gnutls/files/patch-lib_system_ktls.c
@@ -0,0 +1,18 @@
+--- lib/system/ktls.c.orig 2025-04-11 11:51:08 UTC
++++ lib/system/ktls.c
+@@ -1076,6 +1076,7 @@ int _gnutls_ktls_recv_control_msg(gnutls_session_t ses
+ default:
+ return GNUTLS_E_PULL_ERROR;
+ }
++#ifdef EKEYEXPIRED
+ } else if (unlikely(ret == -EKEYEXPIRED)) {
+ /* This will be received until a keyupdate is performed on the
+ scoket. */
+@@ -1083,6 +1084,7 @@ int _gnutls_ktls_recv_control_msg(gnutls_session_t ses
+ "updated keys\n");
+ gnutls_assert();
+ return GNUTLS_E_AGAIN;
++#endif
+ }
+
+ /* connection closed */