SSL_set_msg_callback_arg(tls_session->ssl, tls_session);
SSL_set_info_callback(tls_session->ssl, fr_tls_session_info_cb);
+ /*
+ * In Client mode we only accept.
+ *
+ * This sets up the SSL session to work correctly with
+ * fr_tls_session_handshake.
+ */
+ SSL_set_connect_state(tls_session->ssl);
+
/*
* Always verify the peer certificate.
*/
* In Server mode we only accept.
*
* This sets up the SSL session to work correctly with
- * fr_tls_session_handhsake.
+ * fr_tls_session_handshake.
*/
SSL_set_accept_state(tls_session->ssl);