aboutsummaryrefslogtreecommitdiffstats
path: root/src/ssl/finished.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2010-09-15 13:44:42 +0000
committerlloyd <[email protected]>2010-09-15 13:44:42 +0000
commit180c5358cb31e9c003cada3705bb30cf01732878 (patch)
tree951038dfaf2c33bcee5e27c4b1d2980eb35494a3 /src/ssl/finished.cpp
parenta9d0f37596e5413cae45f32740738c5c68abcce1 (diff)
Update all uses of MemoryRegion::append to use either push_back or operator+=
Diffstat (limited to 'src/ssl/finished.cpp')
-rw-r--r--src/ssl/finished.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ssl/finished.cpp b/src/ssl/finished.cpp
index 6648a2c3e..86eee7fe3 100644
--- a/src/ssl/finished.cpp
+++ b/src/ssl/finished.cpp
@@ -86,10 +86,10 @@ SecureVector<byte> Finished::compute_verify(const MemoryRegion<byte>& secret,
SecureVector<byte> input;
if(side == CLIENT)
- input.append(TLS_CLIENT_LABEL, sizeof(TLS_CLIENT_LABEL));
+ input += std::make_pair(TLS_CLIENT_LABEL, sizeof(TLS_CLIENT_LABEL));
else
- input.append(TLS_SERVER_LABEL, sizeof(TLS_SERVER_LABEL));
- input.append(hash.final());
+ input += std::make_pair(TLS_SERVER_LABEL, sizeof(TLS_SERVER_LABEL));
+ input += hash.final();
return prf.derive_key(12, secret, input);
}