plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | android | win_if_list | .c | platform/external/wpa_supplicant_8/wpa_supplicant/win_if_list.c | 3,818 | utf_8 | d58d4c4ff78f5cb481c1b09328c0f09d | /*
* win_if_list - Display network interfaces with description (for Windows)
* See README for more details.
*
* This small tool is for the Windows build to provide an easy way of fetching
* a list of available network interfaces.
*/
#include "includes.h"
#include <stdio.h>
#ifdef CONFIG_USE_NDISUIO
#include <wins... |
google | android | dbus_common | .c | platform/external/wpa_supplicant_8/wpa_supplicant/dbus/dbus_common.c | 8,862 | utf_8 | 2de846b51d53773133a7dcd3df983982 | /*
* wpa_supplicant D-Bus control interface - common functionality
* See README for more details.
*/
#include "utils/includes.h"
#include <dbus/dbus.h>
#include "utils/common.h"
#include "utils/eloop.h"
#include "dbus_common.h"
#include "dbus_common_i.h"
#include "dbus_new.h"
#include "../wpa_supplicant_i.h"
#ifndef... |
google | android | dbus_new_helpers | .c | platform/external/wpa_supplicant_8/wpa_supplicant/dbus/dbus_new_helpers.c | 31,141 | utf_8 | 7e9da919ab5c18900683afd6d69a130c | /*
* WPA Supplicant / dbus-based control interface
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "dbus_common.h"
#include "dbus_common_i.h"
#include "dbus_new.h"
#include "dbus_new_helpers.h"
#include "dbus_new_handlers.h"
#include "dbus_dic... |
google | android | dbus_new_handlers_wps | .c | platform/external/wpa_supplicant_8/wpa_supplicant/dbus/dbus_new_handlers_wps.c | 23,875 | utf_8 | 2187bf6d0d691604df2ad79959c2f4f8 | /*
* WPA Supplicant / dbus-based control interface (WPS)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "../config.h"
#include "../wpa_supplicant_i.h"
#include "../wps_supplicant.h"
#include "../driver_i.h"
#include "../ap.h"
#include "dbus_new_helpers.h"
#include "dbus_new.h"
#... |
google | android | dbus_new_handlers_p2p | .c | platform/external/wpa_supplicant_8/wpa_supplicant/dbus/dbus_new_handlers_p2p.c | 84,741 | utf_8 | 12cb9ad915fc2985ad9dfa73ff427861 | /*
* WPA Supplicant / dbus-based control interface (P2P)
* See README for more details.
*/
#include "includes.h"
#include "utils/includes.h"
#include "common.h"
#include "../config.h"
#include "../wpa_supplicant_i.h"
#include "../wps_supplicant.h"
#include "../notify.h"
#include "dbus_new_helpers.h"
#include "dbus_n... |
google | android | dbus_new_introspect | .c | platform/external/wpa_supplicant_8/wpa_supplicant/dbus/dbus_new_introspect.c | 7,890 | utf_8 | 8a1737f22bb2a11369a2a046bb1279e8 | /*
* wpa_supplicant - D-Bus introspection
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/list.h"
#include "utils/wpabuf.h"
#include "dbus_common_i.h"
#include "dbus_new_helpers.h"
struct interfaces {
struct dl_list list;
char *dbus_interface;
struct wpabuf ... |
google | android | dbus_new | .c | platform/external/wpa_supplicant_8/wpa_supplicant/dbus/dbus_new.c | 135,467 | utf_8 | 19d5e5c32c2261a98f53aa3a8efa13f9 | /*
* WPA Supplicant / dbus-based control interface
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "common/ieee802_11_defs.h"
#include "wps/wps.h"
#include "ap/sta_info.h"
#include "../config.h"
#include "../wpa_supplicant_i.h"
#include "../bss.h"
#include "../wpas_glue.h"
#inclu... |
google | android | dbus_new_handlers | .c | platform/external/wpa_supplicant_8/wpa_supplicant/dbus/dbus_new_handlers.c | 167,918 | utf_8 | e7812a9c921df3e82f07e1950bc13bae | /*
* WPA Supplicant / dbus-based control interface
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "common/ieee802_11_defs.h"
#include "eap_peer/eap_methods.h"
#include "eapol_supp/eapol_supp_sm.h"
#include "rsn_supp/wpa.h"
#include "ap/hostapd.h"
#include "ap/sta_info.h"
#includ... |
google | android | dbus_dict_helpers | .c | platform/external/wpa_supplicant_8/wpa_supplicant/dbus/dbus_dict_helpers.c | 29,471 | utf_8 | 55a19b8395b96170bd51d0d4155b85e0 | /*
* WPA Supplicant / dbus-based control interface
* See README for more details.
*/
#include "includes.h"
#include <dbus/dbus.h>
#include "common.h"
#include "wpabuf.h"
#include "dbus_dict_helpers.h"
/**
* Start a dict in a dbus message. Should be paired with a call to
* wpa_dbus_dict_close_write().
*
*
*/
db... |
google | android | eapol_auth_dump | .c | platform/external/wpa_supplicant_8/src/eapol_auth/eapol_auth_dump.c | 7,642 | utf_8 | efbe3cfa14cecd7c1488be27ae8c951c | /*
* IEEE 802.1X-2004 Authenticator - State dump
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_server/eap.h"
#include "eapol_auth_sm.h"
#include "eapol_auth_sm_i.h"
static inline const char * port_type_txt(PortTypes pt)
{
switch (pt) {
case ForceUnauthorized: return "For... |
google | android | eapol_auth_sm | .c | platform/external/wpa_supplicant_8/src/eapol_auth/eapol_auth_sm.c | 30,836 | utf_8 | 2ddd0ea07ec3bf4fe307425df0f750b6 | /*
* IEEE 802.1X-2004 Authenticator - EAPOL state machine
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "state_machine.h"
#include "common/eapol_common.h"
#include "eap_common/eap_defs.h"
#include "eap_common/eap_common.h"
#include "eap_server/eap.h"
#include... |
google | android | wps_common | .c | platform/external/wpa_supplicant_8/src/wps/wps_common.c | 21,491 | utf_8 | b80072ae78c5414a293a8d1a71afc5c9 | /*
* Wi-Fi Protected Setup - common functionality
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "common/defs.h"
#include "common/ieee802_11_common.h"
#include "crypto/aes_wrap.h"
#include "crypto/crypto.h"
#include "crypto/dh_group5.h"
#include "crypto/sha1.h"
#include "crypto/... |
google | android | wps_er_ssdp | .c | platform/external/wpa_supplicant_8/src/wps/wps_er_ssdp.c | 5,022 | utf_8 | a90ba4ec219b124f3527668cca01294f | /*
* Wi-Fi Protected Setup - External Registrar (SSDP)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "uuid.h"
#include "eloop.h"
#include "wps_i.h"
#include "wps_upnp.h"
#include "wps_upnp_i.h"
#include "wps_er.h"
static void wps_er_ssdp_rx(int sd, void *eloop_ctx, void *sock_c... |
google | android | wps_module_tests | .c | platform/external/wpa_supplicant_8/src/wps/wps_module_tests.c | 12,057 | utf_8 | a029dc112ee0a987815316fd989ef15d | /*
* WPS module tests
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/module_tests.h"
#include "wps_attr_parse.h"
struct wps_attr_parse_test {
const char *data;
int result;
int extra;
};
static const struct wps_attr_parse_test wps_attr_parse_test_cases[] = {... |
google | android | wps_attr_build | .c | platform/external/wpa_supplicant_8/src/wps/wps_attr_build.c | 14,089 | utf_8 | d485538cafb549d1860db3e0e1fc9d49 | /*
* Wi-Fi Protected Setup - attribute building
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes_wrap.h"
#include "crypto/crypto.h"
#include "crypto/dh_group5.h"
#include "crypto/sha256.h"
#include "crypto/random.h"
#include "common/ieee802_11_defs.h"
#include "wps_i.h... |
google | android | wps_upnp_ap | .c | platform/external/wpa_supplicant_8/src/wps/wps_upnp_ap.c | 2,475 | utf_8 | 8bb1440d980e24cd047651481df92bcb | /*
* Wi-Fi Protected Setup - UPnP AP functionality
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "uuid.h"
#include "wps_i.h"
#include "wps_upnp.h"
#include "wps_upnp_i.h"
static void upnp_er_set_selected_timeout(void *eloop_ctx, void *timeout_ctx)
{
struct s... |
google | android | wps_upnp | .c | platform/external/wpa_supplicant_8/src/wps/wps_upnp.c | 38,379 | utf_8 | 986bd910fa05b757a17e3f33c85b10b7 | /*
* UPnP WPS Device
*
* See below for more details on licensing and code history.
*/
/*
* This has been greatly stripped down from the original file
* (upnp_wps_device.c) by Ted Merrill, Atheros Communications
* in order to eliminate use of the bulky libupnp library etc.
*
* History:
* upnp_wps_device.c is/w... |
google | android | wps | .c | platform/external/wpa_supplicant_8/src/wps/wps.c | 17,956 | utf_8 | fca7d7ad0ea872eb3ff21dc3bdb82ba2 | /*
* Wi-Fi Protected Setup
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/dh_group5.h"
#include "common/ieee802_11_defs.h"
#include "wps_i.h"
#include "wps_dev_attr.h"
#ifdef CONFIG_WPS_TESTING
int wps_version_number = 0x20;
int wps_testing_stub_cred = 0;
int wps_corrupt... |
google | android | wps_attr_parse | .c | platform/external/wpa_supplicant_8/src/wps/wps_attr_parse.c | 16,033 | utf_8 | d29cfd9b8e1692a2ee7b1180a3ea6fe8 | /*
* Wi-Fi Protected Setup - attribute parsing
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "wps_defs.h"
#include "wps_attr_parse.h"
#ifndef CONFIG_WPS_STRICT
#define WPS_WORKAROUNDS
#endif /* CONFIG_WPS_STRICT */
static int wps_set_vendor_ext_wfa_subelem(struct wps_parse_attr... |
google | android | wps_registrar | .c | platform/external/wpa_supplicant_8/src/wps/wps_registrar.c | 104,621 | utf_8 | 396cd69f61e6e40a0a1a08ae5797ed83 | /*
* Wi-Fi Protected Setup - Registrar
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/base64.h"
#include "utils/eloop.h"
#include "utils/uuid.h"
#include "utils/list.h"
#include "crypto/crypto.h"
#include "crypto/sha256.h"
#include "crypto/random.h"
#include "... |
google | android | wps_upnp_ssdp | .c | platform/external/wpa_supplicant_8/src/wps/wps_upnp_ssdp.c | 26,083 | utf_8 | 08c4b4dee7bf6cbbadd22b5f85ca7d61 | /*
* UPnP SSDP for WPS
*
* See wps_upnp.c for more details on licensing and code history.
*/
#include "includes.h"
#include <fcntl.h>
#include <sys/ioctl.h>
#include <net/route.h>
#ifdef __linux__
#include <net/if.h>
#endif /* __linux__ */
#include "common.h"
#include "uuid.h"
#include "eloop.h"
#include "wps.h"
#i... |
google | android | wps_er | .c | platform/external/wpa_supplicant_8/src/wps/wps_er.c | 51,650 | utf_8 | bc4a1e86b1a5246e4af9759b6a715314 | /*
* Wi-Fi Protected Setup - External Registrar
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "base64.h"
#include "uuid.h"
#include "eloop.h"
#include "httpread.h"
#include "http_client.h"
#include "http_server.h"
#include "upnp_xml.h"
#include "wps_i.h"
#include "wps_upnp.h"
#... |
google | android | ndef | .c | platform/external/wpa_supplicant_8/src/wps/ndef.c | 4,946 | utf_8 | 13d273aeadad6d438d7061cccf2fb167 | /*
* NDEF(NFC Data Exchange Format) routines for Wi-Fi Protected Setup
* Reference is "NFCForum-TS-NDEF_1.0 2006-07-24".
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "wps/wps.h"
#define FLAG_MESSAGE_BEGIN (1 << 7)
#define FLAG_MESSAGE_END (1 << 6)
#define FLAG_CHUNK (1 << 5... |
google | android | httpread | .c | platform/external/wpa_supplicant_8/src/wps/httpread.c | 23,285 | utf_8 | f236ab967df7f7ff2dcb4d6e639c3e5c | /*
* httpread - Manage reading file(s) from HTTP/TCP socket
* Author: Ted Merrill
* See README for more details.
*
* The files are buffered via internal callbacks from eloop, then presented to
* an application callback routine when completely read into memory. May also
* be used if no file is expected but just t... |
google | android | wps_dev_attr | .c | platform/external/wpa_supplicant_8/src/wps/wps_dev_attr.c | 11,123 | utf_8 | 9031a399b173b9345d0141a949cbcf61 | /*
* Wi-Fi Protected Setup - device attributes
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "wps_i.h"
#include "wps_dev_attr.h"
int wps_build_manufacturer(struct wps_device_data *dev, struct wpabuf *msg)
{
size_t len;
wpa_printf(MSG_DEBUG, "WPS: * Manufacturer");
wpabuf_pu... |
google | android | wps_upnp_event | .c | platform/external/wpa_supplicant_8/src/wps/wps_upnp_event.c | 11,891 | utf_8 | 65a308e8680ae13adcf5f7a9b4562677 | /*
* UPnP WPS Device - Event processing
*
* See wps_upnp.c for more details on licensing and code history.
*/
#include "includes.h"
#include <assert.h>
#include "common.h"
#include "eloop.h"
#include "uuid.h"
#include "http_client.h"
#include "wps_defs.h"
#include "wps_upnp.h"
#include "wps_upnp_i.h"
/*
* Event me... |
google | android | upnp_xml | .c | platform/external/wpa_supplicant_8/src/wps/upnp_xml.c | 8,004 | utf_8 | adc8f0962e0da59a4c765954dd93fea8 | /*
* UPnP XML helper routines
*
* See wps_upnp.c for more details on licensing and code history.
*/
#include "includes.h"
#include "common.h"
#include "base64.h"
#include "http.h"
#include "upnp_xml.h"
/*
* XML parsing and formatting
*
* XML is a markup language based on unicode; usually (and in our case,
* alw... |
google | android | wps_upnp_web | .c | platform/external/wpa_supplicant_8/src/wps/wps_upnp_web.c | 38,273 | utf_8 | f0e24ea11b2e016c3378472de4f5703d | /*
* UPnP WPS Device - Web connections
*
* See wps_upnp.c for more details on licensing and code history.
*/
#include "includes.h"
#include "common.h"
#include "base64.h"
#include "uuid.h"
#include "httpread.h"
#include "http_server.h"
#include "wps_i.h"
#include "wps_upnp.h"
#include "wps_upnp_i.h"
#include "upnp_... |
google | android | wps_attr_process | .c | platform/external/wpa_supplicant_8/src/wps/wps_attr_process.c | 7,401 | utf_8 | 39578064f77b8958cd3367d0c44467d4 | /*
* Wi-Fi Protected Setup - attribute processing
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha256.h"
#include "wps_i.h"
int wps_process_authenticator(struct wps_data *wps, const u8 *authenticator,
const struct wpabuf *msg)
{
u8 hash[SHA256_MAC_LEN];
cons... |
google | android | wps_validate | .c | platform/external/wpa_supplicant_8/src/wps/wps_validate.c | 47,999 | utf_8 | 3e56add3e6bdcb98c516045913872451 | /*
* Wi-Fi Protected Setup - Strict protocol validation routines
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "wps_i.h"
#include "wps.h"
#ifndef WPS_STRICT_ALL
#define WPS_STRICT_WPS2
#endif /* WPS_STRICT_ALL */
static int wps_validate_version(const u8 *version, in... |
google | android | wps_enrollee | .c | platform/external/wpa_supplicant_8/src/wps/wps_enrollee.c | 42,114 | utf_8 | 1ea51f5aab4790e6e60e760ef27863d3 | /*
* Wi-Fi Protected Setup - Enrollee
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/crypto.h"
#include "crypto/sha256.h"
#include "crypto/random.h"
#include "wps_i.h"
#include "wps_dev_attr.h"
static int wps_build_wps_state(struct wps_data *wps, struct wpabuf *msg)
{
u... |
google | android | http_client | .c | platform/external/wpa_supplicant_8/src/wps/http_client.c | 8,204 | utf_8 | 73584ec8b41b38d2c2214f8be4745b35 | /*
* http_client - HTTP client
* See README for more details.
*/
#include "includes.h"
#include <fcntl.h>
#include "common.h"
#include "eloop.h"
#include "httpread.h"
#include "http_client.h"
#define HTTP_CLIENT_TIMEOUT_SEC 30
struct http_client {
struct sockaddr_in dst;
int sd;
struct wpabuf *req;
size_t req_po... |
google | android | http_server | .c | platform/external/wpa_supplicant_8/src/wps/http_server.c | 6,517 | utf_8 | bd8587f817d2ac863911e8a6893363bc | /*
* http_server - HTTP server
* See README for more details.
*/
#include "includes.h"
#include <fcntl.h>
#include "common.h"
#include "eloop.h"
#include "httpread.h"
#include "http_server.h"
#define HTTP_SERVER_TIMEOUT 30
#define HTTP_SERVER_MAX_REQ_LEN 8000
#define HTTP_SERVER_MAX_CONNECTIONS 10
struct http_reques... |
google | android | eap_server_ttls | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_ttls.c | 37,487 | utf_8 | d337f60a4a8a725196bb0e2984f09905 | /*
* hostapd / EAP-TTLS (RFC 5281)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/ms_funcs.h"
#include "crypto/sha1.h"
#include "crypto/tls.h"
#include "eap_server/eap_i.h"
#include "eap_server/eap_tls_common.h"
#include "eap_common/chap.h"
#include "eap_common/eap_ttls.... |
google | android | eap_sim_db | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_sim_db.c | 41,569 | utf_8 | df734497d7d894f76d52cadd3327f61f | /*
* hostapd / EAP-SIM database/authenticator gateway
* See README for more details.
*
* This is an example implementation of the EAP-SIM/AKA database/authentication
* gateway interface that is using an external program as an SS7 gateway to
* GSM/UMTS authentication center (HLR/AuC). hlr_auc_gw is an example
* i... |
google | android | eap_server_identity | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_identity.c | 3,830 | utf_8 | c49e60769a8066572d94839f2998661c | /*
* hostapd / EAP-Identity
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
struct eap_identity_data {
enum { CONTINUE, SUCCESS, FAILURE } state;
int pick_up;
};
static void * eap_identity_init(struct eap_sm *sm)
{
struct eap_identity_data *data;
data = os_zalloc(si... |
google | android | eap_server_ikev2 | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_ikev2.c | 13,938 | utf_8 | 54f552608be50086a0f28872de8ba9c5 | /*
* EAP-IKEv2 server (RFC 5106)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
#include "eap_common/eap_ikev2_common.h"
#include "ikev2.h"
struct eap_ikev2_data {
struct ikev2_initiator_data ikev2;
enum { MSG, FRAG_ACK, WAIT_FRAG_ACK, DONE, FAIL } state;
struct wpa... |
google | android | eap_server_tls | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_tls.c | 11,793 | utf_8 | 6f72e8dabf267ece11f65ba589c1ee85 | /*
* hostapd / EAP-TLS (RFC 5216, RFC 9190)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
#include "eap_tls_common.h"
#include "crypto/tls.h"
static void eap_tls_reset(struct eap_sm *sm, void *priv);
struct eap_tls_data {
struct eap_ssl_data ssl;
enum { START, CONTI... |
google | android | eap_server_sake | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_sake.c | 13,359 | utf_8 | e12fc2379674c8ad167256cc10033388 | /*
* hostapd / EAP-SAKE (RFC 4763) server
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include "eap_common/eap_sake_common.h"
struct eap_sake_data {
enum { IDENTITY, CHALLENGE, CONFIRM, SUCCESS, FAILURE } state;
u8 rand_s[EAP_... |
google | android | eap_server | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server.c | 54,628 | utf_8 | 5e4a0c460ec091f952ea6cdc10645da9 | /*
* hostapd / EAP Full Authenticator state machine (RFC 4137)
* See README for more details.
*
* This state machine is based on the full authenticator state machine defined
* in RFC 4137. However, to support backend authentication in RADIUS
* authentication server functionality, parts of backend authenticator (a... |
google | android | eap_server_sim | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_sim.c | 26,428 | utf_8 | 08fb1572446bc41bf775d20aacc99d2d | /*
* hostapd / EAP-SIM (RFC 4186)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "utils/base64.h"
#include "crypto/crypto.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include "eap_common/eap_sim_common.h"
#include "eap_server/eap_sim_db.h"
struct eap_sim_data {
... |
google | android | eap_server_aka | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_aka.c | 40,202 | utf_8 | a8ed84184081cdfd292d53185ddc4b54 | /*
* hostapd / EAP-AKA (RFC 4187) and EAP-AKA' (RFC 5448)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "utils/base64.h"
#include "crypto/sha256.h"
#include "crypto/crypto.h"
#include "crypto/random.h"
#include "eap_common/eap_sim_common.h"
#include "eap_server/eap_i.h"
#includ... |
google | android | eap_server_tnc | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_tnc.c | 13,743 | utf_8 | 7e96f07b64a46356378631c702fa4971 | /*
* EAP server method: EAP-TNC (Trusted Network Connect)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
#include "tncs.h"
struct eap_tnc_data {
enum eap_tnc_state {
START, CONTINUE, RECOMMENDATION, FRAG_ACK, WAIT_FRAG_ACK, DONE,
FAIL
} state;
enum { ALLOW, ISOL... |
google | android | eap_server_vendor_test | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_vendor_test.c | 3,953 | utf_8 | 2e171da2fbe3a58e4c1eb977cf7282be | /*
* hostapd / Test method for vendor specific (expanded) EAP type
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
#define EAP_VENDOR_ID EAP_VENDOR_HOSTAP
#define EAP_VENDOR_TYPE 0xfcfbfaf9
struct eap_vendor_test_data {
enum { INIT, CONFIRM, SUCCESS, FAILURE } state;
}... |
google | android | eap_server_peap | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_peap.c | 39,183 | utf_8 | f6bb04a9a21e6829e73e9e2d78274a8a | /*
* hostapd / EAP-PEAP (draft-josefsson-pppext-eap-tls-eap-10.txt)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "crypto/tls.h"
#include "crypto/random.h"
#include "eap_i.h"
#include "eap_tls_common.h"
#include "eap_common/eap_tlv_common.h"
#include "e... |
google | android | eap_server_pwd | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_pwd.c | 27,808 | utf_8 | 14862eed33e2194ca4457518d2b90f34 | /*
* hostapd / EAP-pwd (RFC 5931) server
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha256.h"
#include "crypto/ms_funcs.h"
#include "crypto/crypto.h"
#include "eap_server/eap_i.h"
#include "eap_common/eap_pwd_common.h"
struct eap_pwd_data {
enum {
PWD_ID_Req, PWD_... |
google | android | eap_server_tls_common | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_tls_common.c | 15,378 | utf_8 | f64ac22479bd385fc563f4900f41087b | /*
* EAP-TLS/PEAP/TTLS/FAST server common functions
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "crypto/tls.h"
#include "eap_i.h"
#include "eap_tls_common.h"
static void eap_server_tls_free_in_buf(struct eap_ssl_data *data);
struct wpabuf * eap_tls_ms... |
google | android | eap_server_psk | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_psk.c | 13,149 | utf_8 | 9fa4a225621c982a0cbb16dc50da3d4e | /*
* hostapd / EAP-PSK (RFC 4764) server
* See README for more details.
*
* Note: EAP-PSK is an EAP authentication method and as such, completely
* different from WPA-PSK. This file is not needed for WPA-PSK functionality.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes_wrap.h"
#include "crypto/... |
google | android | eap_server_fast | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_fast.c | 43,788 | utf_8 | 14c3fa307dccc4e6ee2c280b783aa8ab | /*
* EAP-FAST server (RFC 4851)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes_wrap.h"
#include "crypto/sha1.h"
#include "crypto/tls.h"
#include "crypto/random.h"
#include "eap_common/eap_tlv_common.h"
#include "eap_common/eap_fast_common.h"
#include "eap_i.h"
#inclu... |
google | android | eap_server_gpsk | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_gpsk.c | 16,797 | utf_8 | d66de5f8a8c0310b19bc99ba5d2e0bca | /*
* hostapd / EAP-GPSK (RFC 5433) server
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include "eap_common/eap_gpsk_common.h"
struct eap_gpsk_data {
enum { GPSK_1, GPSK_3, SUCCESS, FAILURE } state;
u8 rand_server[EAP_GPSK_RAND... |
google | android | eap_server_methods | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_methods.c | 4,454 | utf_8 | 4cc483e5de2f40d6da7178005db2496c | /*
* EAP server method registration
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
#include "eap_methods.h"
static struct eap_method *eap_methods;
/**
* eap_server_get_eap_method - Get EAP method based on type number
* Returns: Pointer to EAP method or %NULL if not f... |
google | android | eap_server_gtc | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_gtc.c | 5,025 | utf_8 | efdb15e19437bb2b542b3d9d68c72691 | /*
* hostapd / EAP-GTC (RFC 3748)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
struct eap_gtc_data {
enum { CONTINUE, SUCCESS, FAILURE } state;
int prefix;
};
static void * eap_gtc_init(struct eap_sm *sm)
{
struct eap_gtc_data *data;
data = os_zalloc(sizeof(*data... |
google | android | eap_server_teap | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_teap.c | 57,175 | utf_8 | a457b90a6429505e65a1c591c5eb81c4 | /*
* EAP-TEAP server (RFC 7170)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes_wrap.h"
#include "crypto/tls.h"
#include "crypto/random.h"
#include "eap_common/eap_teap_common.h"
#include "eap_i.h"
#include "eap_tls_common.h"
static void eap_teap_reset(struct eap_sm *... |
google | android | ikev2 | .c | platform/external/wpa_supplicant_8/src/eap_server/ikev2.c | 30,258 | utf_8 | f8d937f56e106397b96e8173948a7285 | /*
* IKEv2 initiator (RFC 4306) for EAP-IKEV2
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/dh_groups.h"
#include "crypto/random.h"
#include "ikev2.h"
static int ikev2_process_idr(struct ikev2_initiator_data *data,
const u8 *idr, size_t idr_len);
void ikev2_init... |
google | android | eap_server_mschapv2 | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_mschapv2.c | 15,473 | utf_8 | 14c48b08a605f7b186e60a9c2531050f | /*
* hostapd / EAP-MSCHAPv2 (draft-kamath-pppext-eap-mschapv2-00.txt) server
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/ms_funcs.h"
#include "crypto/random.h"
#include "eap_i.h"
struct eap_mschapv2_hdr {
u8 op_code; /* MSCHAPV2_OP_* */
u8 mschapv2_id; /* must be ch... |
google | android | eap_server_eke | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_eke.c | 21,589 | utf_8 | 93837eceed86d1dd407fb21e40ec387a | /*
* hostapd / EAP-EKE (RFC 6124) server
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include "eap_common/eap_eke_common.h"
struct eap_eke_data {
enum {
} state;
u8 msk[EAP_MSK_LEN];
u8 emsk[EAP_EMSK_LEN];
u8 *peerid;
size... |
google | android | eap_server_md5 | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_md5.c | 3,929 | utf_8 | f779d1bb1df97a3f1db95186d3bed916 | /*
* hostapd / EAP-MD5 server
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_i.h"
#include "eap_common/chap.h"
#define CHALLENGE_LEN 16
struct eap_md5_data {
u8 challenge[CHALLENGE_LEN];
enum { CONTINUE, SUCCESS, FAILURE } state;
};
static void ... |
google | android | eap_server_wsc | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_wsc.c | 12,642 | utf_8 | 27abf3517ac0d1041c037e2b349df017 | /*
* EAP-WSC server for Wi-Fi Protected Setup
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "eap_i.h"
#include "eap_common/eap_wsc_common.h"
#include "p2p/p2p.h"
#include "wps/wps.h"
struct eap_wsc_data {
enum { START, MESG, FRAG_ACK, WAIT_FRAG_ACK, DONE, FA... |
google | android | tncs | .c | platform/external/wpa_supplicant_8/src/eap_server/tncs.c | 27,353 | utf_8 | 418ca4adf44aef4445fdb65dba678db5 | /*
* EAP-TNC - TNCS (IF-IMV, IF-TNCCS, and IF-TNCCS-SOH)
* See README for more details.
*/
#include "includes.h"
#include <dlfcn.h>
#include "common.h"
#include "base64.h"
#include "common/tnc.h"
#include "tncs.h"
#include "eap_common/eap_tlv_common.h"
#include "eap_common/eap_defs.h"
/* TODO: TNCS must be thread-sa... |
google | android | eap_server_pax | .c | platform/external/wpa_supplicant_8/src/eap_server/eap_server_pax.c | 15,783 | utf_8 | 048fa8b019d0dce9a3d06179b6fb3521 | /*
* hostapd / EAP-PAX (RFC 4746) server
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include "eap_common/eap_pax_common.h"
/*
* Note: only PAX_STD subprotocol is currently supported
*
* TODO: Add support with PAX_SEC with th... |
google | android | eap_fast_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_fast_common.c | 7,367 | utf_8 | 0edb76d85dd38cc50a0f6c07cfafc7b0 | /*
* EAP-FAST common helper functions (RFC 4851)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "crypto/tls.h"
#include "eap_defs.h"
#include "eap_tlv_common.h"
#include "eap_fast_common.h"
void eap_fast_put_tlv_hdr(struct wpabuf *buf, u16 type, u16 len)... |
google | android | chap | .c | platform/external/wpa_supplicant_8/src/eap_common/chap.c | 602 | utf_8 | 672a65a3b92399e44aed44766f6220d3 | /*
* CHAP-MD5 (RFC 1994)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/crypto.h"
#include "chap.h"
int chap_md5(u8 id, const u8 *secret, size_t secret_len, const u8 *challenge,
size_t challenge_len, u8 *response)
{
const u8 *addr[3];
size_t len[3];
addr[0] = &... |
google | android | eap_peap_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_peap_common.c | 1,784 | utf_8 | 581d64eed077ad74f03d28034a6290b2 | /*
* EAP-PEAP common routines
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "eap_peap_common.h"
int peap_prfplus(int version, const u8 *key, size_t key_len,
const char *label, const u8 *seed, size_t seed_len,
u8 *buf, size_t buf_len)
{
unsigned c... |
google | android | eap_sim_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_sim_common.c | 33,384 | utf_8 | 208ef50fe21e264f8f9df5d8313ac7c6 | /*
* EAP peer/server: EAP-SIM/AKA/AKA' shared routines
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "wpabuf.h"
#include "crypto/aes_wrap.h"
#include "crypto/crypto.h"
#include "crypto/sha1.h"
#include "crypto/sha256.h"
#include "crypto/random.h"
#include "eap_common/eap_defs.h... |
google | android | eap_wsc_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_wsc_common.c | 784 | utf_8 | 2e65e93532ef4960d101771f58225bd3 | /*
* EAP-WSC common routines for Wi-Fi Protected Setup
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_defs.h"
#include "eap_common.h"
#include "wps/wps.h"
#include "eap_wsc_common.h"
struct wpabuf * eap_wsc_build_frag_ack(u8 id, u8 code)
{
struct wpabuf *msg;
msg = eap_ms... |
google | android | eap_gpsk_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_gpsk_common.c | 14,624 | utf_8 | fb443db63247432957aa16e645f80242 | /*
* EAP server/peer: EAP-GPSK shared routines
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes_wrap.h"
#include "crypto/sha256.h"
#include "eap_defs.h"
#include "eap_gpsk_common.h"
/**
* eap_gpsk_supported_ciphersuite - Check whether ciphersuite is supported
* Retur... |
google | android | eap_ikev2_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_ikev2_common.c | 2,843 | utf_8 | deaf6636e8b54252551655c2ecd8f59e | /*
* EAP-IKEv2 common routines
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_defs.h"
#include "eap_common.h"
#include "ikev2_common.h"
#include "eap_ikev2_common.h"
int eap_ikev2_derive_keymat(int prf, struct ikev2_keys *keys,
const u8 *i_nonce, size_t i_nonce_len,
... |
google | android | eap_pax_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_pax_common.c | 4,508 | utf_8 | 663a60194a8ca26ed1dd9c0812b32aa4 | /*
* EAP server/peer: EAP-PAX shared routines
* Returns: 0 on success, -1 failed
*
* RFC 4746, Section 2.6: PAX-KDF-W(X, Y, Z)
*/
int eap_pax_kdf(u8 mac_id, const u8 *key, size_t key_len,
const char *identifier,
const u8 *entropy, size_t entropy_len,
size_t output_len, u8 *output)
{
u8 mac[SHA1_MAC_LEN];
u... |
google | android | eap_psk_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_psk_common.c | 1,554 | utf_8 | c375bd128ca77b5db2b12f577179739f | /*
* EAP server/peer: EAP-PSK shared routines
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes_wrap.h"
#include "eap_defs.h"
#include "eap_psk_common.h"
#define aes_block_size 16
int eap_psk_key_setup(const u8 *psk, u8 *ak, u8 *kdk)
{
os_memset(ak, 0, aes_block_size);... |
google | android | ikev2_common | .c | platform/external/wpa_supplicant_8/src/eap_common/ikev2_common.c | 17,582 | utf_8 | 0aec7ab2f5e17dd46e3f8771959b5eb9 | /*
* IKEv2 common routines for initiator and responder
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/crypto.h"
#include "crypto/md5.h"
#include "crypto/sha1.h"
#include "crypto/random.h"
#include "ikev2_common.h"
static const struct ikev2_integ_alg ikev2_integ_algs[] = ... |
google | android | eap_teap_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_teap_common.c | 22,208 | utf_8 | 118259d0c0cce0fa28bd568f7d8d4c62 | /*
* EAP-TEAP common helper functions (RFC 7170)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "crypto/sha256.h"
#include "crypto/sha384.h"
#include "crypto/tls.h"
#include "eap_defs.h"
#include "eap_teap_common.h"
static int tls_cipher_suite_mac_sha384... |
google | android | eap_sake_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_sake_common.c | 10,899 | utf_8 | a342fb1433aa13d774b4cf58dd678a2d | /*
* EAP server/peer: EAP-SAKE shared routines
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "wpabuf.h"
#include "crypto/sha1.h"
#include "eap_defs.h"
#include "eap_sake_common.h"
static int eap_sake_parse_add_attr(struct eap_sake_parse_attr *attr,
u8 attr_id, u8 len, co... |
google | android | eap_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_common.c | 7,505 | utf_8 | 8ce50928dec73d6eb99ef1ceae5c69f8 | /*
* EAP common peer/server definitions
* Returns: 1 for valid header, 0 for invalid
*
* This is a helper function that does minimal validation of EAP messages. The
* length field is verified to be large enough to include the header and not
* too large to go beyond the end of the buffer.
*/
int eap_hdr_len_valid... |
google | android | eap_eke_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_eke_common.c | 17,154 | utf_8 | 8b8b503287ac623effeaa0c3d2df13db | /*
* EAP server/peer: EAP-EKE shared routines
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes.h"
#include "crypto/aes_wrap.h"
#include "crypto/crypto.h"
#include "crypto/dh_groups.h"
#include "crypto/random.h"
#include "crypto/sha1.h"
#include "crypto/sha256.h"
#inclu... |
google | android | eap_pwd_common | .c | platform/external/wpa_supplicant_8/src/eap_common/eap_pwd_common.c | 13,523 | utf_8 | 98cc7d2dcc521b1aa4bde9489d5fb6ef | /*
* EAP server/peer: EAP-pwd shared routines
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "utils/const_time.h"
#include "common/dragonfly.h"
#include "crypto/sha256.h"
#include "crypto/crypto.h"
#include "eap_defs.h"
#include "eap_pwd_common.h"
#define MAX_ECC_PRIME_LEN 66
/*... |
google | android | ieee802_1x_kay | .c | platform/external/wpa_supplicant_8/src/pae/ieee802_1x_kay.c | 109,553 | utf_8 | 7539f22acb96a5b4d7f96aff3c7efd92 | /*
* IEEE 802.1X-2010 Key Agreement Protocol of PAE state machine
* See README for more details.
*/
#include <time.h>
#include "includes.h"
#include "common.h"
#include "list.h"
#include "eloop.h"
#include "wpabuf.h"
#include "state_machine.h"
#include "l2_packet/l2_packet.h"
#include "common/eapol_common.h"
#includ... |
google | android | ieee802_1x_key | .c | platform/external/wpa_supplicant_8/src/pae/ieee802_1x_key.c | 4,908 | utf_8 | 5b69860ba130cc3fa14da200ada891cb | /*
* IEEE 802.1X-2010 Key Hierarchy
* See README for more details.
*
* SAK derivation specified in IEEE Std 802.1X-2010, Clause 6.2
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "crypto/md5.h"
#include "crypto/sha1.h"
#include "crypto/aes_wrap.h"
#include "crypto/crypto.h"
#include "ieee802_1x_k... |
google | android | ieee802_1x_cp | .c | platform/external/wpa_supplicant_8/src/pae/ieee802_1x_cp.c | 16,535 | utf_8 | 130686740322d795ebd71782a5c94b73 | /*
* IEEE 802.1X-2010 Controlled Port of PAE state machine - CP state machine
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/defs.h"
#include "common/ieee802_1x_defs.h"
#include "utils/state_machine.h"
#include "ieee802_1x_kay.h"
#inc... |
google | android | ieee802_1x_secy_ops | .c | platform/external/wpa_supplicant_8/src/pae/ieee802_1x_secy_ops.c | 11,309 | utf_8 | 2510434266f568aa8c738b7b8e821c83 | /*
* SecY Operations
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/defs.h"
#include "drivers/driver.h"
#include "pae/ieee802_1x_kay.h"
#include "pae/ieee802_1x_kay_i.h"
#include "pae/ieee802_1x_secy_ops.h"
int secy_cp_control_valida... |
google | android | netlink | .c | platform/external/wpa_supplicant_8/src/drivers/netlink.c | 5,258 | utf_8 | 68b41a9027d9f81b0ffa79f3cc0d7f26 | /*
* Netlink helper functions for driver wrappers
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "priv_netlink.h"
#include "netlink.h"
struct netlink_data {
struct netlink_config *cfg;
int sock;
};
static void netlink_receive_link(struct netlink_data *netlin... |
google | android | driver_wired | .c | platform/external/wpa_supplicant_8/src/drivers/driver_wired.c | 9,662 | utf_8 | 392fc64cd7d5aafe26d4e83858072f64 | /*
* Wired Ethernet driver interface
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "driver.h"
#include "driver_wired_common.h"
#include <sys/ioctl.h>
#undef IFNAMSIZ
#include <net/if.h>
#ifdef __linux__
#include <netpacket/packet.h>
#include <net/if_arp.h>
#i... |
google | android | driver_ndis | .c | platform/external/wpa_supplicant_8/src/drivers/driver_ndis.c | 86,671 | utf_8 | d658ca9c81f94590e354197e138bed5c | /*
* WPA Supplicant - Windows/NDIS driver interface
* See README for more details.
*/
#ifdef __CYGWIN__
/* Avoid some header file conflicts by not including standard headers for
* cygwin builds when Packet32.h is included. */
#include "build_config.h"
int close(int fd);
#else /* __CYGWIN__ */
#include "includes.h"
... |
google | android | ndis_events | .c | platform/external/wpa_supplicant_8/src/drivers/ndis_events.c | 21,720 | utf_8 | cdb2eea28c235d2260c7599c0e4f28a2 | /*
* ndis_events - Receive NdisMIndicateStatus() events using WMI
* See README for more details.
*/
#define _WIN32_WINNT 0x0400
#include "includes.h"
#ifndef COBJMACROS
#define COBJMACROS
#endif /* COBJMACROS */
#include <wbemidl.h>
#include "common.h"
static int wmi_refcnt = 0;
static int wmi_first = 1;
struct n... |
google | android | driver_openbsd | .c | platform/external/wpa_supplicant_8/src/drivers/driver_openbsd.c | 3,108 | utf_8 | 5a85c9be72ea60ac6d738bed6f5b36d4 | /*
* See README for more details.
*/
#include "includes.h"
#include <sys/ioctl.h>
#include <net/if.h>
#include <net80211/ieee80211.h>
#include <net80211/ieee80211_crypto.h>
#include <net80211/ieee80211_ioctl.h>
#include "common.h"
#include "driver.h"
struct openbsd_driver_data {
char ifname[IFNAMSIZ + 1];
void *ctx... |
google | android | driver_ndis_ | .c | platform/external/wpa_supplicant_8/src/drivers/driver_ndis_.c | 2,722 | utf_8 | b6fa2401c152fdf64704754e288746ae | /*
* WPA Supplicant - Windows/NDIS driver interface - event processing
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "driver.h"
#include "eloop.h"
/* Keep this event processing in a separate file and without WinPcap headers to
* avoid conflicts with some of the header files. *... |
google | android | rfkill | .c | platform/external/wpa_supplicant_8/src/drivers/rfkill.c | 4,676 | utf_8 | f95e1dcd4a44623c1a5bbe436a8f4164 | /*
* Linux rfkill helper functions for driver wrappers
* See README for more details.
*/
#include "includes.h"
#include <fcntl.h>
#include <limits.h>
#include "utils/common.h"
#include "utils/eloop.h"
#include "rfkill.h"
#define RFKILL_EVENT_SIZE_V1 8
struct rfkill_event {
u32 idx;
u8 type;
u8 op;
u8 soft;
u8 h... |
google | android | driver_nl80211_capa | .c | platform/external/wpa_supplicant_8/src/drivers/driver_nl80211_capa.c | 73,904 | utf_8 | 1895dfe3d2d51ced3928742cec2b5821 | /*
* Driver interaction with Linux nl80211/cfg80211 - Capabilities
* See README for more details.
*/
#include "includes.h"
#include <netlink/genl/genl.h>
#include "utils/common.h"
#include "common/ieee802_11_common.h"
#include "common/wpa_common.h"
#include "common/qca-vendor.h"
#include "common/qca-vendor-attr.h"
#... |
google | android | driver_nl80211_monitor | .c | platform/external/wpa_supplicant_8/src/drivers/driver_nl80211_monitor.c | 13,592 | utf_8 | 4ebd313801ffac043b489e52a35883b2 | /*
* Driver interaction with Linux nl80211/cfg80211 - AP monitor interface
* See README for more details.
*/
#include "includes.h"
#include <netpacket/packet.h>
#include <linux/filter.h>
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/ieee802_11_defs.h"
#include "common/ieee802_11_common.h"
#incl... |
google | android | driver_common | .c | platform/external/wpa_supplicant_8/src/drivers/driver_common.c | 6,962 | utf_8 | 3c5974e23f3b2d7438f35af9c8c49ec9 | /*
* Common driver-related functions
* See README for more details.
*/
#include "includes.h"
#include "utils/common.h"
#include "driver.h"
void wpa_scan_results_free(struct wpa_scan_results *res)
{
size_t i;
if (res == NULL)
return;
for (i = 0; i < res->num; i++)
os_free(res->res[i]);
os_free(res->res);
os_... |
google | android | driver_macsec_linux | .c | platform/external/wpa_supplicant_8/src/drivers/driver_macsec_linux.c | 40,510 | utf_8 | ae23e49403c4cb2a2830b58cb817feb1 | /*
* Driver interaction with Linux MACsec kernel module
* See README for more details.
*/
#include "includes.h"
#include <sys/ioctl.h>
#include <net/if.h>
#include <netpacket/packet.h>
#include <net/if_arp.h>
#include <net/if.h>
#include <netlink/netlink.h>
#include <netlink/genl/genl.h>
#include <netlink/genl/ctrl.... |
google | android | driver_atheros | .c | platform/external/wpa_supplicant_8/src/drivers/driver_atheros.c | 64,453 | utf_8 | 0e3f32a83a63b24c95606e9fa1893c8f | /*
* hostapd / Driver interaction with Atheros driver
* See README for more details.
*/
#include "includes.h"
#include <net/if.h>
#include <sys/ioctl.h>
#include "common.h"
#include "eloop.h"
#include "common/ieee802_11_defs.h"
#include "l2_packet/l2_packet.h"
#include "common.h"
#ifndef _BYTE_ORDER
#ifdef WORDS_BIG... |
google | android | driver_nl80211 | .c | platform/external/wpa_supplicant_8/src/drivers/driver_nl80211.c | 352,027 | utf_8 | 96b80c2a6010a0c8429a8af04c458155 | /*
* Driver interaction with Linux nl80211/cfg80211
* See README for more details.
*/
#include "includes.h"
#include <sys/types.h>
#include <fcntl.h>
#include <net/if.h>
#include <netlink/genl/genl.h>
#include <netlink/genl/ctrl.h>
#ifdef CONFIG_LIBNL3_ROUTE
#include <netlink/route/neighbour.h>
#endif /* CONFIG_LIBN... |
google | android | driver_macsec_qca | .c | platform/external/wpa_supplicant_8/src/drivers/driver_macsec_qca.c | 26,158 | utf_8 | f95f30fcabaf89425cb23a06ea527cfa | /*
* Wired Ethernet driver interface for QCA MACsec driver
#include <net/if_dl.h>
#include <net/if_media.h>
#ifdef __sun__
#include <sys/sockio.h>
#endif /* __sun__ */
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/defs.h"
#include "common/ieee802_1x_defs.h"
#include "common/eapol_common.h"
#inclu... |
google | android | driver_nl80211_android | .c | platform/external/wpa_supplicant_8/src/drivers/driver_nl80211_android.c | 4,595 | utf_8 | 1d5cf1fe40b166cf05d1635e21d586ea | /*
* Driver interaction with Linux nl80211/cfg80211 - Android specific
* See README for more details.
*/
#include "includes.h"
#include <sys/ioctl.h>
#include <net/if.h>
#include <netlink/genl/genl.h>
#include <netlink/genl/family.h>
#include <netlink/genl/ctrl.h>
#include <fcntl.h>
#include "utils/common.h"
#includ... |
google | android | driver_nl80211_scan | .c | platform/external/wpa_supplicant_8/src/drivers/driver_nl80211_scan.c | 35,803 | utf_8 | 29bcf8638db8a6e87ef67b99451711a6 | /*
* Driver interaction with Linux nl80211/cfg80211 - Scanning
* See README for more details.
*/
#include "includes.h"
#include <time.h>
#include <netlink/genl/genl.h>
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/ieee802_11_defs.h"
#include "common/ieee802_11_common.h"
#include "common/qca-ven... |
google | android | driver_wired_common | .c | platform/external/wpa_supplicant_8/src/drivers/driver_wired_common.c | 8,247 | utf_8 | dfc53f1e446aead4742f6aeebbbfcce6 | /*
* Common functions for Wired Ethernet driver interfaces
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "driver.h"
#include "driver_wired_common.h"
#include <sys/ioctl.h>
#include <net/if.h>
#ifdef __linux__
#include <netpacket/packet.h>
#include <net/if_arp... |
google | android | driver_none | .c | platform/external/wpa_supplicant_8/src/drivers/driver_none.c | 1,477 | utf_8 | cd94de77cae51bcde01a7b60d7f8b9e1 | /*
* Driver interface for RADIUS server or WPS ER only (no driver)
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "driver.h"
struct none_driver_data {
struct hostapd_data *hapd;
void *ctx;
};
static void * none_driver_hapd_init(struct hostapd_data *hapd,
struct wpa_ini... |
google | android | driver_nl80211_event | .c | platform/external/wpa_supplicant_8/src/drivers/driver_nl80211_event.c | 99,207 | utf_8 | a3e51fd9428f50d982d39bca23b3fcda | /*
* Driver interaction with Linux nl80211/cfg80211 - Event processing
* See README for more details.
*/
#include "includes.h"
#include <netlink/genl/genl.h>
#include "utils/common.h"
#include "utils/eloop.h"
#include "common/qca-vendor.h"
#include "common/qca-vendor-attr.h"
#include "common/brcm_vendor.h"
#include ... |
google | android | driver_wext | .c | platform/external/wpa_supplicant_8/src/drivers/driver_wext.c | 65,881 | utf_8 | fd89bb09d211dbcb7d0473e70b2be887 | /*
* Driver interaction with generic Linux Wireless Extensions
* See README for more details.
*
* This file implements a driver interface for the Linux Wireless Extensions.
* When used with WE-18 or newer, this interface can be used as-is with number
* of drivers. In addition to this, some of the common functions... |
google | android | driver_roboswitch | .c | platform/external/wpa_supplicant_8/src/drivers/driver_roboswitch.c | 13,954 | utf_8 | 1296413e513e578dd01e5821c0ddd5a0 | /*
* WPA Supplicant - roboswitch driver interface
* See README for more details.
*/
#include "includes.h"
#include <sys/ioctl.h>
#include <linux/sockios.h>
#include <linux/if_ether.h>
#include <linux/mii.h>
#include <net/if.h>
#include "common.h"
#include "driver.h"
#include "l2_packet/l2_packet.h"
#define ROBO_PHY_... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.