Blame patches/gnutls-3.8.8.local.patch

570f52
diff -ru gnutls-3.8.8.orig/lib/algorithms/groups.c gnutls-3.8.8/lib/algorithms/groups.c
570f52
--- gnutls-3.8.8.orig/lib/algorithms/groups.c	2024-10-30 05:41:21.000000000 +0100
570f52
+++ gnutls-3.8.8/lib/algorithms/groups.c	2024-11-13 19:12:22.032377871 +0100
570f52
@@ -90,7 +90,13 @@
570f52
 		.tls_id = 25,
570f52
 		.pk = GNUTLS_PK_ECDSA,
570f52
 	},
570f52
-	group_x25519,
570f52
+	{
570f52
+	.name = "X25519",
570f52
+	.id = GNUTLS_GROUP_X25519,
570f52
+	.curve = GNUTLS_ECC_CURVE_X25519,
570f52
+	.tls_id = 29,
570f52
+	.pk = GNUTLS_PK_ECDH_X25519,
570f52
+	},
570f52
 #ifdef ENABLE_GOST
570f52
 	/* draft-smyshlyaev-tls12-gost-suites-06, Section 6 */
570f52
 	{
570f52
diff -ru gnutls-3.8.8.orig/lib/system/sockets.c gnutls-3.8.8/lib/system/sockets.c
570f52
--- gnutls-3.8.8.orig/lib/system/sockets.c	2024-06-03 01:16:18.000000000 +0200
570f52
+++ gnutls-3.8.8/lib/system/sockets.c	2024-11-13 19:02:28.738122921 +0100
570f52
@@ -161,7 +161,7 @@
570f52
 ssize_t system_writev(gnutls_transport_ptr_t ptr, const giovec_t *iovec,
570f52
 		      int iovec_cnt)
570f52
 {
570f52
-	return _system_writev(ptr, iovec, iovec_cnt, 0);
570f52
+	return writev(GNUTLS_POINTER_TO_INT(ptr), (struct iovec *) iovec, iovec_cnt);
570f52
 }
570f52
 
570f52
 #endif