summaryrefslogtreecommitdiff
path: root/src/lib/dev.c
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2022-02-25 18:44:12 +0100
committerSander Vrijders <sander@ouroboros.rocks>2022-03-03 12:00:54 +0100
commitf535637a394eecca1af182fb09b175b53e9fbf1f (patch)
treef0598166eeac5ff9f1c197c7ee3103703ddc1fd5 /src/lib/dev.c
parentf5d642a06f9c1a58197313b32f6b213a152e446f (diff)
downloadouroboros-f535637a394eecca1af182fb09b175b53e9fbf1f.tar.gz
ouroboros-f535637a394eecca1af182fb09b175b53e9fbf1f.zip
lib: Encrypt bare FRCP messages on encrypted flows
Bare FRCP messages (ACKs without data, Rendez-vous packets) were not encrypted on encrypted flows, causing the receiver to fail decryption. Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks> Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/lib/dev.c')
-rw-r--r--src/lib/dev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/lib/dev.c b/src/lib/dev.c
index 5c57a538..ab02a783 100644
--- a/src/lib/dev.c
+++ b/src/lib/dev.c
@@ -153,8 +153,6 @@ struct {
pthread_rwlock_t lock;
} ai;
-#include "frct.c"
-
static void port_destroy(struct port * p)
{
pthread_mutex_lock(&p->state_lock);
@@ -265,6 +263,7 @@ static void flow_clear(int fd)
}
#include "crypt.c"
+#include "frct.c"
static void flow_fini(int fd)
{