From 0cb5c24b007ba8cea9eb05f31548b078e2b1dea3 Mon Sep 17 00:00:00 2001 From: lloyd Date: Sat, 3 Mar 2012 04:05:28 +0000 Subject: Move the handshake serialization code to Record_Writer --- src/tls/cert_ver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/tls/cert_ver.cpp') diff --git a/src/tls/cert_ver.cpp b/src/tls/cert_ver.cpp index 791635b17..388e16c88 100644 --- a/src/tls/cert_ver.cpp +++ b/src/tls/cert_ver.cpp @@ -8,6 +8,7 @@ #include #include #include +#include #include #include @@ -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)); } /* -- cgit v1.2.3