X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=libeap%2Feap_example%2Feap_example_peer.c;h=2ffc9fc8eade239aace79ff71b51ad985e0e8455;hb=4f319dde67a76fe0aaf33f6d2788968012584ada;hp=0b7d4173df5c7e810f22622ae8a3991d4e9b3ab9;hpb=ccf542544c4add8d720da2e5c9e048bab695732d;p=mech_eap.git diff --git a/libeap/eap_example/eap_example_peer.c b/libeap/eap_example/eap_example_peer.c index 0b7d417..2ffc9fc 100644 --- a/libeap/eap_example/eap_example_peer.c +++ b/libeap/eap_example/eap_example_peer.c @@ -3,14 +3,8 @@ * used as a library. * Copyright (c) 2007, Jouni Malinen * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * Alternatively, this software may be distributed under the terms of BSD - * license. - * - * See README and COPYING for more details. + * This software may be distributed under the terms of the BSD license. + * See README for more details. */ #include "includes.h" @@ -33,6 +27,7 @@ struct eap_peer_ctx { Boolean portEnabled; Boolean altAccept; /* for EAP */ Boolean altReject; /* for EAP */ + Boolean eapTriggerStart; struct wpabuf *eapReqData; /* for EAP */ @@ -77,6 +72,8 @@ static Boolean peer_get_bool(void *ctx, enum eapol_bool_var variable) return peer->altAccept; case EAPOL_altReject: return peer->altReject; + case EAPOL_eapTriggerStart: + return peer->eapTriggerStart; } return FALSE; } @@ -116,6 +113,9 @@ static void peer_set_bool(void *ctx, enum eapol_bool_var variable, case EAPOL_altReject: peer->altReject = value; break; + case EAPOL_eapTriggerStart: + peer->eapTriggerStart = value; + break; } }