Updated through tag hostap_2_5 from git://w1.fi/hostap.git
[mech_eap.git] / libeap / eap_example / eap_example_peer.c
index 0b7d417..2ffc9fc 100644 (file)
@@ -3,14 +3,8 @@
  * used as a library.
  * Copyright (c) 2007, Jouni Malinen <j@w1.fi>
  *
- * 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;
        }
 }