aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_handshake_hash.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/tls/tls_handshake_hash.h')
-rw-r--r--src/tls/tls_handshake_hash.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/tls/tls_handshake_hash.h b/src/tls/tls_handshake_hash.h
index 4ee1fc1b9..c13f97aa8 100644
--- a/src/tls/tls_handshake_hash.h
+++ b/src/tls/tls_handshake_hash.h
@@ -9,16 +9,19 @@
#define BOTAN_TLS_HANDSHAKE_HASH_H__
#include <botan/secmem.h>
+#include <botan/tls_version.h>
#include <botan/tls_magic.h>
namespace Botan {
+namespace TLS {
+
using namespace Botan;
/**
* TLS Handshake Hash
*/
-class TLS_Handshake_Hash
+class Handshake_Hash
{
public:
void update(const byte in[], size_t length)
@@ -33,8 +36,10 @@ class TLS_Handshake_Hash
void update(Handshake_Type handshake_type,
const MemoryRegion<byte>& handshake_msg);
- SecureVector<byte> final();
- SecureVector<byte> final_ssl3(const MemoryRegion<byte>&);
+ SecureVector<byte> final(Protocol_Version version,
+ const std::string& mac_algo);
+
+ SecureVector<byte> final_ssl3(const MemoryRegion<byte>& master_secret);
const SecureVector<byte>& get_contents() const
{ return data; }
@@ -45,4 +50,6 @@ class TLS_Handshake_Hash
}
+}
+
#endif