mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
build: Add support for including fallbacks for missing defines
This commit is contained in:
parent
923ac09cb6
commit
3f3e778719
@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/crypto.h"
|
#include "src/crypto.h"
|
||||||
|
|
||||||
/* RFC 3526, Section 2 */
|
/* RFC 3526, Section 2 */
|
||||||
|
@ -29,12 +29,12 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
#include "eap.h"
|
#include "src/missing.h"
|
||||||
#include "eap-private.h"
|
#include "src/eap.h"
|
||||||
|
#include "src/eap-private.h"
|
||||||
#include "crypto.h"
|
#include "src/crypto.h"
|
||||||
#include "simutil.h"
|
#include "src/simutil.h"
|
||||||
#include "simauth.h"
|
#include "src/simauth.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* EAP-AKA specific values
|
* EAP-AKA specific values
|
||||||
|
@ -28,8 +28,9 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
#include "eap.h"
|
#include "src/missing.h"
|
||||||
#include "eap-private.h"
|
#include "src/eap.h"
|
||||||
|
#include "src/eap-private.h"
|
||||||
|
|
||||||
struct eap_gtc_state {
|
struct eap_gtc_state {
|
||||||
char *password;
|
char *password;
|
||||||
|
@ -28,8 +28,9 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
#include "eap.h"
|
#include "src/missing.h"
|
||||||
#include "eap-private.h"
|
#include "src/eap.h"
|
||||||
|
#include "src/eap-private.h"
|
||||||
|
|
||||||
struct eap_md5_state {
|
struct eap_md5_state {
|
||||||
char *secret;
|
char *secret;
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/eap.h"
|
#include "src/eap.h"
|
||||||
#include "src/eap-private.h"
|
#include "src/eap-private.h"
|
||||||
#include "src/eap-mschapv2.h"
|
#include "src/eap-mschapv2.h"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/eap.h"
|
#include "src/eap.h"
|
||||||
#include "src/eap-private.h"
|
#include "src/eap-private.h"
|
||||||
#include "src/eap-tls-common.h"
|
#include "src/eap-tls-common.h"
|
||||||
|
@ -28,10 +28,11 @@
|
|||||||
|
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
#include "eap.h"
|
#include "src/missing.h"
|
||||||
#include "eap-private.h"
|
#include "src/eap.h"
|
||||||
#include "crypto.h"
|
#include "src/eap-private.h"
|
||||||
#include "util.h"
|
#include "src/crypto.h"
|
||||||
|
#include "src/util.h"
|
||||||
|
|
||||||
#define EAP_PWD_GROUP_DESC 19
|
#define EAP_PWD_GROUP_DESC 19
|
||||||
#define EAP_PWD_RAND_FN 0x01
|
#define EAP_PWD_RAND_FN 0x01
|
||||||
|
@ -30,13 +30,13 @@
|
|||||||
#include <alloca.h>
|
#include <alloca.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
#include "eap.h"
|
#include "src/missing.h"
|
||||||
#include "eap-private.h"
|
#include "src/eap.h"
|
||||||
|
#include "src/eap-private.h"
|
||||||
#include "crypto.h"
|
#include "src/crypto.h"
|
||||||
#include "simutil.h"
|
#include "src/simutil.h"
|
||||||
#include "simauth.h"
|
#include "src/simauth.h"
|
||||||
#include "util.h"
|
#include "src/util.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* EAP-SIM authentication protocol.
|
* EAP-SIM authentication protocol.
|
||||||
|
@ -28,6 +28,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/eap.h"
|
#include "src/eap.h"
|
||||||
#include "src/eap-private.h"
|
#include "src/eap-private.h"
|
||||||
#include "src/eap-tls-common.h"
|
#include "src/eap-tls-common.h"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/eap.h"
|
#include "src/eap.h"
|
||||||
#include "src/eap-private.h"
|
#include "src/eap-private.h"
|
||||||
#include "src/eap-tls-common.h"
|
#include "src/eap-tls-common.h"
|
||||||
|
@ -29,6 +29,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/util.h"
|
#include "src/util.h"
|
||||||
#include "src/mschaputil.h"
|
#include "src/mschaputil.h"
|
||||||
#include "src/eap.h"
|
#include "src/eap.h"
|
||||||
|
@ -29,12 +29,13 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
#include "crypto.h"
|
#include "src/missing.h"
|
||||||
#include "eap.h"
|
#include "src/crypto.h"
|
||||||
#include "eap-private.h"
|
#include "src/eap.h"
|
||||||
#include "wscutil.h"
|
#include "src/eap-private.h"
|
||||||
#include "util.h"
|
#include "src/wscutil.h"
|
||||||
#include "eap-wsc.h"
|
#include "src/util.h"
|
||||||
|
#include "src/eap-wsc.h"
|
||||||
|
|
||||||
#define EAP_WSC_HEADER_LEN 14
|
#define EAP_WSC_HEADER_LEN 14
|
||||||
#define EAP_WSC_PDU_MAX_LEN 4096
|
#define EAP_WSC_PDU_MAX_LEN 4096
|
||||||
|
@ -30,8 +30,9 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
#include "eap.h"
|
#include "src/missing.h"
|
||||||
#include "eap-private.h"
|
#include "src/eap.h"
|
||||||
|
#include "src/eap-private.h"
|
||||||
|
|
||||||
static uint32_t default_mtu;
|
static uint32_t default_mtu;
|
||||||
struct l_queue *eap_methods;
|
struct l_queue *eap_methods;
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/crypto.h"
|
#include "src/crypto.h"
|
||||||
#include "src/eapol.h"
|
#include "src/eapol.h"
|
||||||
#include "src/ie.h"
|
#include "src/ie.h"
|
||||||
|
@ -36,6 +36,7 @@
|
|||||||
|
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/crypto.h"
|
#include "src/crypto.h"
|
||||||
#include "src/ie.h"
|
#include "src/ie.h"
|
||||||
#include "src/util.h"
|
#include "src/util.h"
|
||||||
|
29
src/missing.h
Normal file
29
src/missing.h
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
/*
|
||||||
|
*
|
||||||
|
* Wireless daemon for Linux
|
||||||
|
*
|
||||||
|
* Copyright (C) 2013-2014 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
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#ifndef HAVE_EXPLICIT_BZERO
|
||||||
|
static inline void explicit_bzero(void *s, size_t n)
|
||||||
|
{
|
||||||
|
memset(s, 0, n);
|
||||||
|
__asm__ __volatile__ ("" : : "r"(s) : "memory");
|
||||||
|
}
|
||||||
|
#endif
|
@ -26,6 +26,7 @@
|
|||||||
|
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/mschaputil.h"
|
#include "src/mschaputil.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -32,9 +32,9 @@
|
|||||||
|
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/ie.h"
|
#include "src/ie.h"
|
||||||
#include "src/crypto.h"
|
#include "src/crypto.h"
|
||||||
|
|
||||||
#include "src/iwd.h"
|
#include "src/iwd.h"
|
||||||
#include "src/common.h"
|
#include "src/common.h"
|
||||||
#include "src/storage.h"
|
#include "src/storage.h"
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <ell/ell.h>
|
#include <ell/ell.h>
|
||||||
|
|
||||||
|
#include "src/missing.h"
|
||||||
#include "src/eap-private.h"
|
#include "src/eap-private.h"
|
||||||
|
|
||||||
#include "src/crypto.h"
|
#include "src/crypto.h"
|
||||||
#include "src/simutil.h"
|
#include "src/simutil.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user