aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/msg_hello_verify.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-09-07 00:25:04 +0000
committerlloyd <[email protected]>2012-09-07 00:25:04 +0000
commit70781697af4a4f6d94f04198b25a556d0a78ee81 (patch)
tree05bd7292f9046dedba36782dfd78f1e1bcd0ad5d /src/tls/msg_hello_verify.cpp
parentd25cad6ab69d4869e5a966a9f9c7f5b73e3790a3 (diff)
Remove bogus forced 64 byte mtu.
Fix DTLS CCS sequence number reset. Handle (partially) explicit sequence numbers in records. Need to output the record.
Diffstat (limited to 'src/tls/msg_hello_verify.cpp')
-rw-r--r--src/tls/msg_hello_verify.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/tls/msg_hello_verify.cpp b/src/tls/msg_hello_verify.cpp
index 19597e9df..f8a117c03 100644
--- a/src/tls/msg_hello_verify.cpp
+++ b/src/tls/msg_hello_verify.cpp
@@ -29,8 +29,7 @@ Hello_Verify_Request::Hello_Verify_Request(const std::vector<byte>& buf)
if(static_cast<size_t>(buf[2]) + 3 != buf.size())
throw Decoding_Error("Bad length in hello verify request");
- m_cookie.resize(buf.size() - 3);
- copy_mem(&m_cookie[0], &buf[3], buf.size() - 3);
+ m_cookie.assign(&buf[3], &buf[buf.size()]);
}
Hello_Verify_Request::Hello_Verify_Request(const std::vector<byte>& client_hello_bits,