Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit a79a24f0 authored by derfelot's avatar derfelot
Browse files

net: Update WireGuard to v1.0.20201112

parent 3c15c3cd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -40,7 +40,7 @@
#undef pull
#endif

#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 5, 0)
#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 4, 76)
#define SYM_FUNC_START ENTRY
#define SYM_FUNC_END ENDPROC
#endif
+1 −4
Original line number Diff line number Diff line
@@ -87,15 +87,12 @@ static void handshake_zero(struct noise_handshake *handshake)

void wg_noise_handshake_clear(struct noise_handshake *handshake)
{
	down_write(&handshake->lock);
	wg_index_hashtable_remove(
			handshake->entry.peer->device->index_hashtable,
			&handshake->entry);
	down_write(&handshake->lock);
	handshake_zero(handshake);
	up_write(&handshake->lock);
	wg_index_hashtable_remove(
			handshake->entry.peer->device->index_hashtable,
			&handshake->entry);
}

static struct noise_keypair *keypair_create(struct wg_peer *peer)
+1 −1
Original line number Diff line number Diff line
#ifndef WIREGUARD_VERSION
#define WIREGUARD_VERSION "1.0.20200908"
#define WIREGUARD_VERSION "1.0.20201112"
#endif