diff --git a/Makefile.am b/Makefile.am index d58edf0d..8f4a922d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -97,6 +97,7 @@ src_iwd_SOURCES = src/main.c linux/nl80211.h \ src/ap.h src/ap.c \ src/simauth.h src/simauth.c \ src/plugin.h src/plugin.c \ + src/eap-peap.c \ $(builtin_sources) src_iwd_LDADD = ell/libell-internal.la -ldl diff --git a/src/eap-peap.c b/src/eap-peap.c new file mode 100644 index 00000000..769c6ce9 --- /dev/null +++ b/src/eap-peap.c @@ -0,0 +1,60 @@ +/* + * + * Wireless daemon for Linux + * + * Copyright (C) 2018 Intel Corporation. All rights reserved. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + * + */ + +#ifdef HAVE_CONFIG_H +#include +#endif + +#include +#include +#include +#include + +#include "eap.h" + +static void eap_peap_handle_request(struct eap_state *eap, + const uint8_t *pkt, size_t len) +{ + eap_method_error(eap); +} + +static struct eap_method eap_peap = { + .request_type = EAP_TYPE_PEAP, + .name = "PEAP", + .exports_msk = true, + + .handle_request = eap_peap_handle_request, +}; + +static int eap_peap_init(void) +{ + l_debug(""); + return eap_register_method(&eap_peap); +} + +static void eap_peap_exit(void) +{ + l_debug(""); + eap_unregister_method(&eap_peap); +} + +EAP_METHOD_BUILTIN(eap_peap, eap_peap_init, eap_peap_exit)