aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_handshake_io.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tls/tls_handshake_io.h')
-rw-r--r--src/lib/tls/tls_handshake_io.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/lib/tls/tls_handshake_io.h b/src/lib/tls/tls_handshake_io.h
index 8e1a0eca7..66579459d 100644
--- a/src/lib/tls/tls_handshake_io.h
+++ b/src/lib/tls/tls_handshake_io.h
@@ -39,7 +39,8 @@ class Handshake_IO
const std::vector<uint8_t>& handshake_msg,
Handshake_Type handshake_type) const = 0;
- virtual void add_record(const std::vector<uint8_t>& record,
+ virtual void add_record(const uint8_t record[],
+ size_t record_len,
Record_Type type,
uint64_t sequence_number) = 0;
@@ -78,7 +79,8 @@ class Stream_Handshake_IO final : public Handshake_IO
const std::vector<uint8_t>& handshake_msg,
Handshake_Type handshake_type) const override;
- void add_record(const std::vector<uint8_t>& record,
+ void add_record(const uint8_t record[],
+ size_t record_len,
Record_Type type,
uint64_t sequence_number) override;
@@ -118,7 +120,8 @@ class Datagram_Handshake_IO final : public Handshake_IO
const std::vector<uint8_t>& handshake_msg,
Handshake_Type handshake_type) const override;
- void add_record(const std::vector<uint8_t>& record,
+ void add_record(const uint8_t record[],
+ size_t record_len,
Record_Type type,
uint64_t sequence_number) override;