]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
redo 0c8312d95 for EAP-TLS
authorAlan T. DeKok <aland@freeradius.org>
Wed, 28 Aug 2024 11:45:42 +0000 (07:45 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 28 Aug 2024 11:46:16 +0000 (07:46 -0400)
undo some changes made for TEAP, which it turns out broke some
EAP-TLS clients

src/modules/rlm_eap/types/rlm_eap_tls/rlm_eap_tls.c

index 482fdca64066835ed3b49ce7b87ea9f36d7ac6ac..0d9b5432c170d1f587ae20ff5d9dd58aa15adf19 100644 (file)
@@ -122,13 +122,7 @@ static int mod_session_init(void *type_arg, eap_handler_t *handler)
         *      TLS session initialization is over.  Now handle TLS
         *      related handshaking or application data.
         */
-       status = eaptls_request(handler->eap_ds, ssn, true);
-       if ((status == FR_TLS_INVALID) || (status == FR_TLS_FAIL)) {
-               REDEBUG("[eaptls start] = %s", fr_int2str(fr_tls_status_table, status, "<INVALID>"));
-       } else {
-               RDEBUG3("[eaptls start] = %s", fr_int2str(fr_tls_status_table, status, "<INVALID>"));
-       }
-       if (status == 0) return 0;
+       eaptls_start(handler->eap_ds, ssn->peap_flag);
 
        /*
         *      The next stage to process the packet.