mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
eap-peap: Introduce Protected EAP support
This commit is contained in:
parent
b33486a7c7
commit
20e74e8679
@ -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
|
||||
|
60
src/eap-peap.c
Normal file
60
src/eap-peap.c
Normal file
@ -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 <config.h>
|
||||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
#include <errno.h>
|
||||
#include <ell/ell.h>
|
||||
|
||||
#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)
|
Loading…
Reference in New Issue
Block a user