aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_handshake_hash.h
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-28 16:08:42 +0000
committerlloyd <[email protected]>2011-12-28 16:08:42 +0000
commit5ee3046bc9b8517bb6de5eda34f03ee907f9ff16 (patch)
tree1ce7355bd7198ea195eb26078fe14891d975c4f8 /src/tls/tls_handshake_hash.h
parent19b985eae73839fdd7547f48b999377c4d1ff47e (diff)
Working though hacking client verify (server side only). Only supports
TLS 1.0/1.1, SSLv3 uses a different hash format. Only RSA certs tested so far.
Diffstat (limited to 'src/tls/tls_handshake_hash.h')
-rw-r--r--src/tls/tls_handshake_hash.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/tls/tls_handshake_hash.h b/src/tls/tls_handshake_hash.h
index cea612a71..4ee1fc1b9 100644
--- a/src/tls/tls_handshake_hash.h
+++ b/src/tls/tls_handshake_hash.h
@@ -1,6 +1,6 @@
/*
* TLS Handshake Hash
-* (C) 2004-2006 Jack Lloyd
+* (C) 2004-2006,2011 Jack Lloyd
*
* Released under the terms of the Botan license
*/
@@ -9,6 +9,7 @@
#define BOTAN_TLS_HANDSHAKE_HASH_H__
#include <botan/secmem.h>
+#include <botan/tls_magic.h>
namespace Botan {
@@ -17,7 +18,7 @@ using namespace Botan;
/**
* TLS Handshake Hash
*/
-class HandshakeHash
+class TLS_Handshake_Hash
{
public:
void update(const byte in[], size_t length)
@@ -29,8 +30,15 @@ class HandshakeHash
void update(byte in)
{ data.push_back(in); }
+ void update(Handshake_Type handshake_type,
+ const MemoryRegion<byte>& handshake_msg);
+
SecureVector<byte> final();
SecureVector<byte> final_ssl3(const MemoryRegion<byte>&);
+
+ const SecureVector<byte>& get_contents() const
+ { return data; }
+
private:
SecureVector<byte> data;
};