Fix sctp compile errors
[openssl.git] / ssl / statem / statem.c
index 138bca220cf87d08bd9129850f51aff4926dea99..448d655a17cf772b67b990e986d7d62a2d68daeb 100644 (file)
@@ -116,6 +116,11 @@ int SSL_in_before(const SSL *s)
         && (sc->statem.state == MSG_FLOW_UNINITED);
 }
 
+OSSL_HANDSHAKE_STATE ossl_statem_get_state(SSL_CONNECTION *s)
+{
+    return s != NULL ? s->statem.hand_state : TLS_ST_BEFORE;
+}
+
 /*
  * Clear the state machine state and reset back to MSG_FLOW_UNINITED
  */