diff options
author | lloyd <[email protected]> | 2012-08-10 12:05:31 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2012-08-10 12:05:31 +0000 |
commit | 7afc5cac372093e211edc90bfe6533270275d8f9 (patch) | |
tree | 7fe292d3283ecca63328f1c4c123d1e034fd487f /src/tls | |
parent | dcbec72c7bc610a3d96c176bf6caac637a0dbcfe (diff) |
Const arg of Handshake_IO::send
Diffstat (limited to 'src/tls')
-rw-r--r-- | src/tls/tls_handshake_io.cpp | 4 | ||||
-rw-r--r-- | src/tls/tls_handshake_io.h | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/src/tls/tls_handshake_io.cpp b/src/tls/tls_handshake_io.cpp index 08b9f58bb..aa644571d 100644 --- a/src/tls/tls_handshake_io.cpp +++ b/src/tls/tls_handshake_io.cpp @@ -100,7 +100,7 @@ Stream_Handshake_IO::format(const std::vector<byte>& msg, return send_buf; } -std::vector<byte> Stream_Handshake_IO::send(Handshake_Message& msg) +std::vector<byte> Stream_Handshake_IO::send(const Handshake_Message& msg) { const std::vector<byte> buf = format(msg.serialize(), msg.type()); @@ -282,7 +282,7 @@ Datagram_Handshake_IO::format(const std::vector<byte>& msg, } std::vector<byte> -Datagram_Handshake_IO::send(Handshake_Message& handshake_msg) +Datagram_Handshake_IO::send(const Handshake_Message& handshake_msg) { const std::vector<byte> msg = handshake_msg.serialize(); diff --git a/src/tls/tls_handshake_io.h b/src/tls/tls_handshake_io.h index f5917f004..e57f6926d 100644 --- a/src/tls/tls_handshake_io.h +++ b/src/tls/tls_handshake_io.h @@ -32,7 +32,7 @@ class Handshake_IO public: virtual Protocol_Version initial_record_version() const = 0; - virtual std::vector<byte> send(Handshake_Message& msg) = 0; + virtual std::vector<byte> send(const Handshake_Message& msg) = 0; virtual std::vector<byte> format( const std::vector<byte>& handshake_msg, @@ -68,7 +68,7 @@ class Stream_Handshake_IO : public Handshake_IO Protocol_Version initial_record_version() const override; - std::vector<byte> send(Handshake_Message& msg) override; + std::vector<byte> send(const Handshake_Message& msg) override; std::vector<byte> format( const std::vector<byte>& handshake_msg, @@ -96,7 +96,7 @@ class Datagram_Handshake_IO : public Handshake_IO Protocol_Version initial_record_version() const override; - std::vector<byte> send(Handshake_Message& msg) override; + std::vector<byte> send(const Handshake_Message& msg) override; std::vector<byte> format( const std::vector<byte>& handshake_msg, |