diff options
author | Jack Lloyd <[email protected]> | 2019-07-11 06:07:56 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2019-07-13 06:56:30 -0400 |
commit | c50cc377956733736e65422f731a554341fa4799 (patch) | |
tree | 5d6a43de5d6647d5fd0f00b6fd2d8e39131cd868 /src/lib/tls/tls_handshake_io.h | |
parent | bce64096b499a98a8879a334f822be709dad8560 (diff) |
Fix DTLS reconnection
Diffstat (limited to 'src/lib/tls/tls_handshake_io.h')
-rw-r--r-- | src/lib/tls/tls_handshake_io.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/tls/tls_handshake_io.h b/src/lib/tls/tls_handshake_io.h index 66579459d..1c128726d 100644 --- a/src/lib/tls/tls_handshake_io.h +++ b/src/lib/tls/tls_handshake_io.h @@ -33,6 +33,8 @@ class Handshake_IO virtual std::vector<uint8_t> send(const Handshake_Message& msg) = 0; + virtual std::vector<uint8_t> send_under_epoch(const Handshake_Message& msg, uint16_t epoch) = 0; + virtual bool timeout_check() = 0; virtual std::vector<uint8_t> format( @@ -75,6 +77,8 @@ class Stream_Handshake_IO final : public Handshake_IO std::vector<uint8_t> send(const Handshake_Message& msg) override; + std::vector<uint8_t> send_under_epoch(const Handshake_Message& msg, uint16_t epoch) override; + std::vector<uint8_t> format( const std::vector<uint8_t>& handshake_msg, Handshake_Type handshake_type) const override; @@ -116,6 +120,8 @@ class Datagram_Handshake_IO final : public Handshake_IO std::vector<uint8_t> send(const Handshake_Message& msg) override; + std::vector<uint8_t> send_under_epoch(const Handshake_Message& msg, uint16_t epoch) override; + std::vector<uint8_t> format( const std::vector<uint8_t>& handshake_msg, Handshake_Type handshake_type) const override; |