2 * peap.c contains the interfaces that are called from eap
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 * Copyright 2003 Alan DeKok <aland@freeradius.org>
21 * Copyright 2006 The FreeRADIUS server project
24 #include <freeradius-devel/ident.h>
30 * Send protected EAP-Failure
32 * Result-TLV = Failure
34 static int eappeap_failure(EAP_HANDLER *handler, tls_session_t *tls_session)
36 uint8_t tlv_packet[11];
37 REQUEST *request = handler->request;
41 tlv_packet[0] = PW_EAP_REQUEST;
42 tlv_packet[1] = handler->eap_ds->response->id +1;
44 tlv_packet[3] = 11; /* length of this packet */
45 tlv_packet[4] = PW_EAP_TLV;
47 tlv_packet[6] = EAP_TLV_ACK_RESULT;
49 tlv_packet[8] = 2; /* length of the data portion */
51 tlv_packet[10] = EAP_TLV_FAILURE;
53 (tls_session->record_plus)(&tls_session->clean_in, tlv_packet, 11);
56 * FIXME: Check the return code.
58 tls_handshake_send(tls_session);
65 * Send protected EAP-Success
67 * Result-TLV = Success
69 static int eappeap_success(EAP_HANDLER *handler, tls_session_t *tls_session)
71 uint8_t tlv_packet[11];
72 REQUEST *request = handler->request;
76 tlv_packet[0] = PW_EAP_REQUEST;
77 tlv_packet[1] = handler->eap_ds->response->id +1;
79 tlv_packet[3] = 11; /* length of this packet */
80 tlv_packet[4] = PW_EAP_TLV;
81 tlv_packet[5] = 0x80; /* mandatory AVP */
82 tlv_packet[6] = EAP_TLV_ACK_RESULT;
84 tlv_packet[8] = 2; /* length of the data portion */
86 tlv_packet[10] = EAP_TLV_SUCCESS;
88 (tls_session->record_plus)(&tls_session->clean_in, tlv_packet, 11);
91 * FIXME: Check the return code.
93 tls_handshake_send(tls_session);
100 * Verify the tunneled EAP message.
102 static int eapmessage_verify(REQUEST *request,
103 const uint8_t *data, unsigned int data_len)
105 const eap_packet_t *eap_packet = (const eap_packet_t *) data;
110 * No data, OR only 1 byte of EAP type.
112 if (!data || (data_len == 0) ||
113 ((data_len <= 1) && (data[0] != PW_EAP_IDENTITY))) {
119 case PW_EAP_IDENTITY:
121 RDEBUG2("Identity - ");
124 RDEBUG2("Identity - %*s",
125 data_len - 1, data + 1);
130 * If the first byte of the packet is
131 * EAP-Response, and the EAP data is a TLV,
132 * then it looks OK...
134 case PW_EAP_RESPONSE:
135 if (eap_packet->data[0] == PW_EAP_TLV) {
136 RDEBUG2("Received EAP-TLV response.");
139 RDEBUG2("Got something weird.");
144 * We normally do Microsoft MS-CHAPv2 (26), versus
145 * Cisco MS-CHAPv2 (29).
147 case PW_EAP_MSCHAPV2:
149 RDEBUG2("EAP type %s",
150 eaptype_type2name(eap_type,
151 buffer, sizeof(buffer)));
160 * Convert a pseudo-EAP packet to a list of VALUE_PAIR's.
162 static VALUE_PAIR *eap2vp(REQUEST *request, EAP_DS *eap_ds,
163 const uint8_t *data, size_t data_len)
166 VALUE_PAIR *vp = NULL, *head, **tail;
168 if (data_len > 65535) return NULL; /* paranoia */
170 vp = paircreate(PW_EAP_MESSAGE, 0, PW_TYPE_OCTETS);
172 RDEBUG2("Failure in creating VP");
177 if (total > 249) total = 249;
180 * Hand-build an EAP packet from the crap in PEAP version 0.
182 vp->vp_octets[0] = PW_EAP_RESPONSE;
183 vp->vp_octets[1] = eap_ds->response->id;
184 vp->vp_octets[2] = (data_len + EAP_HEADER_LEN) >> 8;
185 vp->vp_octets[3] = (data_len + EAP_HEADER_LEN) & 0xff;
187 memcpy(vp->vp_octets + EAP_HEADER_LEN, data, total);
188 vp->length = EAP_HEADER_LEN + total;
192 while (total < data_len) {
196 vp = paircreate(PW_EAP_MESSAGE, 0, PW_TYPE_OCTETS);
198 RDEBUG2("Failure in creating VP");
202 vp_len = (data_len - total);
203 if (vp_len > 253) vp_len = 253;
205 memcpy(vp->vp_octets, data + total, vp_len);
218 * Convert a list of VALUE_PAIR's to an EAP packet, through the
219 * simple expedient of dumping the EAP message
221 static int vp2eap(tls_session_t *tls_session, VALUE_PAIR *vp)
224 * Skip the id, code, and length. Just write the EAP
225 * type & data to the client.
228 if ((debug_flag > 2) && fr_log_fp) {
234 for (this = vp; this != NULL; this = this->next) {
237 if (this == vp) start = EAP_HEADER_LEN;
239 for (i = start; i < vp->length; i++) {
240 if ((total & 0x0f) == 0) fprintf(fr_log_fp, " PEAP tunnel data out %04x: ", (int) total);
242 fprintf(fr_log_fp, "%02x ", vp->vp_octets[i]);
244 if ((total & 0x0f) == 0x0f) fprintf(fr_log_fp, "\n");
248 if ((total & 0x0f) != 0) fprintf(fr_log_fp, "\n");
253 * Send the EAP data, WITHOUT the header.
255 (tls_session->record_plus)(&tls_session->clean_in,
256 vp->vp_octets + EAP_HEADER_LEN,
257 vp->length - EAP_HEADER_LEN);
260 * Send the rest of the EAP data.
262 for (vp = vp->next; vp != NULL; vp = vp->next) {
263 (tls_session->record_plus)(&tls_session->clean_in,
264 vp->vp_octets, vp->length);
267 tls_handshake_send(tls_session);
274 * See if there's a TLV in the response.
276 static int eappeap_check_tlv(REQUEST *request, const uint8_t *data)
278 const eap_packet_t *eap_packet = (const eap_packet_t *) data;
281 * Look for success or failure.
283 if ((eap_packet->code == PW_EAP_RESPONSE) &&
284 (eap_packet->data[0] == PW_EAP_TLV)) {
285 if (data[10] == EAP_TLV_SUCCESS) {
289 if (data[10] == EAP_TLV_FAILURE) {
290 RDEBUG2("Client rejected our response. The password is probably incorrect.");
300 * Use a reply packet to determine what to do.
302 static int process_reply(EAP_HANDLER *handler, tls_session_t *tls_session,
303 REQUEST *request, RADIUS_PACKET *reply)
305 int rcode = RLM_MODULE_REJECT;
307 peap_tunnel_t *t = tls_session->opaque;
309 if ((debug_flag > 0) && fr_log_fp) {
310 RDEBUG("Got tunneled reply RADIUS code %d",
313 debug_pair_list(reply->vps);
316 switch (reply->code) {
317 case PW_AUTHENTICATION_ACK:
318 RDEBUG2("Tunneled authentication was successful.");
319 t->status = PEAP_STATUS_SENT_TLV_SUCCESS;
320 eappeap_success(handler, tls_session);
321 rcode = RLM_MODULE_HANDLED;
324 * If we've been told to use the attributes from
325 * the reply, then do so.
327 * WARNING: This may leak information about the
330 if (t->use_tunneled_reply) {
331 RDEBUG2("Saving tunneled attributes for later");
334 * Clean up the tunneled reply.
336 pairdelete(&reply->vps, PW_PROXY_STATE, 0);
337 pairdelete(&reply->vps, PW_EAP_MESSAGE, 0);
338 pairdelete(&reply->vps, PW_MESSAGE_AUTHENTICATOR, 0);
340 t->accept_vps = reply->vps;
345 case PW_AUTHENTICATION_REJECT:
346 RDEBUG2("Tunneled authentication was rejected.");
347 t->status = PEAP_STATUS_SENT_TLV_FAILURE;
348 eappeap_failure(handler, tls_session);
349 rcode = RLM_MODULE_HANDLED;
352 case PW_ACCESS_CHALLENGE:
353 RDEBUG2("Got tunneled Access-Challenge");
356 * Keep the State attribute, if necessary.
358 * Get rid of the old State, too.
361 pairmove2(&t->state, &(reply->vps), PW_STATE, 0);
364 * PEAP takes only EAP-Message attributes inside
365 * of the tunnel. Any Reply-Message in the
366 * Access-Challenge is ignored.
369 pairmove2(&vp, &(reply->vps), PW_EAP_MESSAGE, 0);
372 * Handle EAP-MSCHAP-V2, where Access-Accept's
373 * from the home server may contain MS-CHAP-Success,
374 * which the module turns into challenges, so that
375 * the client may respond to the challenge with
378 if (t->home_access_accept && t->use_tunneled_reply) {
379 RDEBUG2("Saving tunneled attributes for later");
382 * Clean up the tunneled reply.
384 pairdelete(&reply->vps, PW_PROXY_STATE, 0);
385 pairdelete(&reply->vps, PW_MESSAGE_AUTHENTICATOR, 0);
387 t->accept_vps = reply->vps;
392 * Handle the ACK, by tunneling any necessary reply
393 * VP's back to the client.
396 vp2eap(tls_session, vp);
400 rcode = RLM_MODULE_HANDLED;
404 RDEBUG2("Unknown RADIUS packet type %d: rejecting tunneled user", reply->code);
405 rcode = RLM_MODULE_REJECT;
414 * Do post-proxy processing,
416 static int eappeap_postproxy(EAP_HANDLER *handler, void *data)
419 tls_session_t *tls_session = (tls_session_t *) data;
420 REQUEST *fake, *request = handler->request;
422 RDEBUG2("Passing reply from proxy back into the tunnel.");
425 * If there was a fake request associated with the proxied
426 * request, do more processing of it.
428 fake = (REQUEST *) request_data_get(handler->request,
429 handler->request->proxy,
430 REQUEST_DATA_EAP_MSCHAP_TUNNEL_CALLBACK);
433 * Do the callback, if it exists, and if it was a success.
435 if (fake && (handler->request->proxy_reply->code == PW_AUTHENTICATION_ACK)) {
436 peap_tunnel_t *t = tls_session->opaque;
438 t->home_access_accept = TRUE;
443 rad_assert(fake->packet == NULL);
444 fake->packet = request->proxy;
445 fake->packet->src_ipaddr = request->packet->src_ipaddr;
446 request->proxy = NULL;
448 rad_assert(fake->reply == NULL);
449 fake->reply = request->proxy_reply;
450 request->proxy_reply = NULL;
452 if ((debug_flag > 0) && fr_log_fp) {
453 fprintf(fr_log_fp, "server %s {\n", fake->server);
457 * Perform a post-auth stage, which will get the EAP
460 fake->options &= ~RAD_REQUEST_OPTION_PROXY_EAP;
461 RDEBUG2("Passing reply back for EAP-MS-CHAP-V2");
462 rcode = module_post_proxy(0, fake);
465 * FIXME: If rcode returns fail, do something
468 rcode = rad_postauth(fake);
470 if ((debug_flag > 0) && fr_log_fp) {
471 fprintf(fr_log_fp, "} # server %s\n", fake->server);
473 RDEBUG("Final reply from tunneled session code %d",
476 debug_pair_list(fake->reply->vps);
482 request->proxy = fake->packet;
484 request->proxy_reply = fake->reply;
488 * And we're done with this request.
492 case RLM_MODULE_FAIL:
494 eaptls_fail(handler, 0);
498 default: /* Don't Do Anything */
499 RDEBUG2("Got reply %d", request->proxy_reply->code);
503 request_free(&fake); /* robust if fake == NULL */
506 * If there was no EAP-Message in the reply packet, then
507 * we know that we're supposed to re-run the "authenticate"
508 * stage, in order to get the right kind of handling...
512 * Process the reply from the home server.
515 rcode = process_reply(handler, tls_session, handler->request,
516 handler->request->proxy_reply);
519 * The proxy code uses the reply from the home server as
520 * the basis for the reply to the NAS. We don't want that,
521 * so we toss it, after we've had our way with it.
523 pairfree(&handler->request->proxy_reply->vps);
526 case RLM_MODULE_REJECT:
527 RDEBUG2("Reply was rejected");
528 eaptls_fail(handler, 0);
531 case RLM_MODULE_HANDLED:
532 RDEBUG2("Reply was handled");
533 eaptls_request(handler->eap_ds, tls_session);
537 RDEBUG2("Reply was OK");
540 * Success: Automatically return MPPE keys.
542 return eaptls_success(handler, 0);
545 RDEBUG2("Reply was unknown.");
549 eaptls_fail(handler, 0);
556 static void my_request_free(void *data)
558 REQUEST *request = (REQUEST *)data;
560 request_free(&request);
565 static void print_tunneled_data(uint8_t *data, size_t data_len)
569 if ((debug_flag > 2) && fr_log_fp) {
570 for (i = 0; i < data_len; i++) {
571 if ((i & 0x0f) == 0) fprintf(fr_log_fp, " PEAP tunnel data in %04x: ", i);
573 fprintf(fr_log_fp, "%02x ", data[i]);
575 if ((i & 0x0f) == 0x0f) fprintf(fr_log_fp, "\n");
577 if ((data_len & 0x0f) != 0) fprintf(fr_log_fp, "\n");
583 * Process the pseudo-EAP contents of the tunneled data.
585 int eappeap_process(EAP_HANDLER *handler, tls_session_t *tls_session)
587 peap_tunnel_t *t = tls_session->opaque;
590 int rcode = RLM_MODULE_REJECT;
592 unsigned int data_len;
594 REQUEST *request = handler->request;
595 EAP_DS *eap_ds = handler->eap_ds;
598 * Just look at the buffer directly, without doing
599 * record_minus. This lets us avoid another data copy.
601 data_len = tls_session->clean_out.used;
602 tls_session->clean_out.used = 0;
603 data = tls_session->clean_out.data;
605 if (!eapmessage_verify(request, data, data_len)) {
606 RDEBUG2("FAILED processing PEAP: Tunneled data is invalid.");
607 if (debug_flag > 2) print_tunneled_data(data, data_len);
608 return RLM_MODULE_REJECT;
612 * If we authenticated the user, then it's OK.
614 if (t->status == PEAP_STATUS_SENT_TLV_SUCCESS) {
615 if (eappeap_check_tlv(request, data)) {
617 return RLM_MODULE_OK;
621 * Otherwise, the client rejected the session
622 * resumption. If the session is being re-used,
623 * we need to do a full authentication.
625 * We do this by sending an EAP-Identity request
626 * inside of the PEAP tunnel.
628 if ((t->session_resumption_state != PEAP_RESUMPTION_NO) &&
629 SSL_session_reused(tls_session->ssl)) {
630 eap_packet_t eap_packet;
632 RDEBUG2("Client rejected session resumption. Re-starting full authentication");
633 eap_packet.code = PW_EAP_REQUEST;
634 eap_packet.id = handler->eap_ds->response->id + 1;
635 eap_packet.length[0] = 0;
636 eap_packet.length[1] = EAP_HEADER_LEN + 1;
637 eap_packet.data[0] = PW_EAP_IDENTITY;
640 * Mark session resumption status.
643 t->session_resumption_state = PEAP_RESUMPTION_NO;
645 (tls_session->record_plus)(&tls_session->clean_in,
648 tls_handshake_send(tls_session);
649 return RLM_MODULE_HANDLED;
652 return RLM_MODULE_REJECT;
657 * Damned if I know why the clients continue sending EAP
658 * packets after we told them to f*ck off.
660 if (t->status == PEAP_STATUS_SENT_TLV_FAILURE) {
661 RDEBUG(" The users session was previously rejected: returning reject (again.)");
662 RDEBUG(" *** This means you need to read the PREVIOUS messages in the debug output");
663 RDEBUG(" *** to find out the reason why the user was rejected.");
664 RDEBUG(" *** Look for \"reject\" or \"fail\". Those earlier messages will tell you.");
665 RDEBUG(" *** what went wrong, and how to fix the problem.");
666 return RLM_MODULE_REJECT;
669 fake = request_alloc_fake(request);
671 rad_assert(fake->packet->vps == NULL);
673 fake->packet->vps = eap2vp(request, eap_ds, data, data_len);
674 if (!fake->packet->vps) {
676 RDEBUG2("Unable to convert tunneled EAP packet to internal server data structures");
677 return PW_AUTHENTICATION_REJECT;
680 if ((debug_flag > 0) && fr_log_fp) {
681 RDEBUG("Got tunneled request");
683 debug_pair_list(fake->packet->vps);
685 fprintf(fr_log_fp, "server %s {\n",
686 (fake->server == NULL) ? "" : fake->server);
690 * Tell the request that it's a fake one.
692 vp = pairmake("Freeradius-Proxied-To", "127.0.0.1", T_OP_EQ);
694 pairadd(&fake->packet->vps, vp);
698 * Update other items in the REQUEST data structure.
702 * There's no User-Name in the tunneled session,
703 * so we add one here, by pulling it out of the
704 * EAP-Identity packet.
706 if ((data[0] == PW_EAP_IDENTITY) && (data_len > 1)) {
707 t->username = pairmake("User-Name", "", T_OP_EQ);
708 rad_assert(t->username != NULL);
710 memcpy(t->username->vp_strvalue, data + 1, data_len - 1);
711 t->username->length = data_len - 1;
712 t->username->vp_strvalue[t->username->length] = 0;
713 DEBUG2(" PEAP: Got tunneled identity of %s", t->username->vp_strvalue);
716 * If there's a default EAP type,
719 if (t->default_eap_type != 0) {
720 DEBUG2(" PEAP: Setting default EAP type for tunneled EAP session.");
721 vp = pairmake("EAP-Type", "0", T_OP_EQ);
722 vp->vp_integer = t->default_eap_type;
723 pairadd(&fake->config_items, vp);
726 } /* else there WAS a t->username */
729 vp = paircopy(t->username);
730 pairadd(&fake->packet->vps, vp);
731 fake->username = pairfind(fake->packet->vps, PW_USER_NAME, 0);
732 DEBUG2(" PEAP: Setting User-Name to %s",
733 fake->username->vp_strvalue);
737 * Add the State attribute, too, if it exists.
740 vp = paircopy(t->state);
741 if (vp) pairadd(&fake->packet->vps, vp);
745 * If this is set, we copy SOME of the request attributes
746 * from outside of the tunnel to inside of the tunnel.
748 * We copy ONLY those attributes which do NOT already
749 * exist in the tunneled request.
751 * This code is copied from ../rlm_eap_ttls/ttls.c
753 if (t->copy_request_to_tunnel) {
756 for (vp = request->packet->vps; vp != NULL; vp = vp->next) {
758 * The attribute is a server-side thingy,
761 if ((vp->attribute > 255) &&
767 * The outside attribute is already in the
768 * tunnel, don't copy it.
770 * This works for BOTH attributes which
771 * are originally in the tunneled request,
772 * AND attributes which are copied there
775 if (pairfind(fake->packet->vps, vp->attribute, vp->vendor)) {
780 * Some attributes are handled specially.
782 switch (vp->attribute) {
784 * NEVER copy Message-Authenticator,
785 * EAP-Message, or State. They're
786 * only for outside of the tunnel.
789 case PW_USER_PASSWORD:
790 case PW_CHAP_PASSWORD:
791 case PW_CHAP_CHALLENGE:
793 case PW_MESSAGE_AUTHENTICATOR:
800 * By default, copy it over.
807 * Don't copy from the head, we've already
810 copy = paircopy2(vp, vp->attribute, vp->vendor);
811 pairadd(&fake->packet->vps, copy);
815 if ((vp = pairfind(request->config_items, PW_VIRTUAL_SERVER, 0)) != NULL) {
816 fake->server = vp->vp_strvalue;
818 } else if (t->virtual_server) {
819 fake->server = t->virtual_server;
821 } /* else fake->server == request->server */
823 if ((debug_flag > 0) && fr_log_fp) {
824 fprintf(fr_log_fp, "Sending tunneled request\n");
826 debug_pair_list(fake->packet->vps);
828 fprintf(fr_log_fp, "server %s {\n",
829 (fake->server == NULL) ? "" : fake->server);
833 * Call authentication recursively, which will
834 * do PAP, CHAP, MS-CHAP, etc.
836 rad_authenticate(fake);
839 * Note that we don't do *anything* with the reply
842 if ((debug_flag > 0) && fr_log_fp) {
843 fprintf(fr_log_fp, "} # server %s\n",
844 (fake->server == NULL) ? "" : fake->server);
846 RDEBUG("Got tunneled reply code %d", fake->reply->code);
848 debug_pair_list(fake->reply->vps);
852 * Decide what to do with the reply.
854 switch (fake->reply->code) {
855 case 0: /* No reply code, must be proxied... */
857 vp = pairfind(fake->config_items, PW_PROXY_TO_REALM, 0);
860 eap_tunnel_data_t *tunnel;
863 * The tunneled request was NOT handled,
864 * it has to be proxied. This means that
865 * the "authenticate" stage was never
868 * If we are told to NOT proxy the
869 * tunneled request as EAP, then this
870 * means that we've got to decode it,
871 * which means that we MUST run the
872 * "authenticate" portion by hand, here.
874 * Once the tunneled EAP session is ALMOST
875 * done, THEN we proxy it...
877 if (!t->proxy_tunneled_request_as_eap) {
878 fake->options |= RAD_REQUEST_OPTION_PROXY_EAP;
881 * Hmm... should we check for
882 * Auth-Type & EAP-Message here?
887 * Run the EAP authentication.
889 DEBUG2(" PEAP: Calling authenticate in order to initiate tunneled EAP session.");
890 rcode = module_authenticate(PW_AUTHTYPE_EAP, fake);
891 if (rcode == RLM_MODULE_OK) {
893 * Authentication succeeded! Rah!
895 fake->reply->code = PW_AUTHENTICATION_ACK;
899 if (rcode != RLM_MODULE_HANDLED) {
900 DEBUG2(" PEAP: Can't handle the return code %d", rcode);
901 rcode = RLM_MODULE_REJECT;
906 * The module decided it wasn't
907 * done. Handle it like normal.
909 if ((fake->options & RAD_REQUEST_OPTION_PROXY_EAP) == 0) {
910 DEBUG2(" PEAP: Cancelling proxy to realm %s until the tunneled EAP session has been established", vp->vp_strvalue);
915 * The module has decoded the
916 * EAP-Message into another set
919 pairdelete(&fake->packet->vps,
923 DEBUG2(" PEAP: Tunneled authentication will be proxied to %s", vp->vp_strvalue);
926 * Tell the original request that it's going
929 pairmove2(&(request->config_items),
930 &(fake->config_items),
931 PW_PROXY_TO_REALM, 0);
934 * Seed the proxy packet with the
937 rad_assert(request->proxy == NULL);
938 request->proxy = fake->packet;
940 rad_free(&fake->reply);
944 * Set up the callbacks for the tunnel
946 tunnel = rad_malloc(sizeof(*tunnel));
947 memset(tunnel, 0, sizeof(*tunnel));
949 tunnel->tls_session = tls_session;
950 tunnel->callback = eappeap_postproxy;
953 * Associate the callback with the request.
955 rcode = request_data_add(request,
957 REQUEST_DATA_EAP_TUNNEL_CALLBACK,
959 rad_assert(rcode == 0);
962 * We're not proxying it as EAP, so we've got
963 * to do the callback later.
965 if ((fake->options & RAD_REQUEST_OPTION_PROXY_EAP) != 0) {
966 DEBUG2(" PEAP: Remembering to do EAP-MS-CHAP-V2 post-proxy.");
969 * rlm_eap.c has taken care of associating
970 * the handler with the fake request.
972 * So we associate the fake request with
975 rcode = request_data_add(request,
977 REQUEST_DATA_EAP_MSCHAP_TUNNEL_CALLBACK,
978 fake, my_request_free);
979 rad_assert(rcode == 0);
982 * Do NOT free the fake request!
984 return RLM_MODULE_UPDATED;
988 * Didn't authenticate the packet, but
991 rcode = RLM_MODULE_UPDATED;
994 #endif /* WITH_PROXY */
996 DEBUG2(" PEAP: Unknown RADIUS packet type %d: rejecting tunneled user", fake->reply->code);
997 rcode = RLM_MODULE_REJECT;
1003 rcode = process_reply(handler, tls_session, request,
1009 request_free(&fake);