Create ephemeral key at startup

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2018-03-14 06:49:44 +00:00
parent b787bad536
commit 467310bb4f

1
mud.c
View File

@@ -833,6 +833,7 @@ mud_create(struct sockaddr *addr)
mud->tc = MUD_PACKET_TC;
mud->mtu = sizeof(struct mud_packet);
mud_keyx_init(mud);
randombytes_buf(mud->local.kiss, sizeof(mud->local.kiss));
return mud;