]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
expose request in eaptls_operation
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Jun 2015 16:31:18 +0000 (10:31 -0600)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Thu, 4 Jun 2015 16:31:25 +0000 (10:31 -0600)
src/main/tls.c
src/modules/rlm_eap/libeap/eap_tls.c

index 5e5cf34961d7ab09b06d141752c704dcaec8b965..565f0495c46faf098e29de87a40d337545e6ebd5 100644 (file)
@@ -83,7 +83,7 @@ FR_NAME_NUMBER const fr_tls_status_table[] = {
        { "more fragments with length", FR_TLS_MORE_FRAGMENTS_WITH_LENGTH },
        { "handled",                    FR_TLS_HANDLED },
        {  NULL ,                       -1},
-}
+};
 
 /* Record critical defects in libssl here (newest first)*/
 static libssl_defect_t libssl_defects[] =
index c774774ff5b3f32d33ba7e00dad1f27000f4ae7e..251703e1fa544ee3c2688964756600e3180a11d3 100644 (file)
@@ -460,8 +460,7 @@ static EAPTLS_PACKET *eaptls_extract(REQUEST *request, EAP_DS *eap_ds, fr_tls_st
        uint32_t        len = 0;
        uint8_t         *data = NULL;
 
-       if (status  == FR_TLS_INVALID)
-               return NULL;
+       if (status == FR_TLS_INVALID) return NULL;
 
        /*
         *      The main EAP code & eaptls_verify() take care of
@@ -624,12 +623,10 @@ static EAPTLS_PACKET *eaptls_extract(REQUEST *request, EAP_DS *eap_ds, fr_tls_st
  *     SSL_CTX (internally) or TLS module(explicitly). If TLS module,
  *     then how to let SSL API know about these sessions.)
  */
-static fr_tls_status_t eaptls_operation(fr_tls_status_t status,
-                                       eap_handler_t *handler)
+static fr_tls_status_t eaptls_operation(fr_tls_status_t status, eap_handler_t *handler)
 {
-       tls_session_t *tls_session;
-
-       tls_session = (tls_session_t *)handler->opaque;
+       REQUEST         *request = handler->request;
+       tls_session_t   *tls_session = handler->opaque;
 
        if ((status == FR_TLS_MORE_FRAGMENTS) ||
            (status == FR_TLS_MORE_FRAGMENTS_WITH_LENGTH) ||