aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/cert_req.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2011-12-23 20:23:03 +0000
committerlloyd <[email protected]>2011-12-23 20:23:03 +0000
commitf5c863cf97ea11876acad3c46fffca23685698aa (patch)
tree5537f5c843602f136f6eb1835d8679c9ae67009e /src/tls/cert_req.cpp
parent61d461d0a5fb63c3aee906c76b4aefe3335a7591 (diff)
Initial hooks for session resumption
Diffstat (limited to 'src/tls/cert_req.cpp')
-rw-r--r--src/tls/cert_req.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tls/cert_req.cpp b/src/tls/cert_req.cpp
index b8b2624bf..74398a59f 100644
--- a/src/tls/cert_req.cpp
+++ b/src/tls/cert_req.cpp
@@ -34,9 +34,9 @@ Certificate_Req::Certificate_Req(Record_Writer& writer,
/**
* Serialize a Certificate Request message
*/
-SecureVector<byte> Certificate_Req::serialize() const
+MemoryVector<byte> Certificate_Req::serialize() const
{
- SecureVector<byte> buf;
+ MemoryVector<byte> buf;
append_tls_length_value(buf, types, 1);
@@ -94,13 +94,13 @@ Certificate::Certificate(Record_Writer& writer,
/**
* Serialize a Certificate message
*/
-SecureVector<byte> Certificate::serialize() const
+MemoryVector<byte> Certificate::serialize() const
{
- SecureVector<byte> buf(3);
+ MemoryVector<byte> buf(3);
for(size_t i = 0; i != certs.size(); ++i)
{
- SecureVector<byte> raw_cert = certs[i].BER_encode();
+ MemoryVector<byte> raw_cert = certs[i].BER_encode();
const size_t cert_size = raw_cert.size();
for(size_t i = 0; i != 3; ++i)
buf.push_back(get_byte<u32bit>(i+1, cert_size));