aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/finished.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/finished.cpp
parent61d461d0a5fb63c3aee906c76b4aefe3335a7591 (diff)
Initial hooks for session resumption
Diffstat (limited to 'src/tls/finished.cpp')
-rw-r--r--src/tls/finished.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/tls/finished.cpp b/src/tls/finished.cpp
index d76fbd884..dff977d31 100644
--- a/src/tls/finished.cpp
+++ b/src/tls/finished.cpp
@@ -25,7 +25,7 @@ Finished::Finished(Record_Writer& writer,
/**
* Serialize a Finished message
*/
-SecureVector<byte> Finished::serialize() const
+MemoryVector<byte> Finished::serialize() const
{
return verification_data;
}
@@ -44,7 +44,7 @@ void Finished::deserialize(const MemoryRegion<byte>& buf)
bool Finished::verify(const MemoryRegion<byte>& secret, Version_Code version,
const HandshakeHash& hash, Connection_Side side)
{
- SecureVector<byte> computed = compute_verify(secret, hash, side, version);
+ MemoryVector<byte> computed = compute_verify(secret, hash, side, version);
if(computed == verification_data)
return true;
return false;
@@ -53,7 +53,7 @@ bool Finished::verify(const MemoryRegion<byte>& secret, Version_Code version,
/**
* Compute the verify_data
*/
-SecureVector<byte> Finished::compute_verify(const MemoryRegion<byte>& secret,
+MemoryVector<byte> Finished::compute_verify(const MemoryRegion<byte>& secret,
HandshakeHash hash,
Connection_Side side,
Version_Code version)
@@ -63,7 +63,7 @@ SecureVector<byte> Finished::compute_verify(const MemoryRegion<byte>& secret,
const byte SSL_CLIENT_LABEL[] = { 0x43, 0x4C, 0x4E, 0x54 };
const byte SSL_SERVER_LABEL[] = { 0x53, 0x52, 0x56, 0x52 };
- SecureVector<byte> ssl3_finished;
+ MemoryVector<byte> ssl3_finished;
if(side == CLIENT)
hash.update(SSL_CLIENT_LABEL, sizeof(SSL_CLIENT_LABEL));
@@ -84,7 +84,7 @@ SecureVector<byte> Finished::compute_verify(const MemoryRegion<byte>& secret,
TLS_PRF prf;
- SecureVector<byte> input;
+ MemoryVector<byte> input;
if(side == CLIENT)
input += std::make_pair(TLS_CLIENT_LABEL, sizeof(TLS_CLIENT_LABEL));
else