aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/cert_req.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-03-03 04:05:28 +0000
committerlloyd <[email protected]>2012-03-03 04:05:28 +0000
commit0cb5c24b007ba8cea9eb05f31548b078e2b1dea3 (patch)
tree05246766e6ee7048d5d6267876112ab57c3596cd /src/tls/cert_req.cpp
parent03ff8576e98e22aef25439d991c3fd8a1db71237 (diff)
Move the handshake serialization code to Record_Writer
Diffstat (limited to 'src/tls/cert_req.cpp')
-rw-r--r--src/tls/cert_req.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tls/cert_req.cpp b/src/tls/cert_req.cpp
index f400a36d2..063cc5902 100644
--- a/src/tls/cert_req.cpp
+++ b/src/tls/cert_req.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/der_enc.h>
#include <botan/ber_dec.h>
#include <botan/loadstor.h>
@@ -74,7 +75,7 @@ Certificate_Req::Certificate_Req(Record_Writer& writer,
m_supported_algos.push_back(std::make_pair(hashes[i], sigs[j]));
}
- send(writer, hash);
+ hash.update(writer.send(*this));
}
/**
@@ -176,7 +177,7 @@ Certificate::Certificate(Record_Writer& writer,
const std::vector<X509_Certificate>& cert_list)
{
certs = cert_list;
- send(writer, hash);
+ hash.update(writer.send(*this));
}
/**