aboutsummaryrefslogtreecommitdiffstats
path: root/src/tls/tls_channel.cpp
diff options
context:
space:
mode:
authorlloyd <[email protected]>2012-08-08 18:22:12 +0000
committerlloyd <[email protected]>2012-08-08 18:22:12 +0000
commit67dc8001da77de044c21a262087e666fe205c10f (patch)
treed2e50e65b03f1792209f88f32f49420985b01b64 /src/tls/tls_channel.cpp
parent1f8370e2a54a68a1fb18cb48babf721086e45dc3 (diff)
DTLS needs some help with ChangeCipherSpec because it is not included
in the message_seq count. When we are asking for the next handshake msg, tell the handshake IO layer if we are expecting a CCS or not. Then DTLS just needs to track which epoch(s) it has seen the CCS for, and which epoch it is currently in. This is all ignored by the stream IO layer.
Diffstat (limited to 'src/tls/tls_channel.cpp')
-rw-r--r--src/tls/tls_channel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tls/tls_channel.cpp b/src/tls/tls_channel.cpp
index ed1c5fc75..3e5bdbabd 100644
--- a/src/tls/tls_channel.cpp
+++ b/src/tls/tls_channel.cpp
@@ -79,7 +79,7 @@ size_t Channel::received_data(const byte buf[], size_t buf_size)
while(m_state)
{
- auto msg = m_state->handshake_io().get_next_record();
+ auto msg = m_state->get_next_handshake_msg();
if(msg.first == HANDSHAKE_NONE) // no full handshake yet
break;