From 1e888c85edcd0582e3a409b75c4ed1339f380fef Mon Sep 17 00:00:00 2001 From: "Alan T. DeKok" Date: Fri, 29 Aug 2008 14:53:26 +0200 Subject: [PATCH] Mark session as resumed --- share/dictionary.freeradius.internal | 5 +++++ src/modules/rlm_eap/libeap/eap_tls.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/share/dictionary.freeradius.internal b/share/dictionary.freeradius.internal index 86d9e09..4d2dd65 100644 --- a/share/dictionary.freeradius.internal +++ b/share/dictionary.freeradius.internal @@ -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. diff --git a/src/modules/rlm_eap/libeap/eap_tls.c b/src/modules/rlm_eap/libeap/eap_tls.c index a1d0146..efdadd1 100644 --- a/src/modules/rlm_eap/libeap/eap_tls.c +++ b/src/modules/rlm_eap/libeap/eap_tls.c @@ -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); } /* -- 2.1.4