summaryrefslogtreecommitdiffstats
path: root/ssl/d1_msg.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2015-09-07 16:36:53 +0100
committerMatt Caswell <matt@openssl.org>2015-10-30 08:32:44 +0000
commit8723588e1b9a13511ffd7b806c73293120bc1f44 (patch)
tree37743b5fa29f0c50f8eacfc328179207e999e87a /ssl/d1_msg.c
parentb9908bf9b8d6d609736b537f4ecda720ff5dc078 (diff)
Implement Client TLS state machine
This swaps the implementation of the client TLS state machine to use the new state machine code instead. Reviewed-by: Tim Hudson <tjh@openssl.org> Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'ssl/d1_msg.c')
-rw-r--r--ssl/d1_msg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ssl/d1_msg.c b/ssl/d1_msg.c
index 13bda46922..e35c9356a4 100644
--- a/ssl/d1_msg.c
+++ b/ssl/d1_msg.c
@@ -127,8 +127,7 @@ int dtls1_write_app_data_bytes(SSL *s, int type, const void *buf_, int len)
*/
if ((SSL_in_init(s) && !s->in_handshake) ||
(BIO_dgram_is_sctp(SSL_get_wbio(s)) &&
- (s->state == DTLS1_SCTP_ST_SR_READ_SOCK
- || s->state == DTLS1_SCTP_ST_CR_READ_SOCK)))
+ statem_in_sctp_read_sock(s)))
#else
if (SSL_in_init(s) && !s->in_handshake)
#endif