]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Use SSL_is_init_finished instead of checking the last handshake_type
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 20 Jan 2019 09:59:03 +0000 (16:59 +0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Sun, 20 Jan 2019 14:44:11 +0000 (21:44 +0700)
This fixes some compatibility issues with TLS 1.3.  We still disagree on MPPE keys with eapol_test though...

src/lib/eap/tls.c

index 2b10ececcbb496f7be228ab44146ae799b5f31c4..f3cc449174c3409109bf620bd652ecffccc0f5eb 100644 (file)
@@ -496,8 +496,8 @@ static eap_tls_status_t eap_tls_session_status(eap_session_t *eap_session)
                RDEBUG2("Peer ACKed our alert");
                return EAP_TLS_FAIL;
 
-               if ((tls_session->info.handshake_type == handshake_finished) && (tls_session->dirty_out.used == 0)) {
        case SSL3_RT_HANDSHAKE:
+               if (SSL_is_init_finished(tls_session->ssl) && (tls_session->dirty_out.used == 0)) {
                        RDEBUG2("Peer ACKed our handshake fragment.  handshake is finished");
 
                        /*