summaryrefslogtreecommitdiff
path: root/src/network/protocol.h
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2023-09-16 11:33:40 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2023-09-16 20:45:26 +0200
commit512e20fa063e4a4525e47e048f26cc68668e7fac (patch)
tree8e2e4907cfcf2729db0b2554fe201f1c1be16b8c /src/network/protocol.h
parenteefc444714b51db99f18e92634d961465fa78e11 (diff)
Protocol: use cookies during whole plaintext phase
Diffstat (limited to 'src/network/protocol.h')
-rw-r--r--src/network/protocol.h7
1 files changed, 3 insertions, 4 deletions
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<uint8_t> value; };
using ChannelState = variant<monostate,
- Cookie,
Stored<ChannelRequest>,
shared_ptr<struct WaitingRef>,
Stored<ChannelAccept>,
@@ -115,9 +114,9 @@ public:
void trySendOutQueue();
private:
- static optional<Header> receive(vector<uint8_t> & buf,
- Channel * channel,
- const PartialStorage & st);
+ static optional<Header> parsePacket(vector<uint8_t> & buf,
+ Channel * channel, const PartialStorage & st,
+ bool & secure);
unique_ptr<ConnectionPriv> p;
};