aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/tls/tls_handshake_msg.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/tls/tls_handshake_msg.h')
-rw-r--r--src/lib/tls/tls_handshake_msg.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/lib/tls/tls_handshake_msg.h b/src/lib/tls/tls_handshake_msg.h
index 7e527abf4..c53f73a3c 100644
--- a/src/lib/tls/tls_handshake_msg.h
+++ b/src/lib/tls/tls_handshake_msg.h
@@ -1,6 +1,7 @@
/*
* TLS Handshake Message
* (C) 2012 Jack Lloyd
+* 2016 Matthias Gierlings
*
* Botan is released under the Simplified BSD License (see license.txt)
*/
@@ -22,6 +23,19 @@ namespace TLS {
class BOTAN_DLL Handshake_Message
{
public:
+ class Handshake_Info
+ {
+ public:
+ Handshake_Info(Handshake_IO& io, Handshake_Hash& hash)
+ : m_io(io), m_hash(hash) {};
+
+ Handshake_IO& get_io() { return m_io; };
+ Handshake_Hash& get_hash() {return m_hash; };
+
+ private:
+ Handshake_IO& m_io;
+ Handshake_Hash& m_hash;
+ };
std::string type_string() const;
virtual Handshake_Type type() const = 0;