diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2021-11-10 21:40:30 +0100 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2021-11-10 21:52:04 +0100 |
commit | 28220406f68f38d56648c3932c555b6d6d2b5788 (patch) | |
tree | 82e4e41b8922cb9c82b9eee693ed165250d0773b /src/network.h | |
parent | 02a2fbef0df2714f5fa598d82765ce463321ab56 (diff) |
Network: hold sensitive messages until channel is established
Diffstat (limited to 'src/network.h')
-rw-r--r-- | src/network.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network.h b/src/network.h index fe7d7b4..c4f3d6f 100644 --- a/src/network.h +++ b/src/network.h @@ -56,13 +56,15 @@ struct Server::Peer PartialStorage partStorage; vector<tuple<UUID, shared_ptr<WaitingRef>>> serviceQueue {}; + vector<vector<uint8_t>> secureOutQueue {}; shared_ptr<erebos::Peer::Priv> lpeer = nullptr; - void send(const struct TransportHeader &, const vector<Object> &) const; + void send(const struct TransportHeader &, const vector<Object> &, bool secure); void updateIdentity(ReplyBuilder &); void updateChannel(ReplyBuilder &); void updateService(ReplyBuilder &); + void trySendOutQueue(); }; struct Peer::Priv : enable_shared_from_this<Peer::Priv> |