aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/cert_ver.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-03-30 01:41:04 +0000
committerlloyd <[email protected]>2012-03-30 01:41:04 +0000
commit4ff6063a9605c71cc734a594ddecbdb0d17541bf (patch)
tree845fa57d5f9e24fc39f5fa847296e4b778e6a894 /src/tls/cert_ver.cpp
parent8a31da4d60490753031267b18957c0c599bbee3b (diff)
parent4c12fa5de1b59f2c58f974412231a19c4dc7c10f (diff)
propagate from branch 'net.randombit.botan.tls-state-machine' (head 63b88a65b699c95ef839bc18336bceccfbfabd2e)
to branch 'net.randombit.botan.cxx11' (head 1adcc46808b403b8f6bf1669f022e65f9c30e8ea)
Diffstat (limited to 'src/tls/cert_ver.cpp')
-rw-r--r--src/tls/cert_ver.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/tls/cert_ver.cpp b/src/tls/cert_ver.cpp
index ffcba84d8..0a377b35f 100644
--- a/src/tls/cert_ver.cpp
+++ b/src/tls/cert_ver.cpp
@@ -8,6 +8,7 @@
#include <botan/internal/tls_messages.h>
#include <botan/internal/tls_reader.h>
#include <botan/internal/tls_extensions.h>
+#include <botan/tls_record.h>
#include <botan/internal/assert.h>
#include <memory>
@@ -30,7 +31,7 @@ Certificate_Verify::Certificate_Verify(Record_Writer& writer,
PK_Signer signer(*priv_key, format.first, format.second);
- if(state->version == Protocol_Version::SSL_V3)
+ if(state->version() == Protocol_Version::SSL_V3)
{
SecureVector<byte> md5_sha = state->hash.final_ssl3(
state->keys.master_secret());
@@ -45,7 +46,7 @@ Certificate_Verify::Certificate_Verify(Record_Writer& writer,
signature = signer.sign_message(state->hash.get_contents(), rng);
}
- send(writer, state->hash);
+ state->hash.update(writer.send(*this));
}
/*
@@ -99,7 +100,7 @@ bool Certificate_Verify::verify(const X509_Certificate& cert,
PK_Verifier verifier(*key, format.first, format.second);
- if(state->version == Protocol_Version::SSL_V3)
+ if(state->version() == Protocol_Version::SSL_V3)
{
SecureVector<byte> md5_sha = state->hash.final_ssl3(
state->keys.master_secret());