RDEBUG2("Saving response in the cache");
vp = paircopy2(request->reply->vps, PW_USER_NAME, 0);
- pairadd(&vps, vp);
+ if (vp) pairadd(&vps, vp);
vp = paircopy2(request->packet->vps, PW_STRIPPED_USER_NAME, 0);
- pairadd(&vps, vp);
+ if (vp) pairadd(&vps, vp);
+
+ vp = paircopy2(request->reply->vps, PW_CACHED_SESSION_POLICY, 0);
+ if (vp) pairadd(&vps, vp);
if (vps) {
SSL_SESSION_set_ex_data(tls_session->ssl->session,
eaptls_status_t status;
REQUEST *request = handler->request;
+ rad_assert(request != NULL);
+
RDEBUG2("processing EAP-TLS");
+ if (handler->certs) pairadd(&request->packet->vps,
+ paircopy(handler->certs));
/* This case is when SSL generates Alert then we
* send that alert to the client and then send the EAP-Failure