projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1193e18
)
Get session resumption working for EAP-TLS, too
author
Alan T. DeKok
<aland@freeradius.org>
Wed, 24 Sep 2008 15:12:23 +0000
(17:12 +0200)
committer
Alan T. DeKok
<aland@freeradius.org>
Wed, 24 Sep 2008 15:12:23 +0000
(17:12 +0200)
src/modules/rlm_eap/libeap/eap_tls.c
patch
|
blob
|
history
diff --git
a/src/modules/rlm_eap/libeap/eap_tls.c
b/src/modules/rlm_eap/libeap/eap_tls.c
index
4969d91
..
cd95bec
100644
(file)
--- a/
src/modules/rlm_eap/libeap/eap_tls.c
+++ b/
src/modules/rlm_eap/libeap/eap_tls.c
@@
-168,21
+168,17
@@
int eaptls_success(EAP_HANDLER *handler, int peap_flag)
eaptls_session_idx);
if (!vp) {
RDEBUG("WARNING: No information in cached session!");
eaptls_session_idx);
if (!vp) {
RDEBUG("WARNING: No information in cached session!");
+ } else {
+ RDEBUG("Adding cached attributes to the reply:");
+ debug_pair_list(vp);
+ pairadd(&request->reply->vps, paircopy(vp));
+
/*
/*
- *
FIXME: Call eaptls_fail, and return 0
+ *
Mark the request as resumed.
*/
*/
- return 1;
+ vp = pairmake("EAP-Session-Resumed", "0", T_OP_SET);
+ if (vp) pairadd(&request->packet->vps, vp);
}
}
-
- RDEBUG("Adding cached attributes to the reply:");
- debug_pair_list(vp);
- pairadd(&request->reply->vps, paircopy(vp));
-
- /*
- * Mark the request as resumed.
- */
- vp = pairmake("EAP-Session-Resumed", "0", T_OP_SET);
- if (vp) pairadd(&request->packet->vps, vp);
}
/*
}
/*