From 512e20fa063e4a4525e47e048f26cc68668e7fac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 16 Sep 2023 11:33:40 +0200 Subject: Protocol: use cookies during whole plaintext phase --- src/network/protocol.h | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/network/protocol.h') diff --git a/src/network/protocol.h b/src/network/protocol.h index dda2ffb..3d7c073 100644 --- a/src/network/protocol.h +++ b/src/network/protocol.h @@ -54,7 +54,6 @@ public: struct Cookie { vector value; }; using ChannelState = variant, shared_ptr, Stored, @@ -115,9 +114,9 @@ public: void trySendOutQueue(); private: - static optional
receive(vector & buf, - Channel * channel, - const PartialStorage & st); + static optional
parsePacket(vector & buf, + Channel * channel, const PartialStorage & st, + bool & secure); unique_ptr p; }; -- cgit v1.2.3