diff options
author | lloyd <[email protected]> | 2011-12-28 16:08:42 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2011-12-28 16:08:42 +0000 |
commit | 5ee3046bc9b8517bb6de5eda34f03ee907f9ff16 (patch) | |
tree | 1ce7355bd7198ea195eb26078fe14891d975c4f8 /src/tls/finished.cpp | |
parent | 19b985eae73839fdd7547f48b999377c4d1ff47e (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/finished.cpp')
-rw-r--r-- | src/tls/finished.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tls/finished.cpp b/src/tls/finished.cpp index dff977d31..bc072bc9d 100644 --- a/src/tls/finished.cpp +++ b/src/tls/finished.cpp @@ -16,7 +16,7 @@ namespace Botan { Finished::Finished(Record_Writer& writer, Version_Code version, Connection_Side side, const MemoryRegion<byte>& master_secret, - HandshakeHash& hash) + TLS_Handshake_Hash& hash) { verification_data = compute_verify(master_secret, hash, side, version); send(writer, hash); @@ -42,7 +42,7 @@ void Finished::deserialize(const MemoryRegion<byte>& buf) * Verify a Finished message */ bool Finished::verify(const MemoryRegion<byte>& secret, Version_Code version, - const HandshakeHash& hash, Connection_Side side) + const TLS_Handshake_Hash& hash, Connection_Side side) { MemoryVector<byte> computed = compute_verify(secret, hash, side, version); if(computed == verification_data) @@ -54,7 +54,7 @@ bool Finished::verify(const MemoryRegion<byte>& secret, Version_Code version, * Compute the verify_data */ MemoryVector<byte> Finished::compute_verify(const MemoryRegion<byte>& secret, - HandshakeHash hash, + TLS_Handshake_Hash hash, Connection_Side side, Version_Code version) { |