Start of a connection state machine, start of a TLV framework.

This commit is contained in:
Ian Gulliver
2015-02-05 21:57:04 +00:00
parent c91b64f892
commit dcbc3d6928
5 changed files with 39 additions and 7 deletions

View File

@@ -23,6 +23,11 @@ class CryptoPubServerConnection : public CryptoBase {
private:
const std::string secret_key_;
const std::string ephemeral_secret_key_;
const std::string client_public_key_;
enum {
AWAITING_HANDSHAKE,
READY,
} state_;
};
class CryptoPubServer : public CryptoBase {