mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-10-06 11:28:38 +02:00
61 lines
1.5 KiB
C
61 lines
1.5 KiB
C
|
/*
|
||
|
*
|
||
|
* 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)
|