Mark session as resumed
authorAlan T. DeKok <aland@freeradius.org>
Fri, 29 Aug 2008 12:53:26 +0000 (14:53 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Fri, 29 Aug 2008 12:53:26 +0000 (14:53 +0200)
share/dictionary.freeradius.internal
src/modules/rlm_eap/libeap/eap_tls.c

index 86d9e09..4d2dd65 100644 (file)
@@ -188,6 +188,11 @@ ATTRIBUTE  Allow-Session-Resumption                1127    integer
 VALUE  Allow-Session-Resumption        no                      0
 VALUE  Allow-Session-Resumption        yes                     1
 
+ATTRIBUTE      EAP-Session-Resumed                     1128    integer
+
+VALUE  EAP-Session-Resumed             no                      0
+VALUE  EAP-Session-Resumed             yes                     1
+
 #
 #      Range:  1200-1279
 #              EAP-SIM (and other EAP type) weirdness.
index a1d0146..efdadd1 100644 (file)
@@ -177,6 +177,12 @@ int eaptls_success(EAP_HANDLER *handler, int peap_flag)
                RDEBUG("Adding cached attributes to the reply:");
                debug_pair_list(vp);
                pairadd(&request->reply->vps, paircopy(vp));            
+
+               /*
+                *      Mark the request as resumed.
+                */
+               radius_pairmake(request, &request->config_items,
+                               "EAP-Session-Resumed", "0", T_OP_SET);
        }
 
        /*