aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_handshake_io.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2013-09-06 21:49:18 +0000
committerlloyd <[email protected]>2013-09-06 21:49:18 +0000
commitc032dd416d182adbf43ffeba51529e7d6890a4d6 (patch)
tree566ed3760497e80d0816089bd733d074e81da846 /src/tls/tls_handshake_io.h
parent183c1a131ef5cb6b80d440880d2ef78b1c8f5f4c (diff)
Don't pass Record struct to handshake parser
Diffstat (limited to 'src/tls/tls_handshake_io.h')
-rw-r--r--src/tls/tls_handshake_io.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/tls/tls_handshake_io.h b/src/tls/tls_handshake_io.h
index 82d1a8e7e..36c605c30 100644
--- a/src/tls/tls_handshake_io.h
+++ b/src/tls/tls_handshake_io.h
@@ -24,7 +24,6 @@ namespace Botan {
namespace TLS {
class Handshake_Message;
-class Record;
/**
* Handshake IO Interface
@@ -40,7 +39,9 @@ class Handshake_IO
const std::vector<byte>& handshake_msg,
Handshake_Type handshake_type) const = 0;
- virtual void add_record(const Record& record) = 0;
+ virtual void add_record(const std::vector<byte>& record,
+ Record_Type type,
+ u64bit sequence_number) = 0;
/**
* Returns (HANDSHAKE_NONE, std::vector<>()) if no message currently available
@@ -74,7 +75,9 @@ class Stream_Handshake_IO : public Handshake_IO
const std::vector<byte>& handshake_msg,
Handshake_Type handshake_type) const override;
- void add_record(const Record& record) override;
+ void add_record(const std::vector<byte>& record,
+ Record_Type type,
+ u64bit sequence_number) override;
std::pair<Handshake_Type, std::vector<byte>>
get_next_record(bool expecting_ccs) override;
@@ -101,7 +104,9 @@ class Datagram_Handshake_IO : public Handshake_IO
const std::vector<byte>& handshake_msg,
Handshake_Type handshake_type) const override;
- void add_record(const Record& record) override;
+ void add_record(const std::vector<byte>& record,
+ Record_Type type,
+ u64bit sequence_number) override;
std::pair<Handshake_Type, std::vector<byte>>
get_next_record(bool expecting_ccs) override;