repo stringlengths 1 152 ⌀ | file stringlengths 14 221 | code stringlengths 501 25k | file_length int64 501 25k | avg_line_length float64 20 99.5 | max_line_length int64 21 134 | extension_type stringclasses 2
values |
|---|---|---|---|---|---|---|
hostap | hostap-master/src/tls/bignum.c | /*
* Big number math
* Copyright (c) 2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "bignum.h"
#ifdef CONFIG_INTERNAL_LIBTOMMATH
#include "libtommath.c"
#else /* CONFIG_I... | 5,484 | 23.377778 | 78 | c |
hostap | hostap-master/src/tls/asn1.h | /*
* ASN.1 DER parsing
* Copyright (c) 2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef ASN1_H
#define ASN1_H
#define ASN1_TAG_EOC 0x00 /* not used with DER */
#define ASN1_TAG_BOOLEAN 0x01
#define ASN1_TAG_INTEGER ... | 2,419 | 32.150685 | 72 | h |
hostap | hostap-master/src/tls/tlsv1_server.c | /*
* TLS v1.0/v1.1/v1.2 server (RFC 2246, RFC 4346, RFC 5246)
* Copyright (c) 2006-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "crypto/tls.h"
#... | 23,241 | 27.240583 | 92 | c |
hostap | hostap-master/src/tls/tlsv1_client_i.h | /*
* TLSv1 client - internal structures
* Copyright (c) 2006-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef TLSV1_CLIENT_I_H
#define TLSV1_CLIENT_I_H
struct tlsv1_client {
enum {
CLIENT_HELLO, SERVER_HELLO, SERV... | 2,792 | 26.653465 | 77 | h |
hostap | hostap-master/src/tls/rsa.h | /*
* RSA
* Copyright (c) 2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef RSA_H
#define RSA_H
struct crypto_rsa_key;
struct crypto_rsa_key *
crypto_rsa_import_public_key(const u8 *buf, size_t len);
struct crypto_rsa... | 770 | 27.555556 | 75 | h |
hostap | hostap-master/src/tls/pkcs5.c | /*
* PKCS #5 (Password-based Encryption)
* Copyright (c) 2009-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/crypto.h"
#include "crypto/md5.h"
#include "crypto/sha... | 16,716 | 24.678955 | 90 | c |
hostap | hostap-master/src/tls/tlsv1_record.c | /*
* TLSv1 Record Protocol
* Copyright (c) 2006-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/md5.h"
#include "crypto/sha1.h"
#include "crypto/sha256.h"
#include ... | 13,734 | 27.261317 | 78 | c |
hostap | hostap-master/src/tls/tlsv1_cred.h | /*
* TLSv1 credentials
* Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef TLSV1_CRED_H
#define TLSV1_CRED_H
struct tlsv1_credentials {
struct x509_certificate *trusted_certs;
struct x509_certific... | 1,394 | 27.469388 | 75 | h |
hostap | hostap-master/src/tls/tlsv1_record.h | /*
* TLSv1 Record Protocol
* Copyright (c) 2006-2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef TLSV1_RECORD_H
#define TLSV1_RECORD_H
#include "crypto/crypto.h"
#define TLS_MAX_WRITE_MAC_SECRET_LEN 32
#define TLS_M... | 1,938 | 25.930556 | 78 | h |
hostap | hostap-master/src/tls/tlsv1_common.h | /*
* TLSv1 common definitions
* Copyright (c) 2006-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef TLSV1_COMMON_H
#define TLSV1_COMMON_H
#include "crypto/crypto.h"
#define TLS_VERSION_1 0x0301 /* TLSv1 */
#define T... | 9,748 | 34.322464 | 77 | h |
hostap | hostap-master/src/common/gas.h | /*
* Generic advertisement service (GAS) (IEEE 802.11u)
* Copyright (c) 2009, Atheros Communications
* Copyright (c) 2011-2012, Qualcomm Atheros
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef GAS_H
#define GAS_H
struct wpabuf * gas_build_initi... | 1,392 | 35.657895 | 78 | h |
hostap | hostap-master/src/common/defs.h | /*
* WPA Supplicant - Common definitions
* Copyright (c) 2004-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef DEFS_H
#define DEFS_H
#ifdef FALSE
#undef FALSE
#endif
#ifdef TRUE
#undef TRUE
#endif
typedef enum { FALS... | 10,186 | 26.237968 | 78 | h |
hostap | hostap-master/src/common/hw_features_common.c | /*
* Common hostapd/wpa_supplicant HW features
* Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
* Copyright (c) 2015, Qualcomm Atheros, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "defs.h"
#... | 11,471 | 24.157895 | 108 | c |
hostap | hostap-master/src/common/ieee802_1x_defs.h | /*
* IEEE Std 802.1X-2010 definitions
* Copyright (c) 2013-2014, Qualcomm Atheros, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef IEEE802_1X_DEFS_H
#define IEEE802_1X_DEFS_H
#define CS_ID_LEN 8
#define CS_ID_GCM_AES_128 0x0080020001000001... | 1,740 | 21.037975 | 71 | h |
hostap | hostap-master/src/common/eapol_common.h | /*
* EAPOL definitions shared between hostapd and wpa_supplicant
* Copyright (c) 2002-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAPOL_COMMON_H
#define EAPOL_COMMON_H
/* IEEE Std 802.1X-2004 */
#ifdef _MSC_VER... | 2,535 | 26.268817 | 71 | h |
hostap | hostap-master/src/common/hw_features_common.h | /*
* Common hostapd/wpa_supplicant HW features
* Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
* Copyright (c) 2015, Qualcomm Atheros, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef HW_FEATURES_COMMON_H
#define HW_FEATURES_COMMON_H
#in... | 1,433 | 34.85 | 80 | h |
hostap | hostap-master/src/common/linux_bridge.h | /*
* Linux bridge configuration kernel interface
* Copyright (c) 2016, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef LINUX_BRIDGE_H
#define LINUX_BRIDGE_H
/* This interface is defined in linux/if_bridge.h */
#define BR... | 598 | 22.96 | 71 | h |
hostap | hostap-master/src/common/gas.c | /*
* Generic advertisement service (GAS) (IEEE 802.11u)
* Copyright (c) 2009, Atheros Communications
* Copyright (c) 2011-2012, Qualcomm Atheros
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "ieee802... | 6,286 | 21.945255 | 79 | c |
hostap | hostap-master/src/common/sae.h | /*
* Simultaneous authentication of equals
* Copyright (c) 2012-2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef SAE_H
#define SAE_H
#define SAE_KCK_LEN 32
#define SAE_PMK_LEN 32
#define SAE_PMKID_LEN 16
#define SAE_... | 2,294 | 30.875 | 76 | h |
hostap | hostap-master/src/common/wpa_ctrl.h | /*
* wpa_supplicant/hostapd control interface library
* Copyright (c) 2004-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef WPA_CTRL_H
#define WPA_CTRL_H
#ifdef __cplusplus
extern "C" {
#endif
/* wpa_supplicant con... | 20,820 | 40.229703 | 79 | h |
hostap | hostap-master/src/common/cli.h | /*
* Common hostapd/wpa_supplicant command line interface functionality
* Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef CLI_H
#define CLI_H
#include "utils/list.h"
extern const char *const cli_... | 1,347 | 27.083333 | 71 | h |
hostap | hostap-master/src/common/common_module_tests.c | /*
* common module tests
* Copyright (c) 2014-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h"
#include "utils/common.h"
#include "utils/module_tests.h"
#include "ieee802_11_common.h"
#include "ie... | 6,302 | 29.157895 | 133 | c |
hostap | hostap-master/src/common/cli.c | /*
* Common hostapd/wpa_supplicant command line interface functions
* Copyright (c) 2004-2016, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "utils/common.h"
#include "common/cli.h"
const char *... | 5,871 | 20.910448 | 80 | c |
hostap | hostap-master/src/common/tnc.h | /*
* TNC - Common defines
* Copyright (c) 2007-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef TNC_H
#define TNC_H
typedef unsigned long TNC_UInt32;
typedef unsigned char *TNC_BufferReference;
typedef TNC_UInt32 TN... | 3,781 | 30 | 71 | h |
hostap | hostap-master/src/common/wpa_common.h | /*
* WPA definitions shared between hostapd and wpa_supplicant
* Copyright (c) 2002-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef WPA_COMMON_H
#define WPA_COMMON_H
/* IEEE 802.11i */
#define PMKID_LEN 16
#define P... | 15,192 | 32.317982 | 80 | h |
hostap | hostap-master/src/common/linux_vlan.h | /*
* Linux VLAN configuration kernel interface
* Copyright (c) 2016, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef LINUX_VLAN_H
#define LINUX_VLAN_H
/* This ioctl is defined in linux/sockios.h */
#ifndef SIOCSIFVLAN
#d... | 1,162 | 20.943396 | 71 | h |
hostap | hostap-master/src/common/ctrl_iface_common.c | /*
* Common hostapd/wpa_supplicant ctrl iface code.
* Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
* Copyright (c) 2015, Qualcomm Atheros, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "utils/includes.h"
#include <netdb.h>
#include <... | 3,881 | 21.310345 | 78 | c |
hostap | hostap-master/src/common/ctrl_iface_common.h | /*
* Common hostapd/wpa_supplicant ctrl iface code.
* Copyright (c) 2002-2013, Jouni Malinen <j@w1.fi>
* Copyright (c) 2015, Qualcomm Atheros, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef CONTROL_IFACE_COMMON_H
#define CONTROL_IFACE_COMMO... | 1,165 | 28.897436 | 78 | h |
hostap | hostap-master/src/common/wpa_helpers.h | /*
* wpa_supplicant ctrl_iface helpers
* Copyright (c) 2010-2011, Atheros Communications, Inc.
* Copyright (c) 2011-2012, Qualcomm Atheros, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef WPA_HELPERS_H
#define WPA_HELPERS_H
int wpa_command... | 1,341 | 34.315789 | 79 | h |
hostap | hostap-master/src/common/ieee802_11_common.h | /*
* IEEE 802.11 Common routines
* Copyright (c) 2002-2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef IEEE802_11_COMMON_H
#define IEEE802_11_COMMON_H
#include "defs.h"
#define MAX_NOF_MB_IES_SUPPORTED 5
struct mb_... | 4,408 | 23.359116 | 74 | h |
hostap | hostap-master/src/common/wpa_ctrl.c | /*
* wpa_supplicant/hostapd control interface library
* Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#ifdef CONFIG_CTRL_IFACE
#ifdef CONFIG_CTRL_IFACE_UNIX
#include <sys/un.h>
#i... | 17,779 | 22.612218 | 79 | c |
hostap | hostap-master/src/common/qca-vendor-attr.h | /*
* Qualcomm Atheros vendor specific attribute definitions
* Copyright (c) 2014, Qualcomm Atheros, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef QCA_VENDOR_ATTR_H
#define QCA_VENDOR_ATTR_H
/*
* This file defines some of the attributes u... | 685 | 22.655172 | 74 | h |
hostap | hostap-master/src/p2p/p2p_parse.c | /*
* P2P - IE parser
* Copyright (c) 2009-2010, Atheros Communications
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "common/ieee802_11_defs.h"
#include "common/ieee802_11_common.h"
#include "wps/wps_... | 23,575 | 25.460157 | 78 | c |
hostap | hostap-master/src/p2p/p2p_sd.c | /*
* Wi-Fi Direct - P2P service discovery
* Copyright (c) 2009, Atheros Communications
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "common/ieee802_11_defs.h"
#include "common/gas.h"
#include "p2p_i.... | 22,044 | 22.502132 | 78 | c |
hostap | hostap-master/src/p2p/p2p_invitation.c | /*
* Wi-Fi Direct - P2P Invitation procedure
* Copyright (c) 2010, Atheros Communications
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "common/ieee802_11_defs.h"
#include "common/wpa_ctrl.h"
#include... | 21,372 | 28.684722 | 127 | c |
hostap | hostap-master/src/p2p/p2p_utils.c | /*
* P2P - generic helper functions
* Copyright (c) 2009, Atheros Communications
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "common/defs.h"
#include "common/ieee802_11_common.h"
#include "p2p_i.h"
... | 11,503 | 22.670782 | 80 | c |
hostap | hostap-master/src/p2p/p2p_build.c | /*
* P2P - IE builder
* Copyright (c) 2009-2010, Atheros Communications
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "common/ieee802_11_defs.h"
#include "common/qca-vendor.h"
#include "wps/wps_i.h"
#... | 22,736 | 26.197368 | 83 | c |
hostap | hostap-master/src/p2p/p2p_dev_disc.c | /*
* Wi-Fi Direct - P2P Device Discoverability procedure
* Copyright (c) 2010, Atheros Communications
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "common/ieee802_11_defs.h"
#include "p2p_i.h"
#inclu... | 8,851 | 25.824242 | 104 | c |
hostap | hostap-master/src/wps/wps_dev_attr.h | /*
* Wi-Fi Protected Setup - device attributes
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef WPS_DEV_ATTR_H
#define WPS_DEV_ATTR_H
struct wps_parse_attr;
int wps_build_manufacturer(struct wps_devi... | 1,780 | 43.525 | 77 | h |
hostap | hostap-master/src/wps/upnp_xml.c | /*
* UPnP XML helper routines
* Copyright (c) 2000-2003 Intel Corporation
* Copyright (c) 2006-2007 Sony Corporation
* Copyright (c) 2008-2009 Atheros Communications
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* See wps_upnp.c for more details on licensing and code history.
*/
#include "includes.h"
#inclu... | 8,022 | 30.711462 | 79 | c |
hostap | hostap-master/src/wps/httpread.c | /*
* httpread - Manage reading file(s) from HTTP/TCP socket
* Author: Ted Merrill
* Copyright 2008 Atheros Communications
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*
* The files are buffered via internal callbacks from eloop, then presented to
* an ... | 23,285 | 26.427562 | 84 | c |
hostap | hostap-master/src/wps/wps_upnp.h | /*
* UPnP WPS Device
* Copyright (c) 2000-2003 Intel Corporation
* Copyright (c) 2006-2007 Sony Corporation
* Copyright (c) 2008-2009 Atheros Communications
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* See wps_upnp.c for more details on licensing and code history.
*/
#ifndef WPS_UPNP_H
#define WPS_UPNP_H
... | 1,363 | 25.230769 | 78 | h |
hostap | hostap-master/src/wps/http_server.h | /*
* http_server - HTTP server
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef HTTP_SERVER_H
#define HTTP_SERVER_H
struct http_server;
struct http_request;
void http_request_deinit(struct http_reque... | 1,169 | 33.411765 | 76 | h |
hostap | hostap-master/src/wps/wps_dev_attr.c | /*
* Wi-Fi Protected Setup - device attributes
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "wps_i.h"
#include "wps_dev_attr.h"
int wps_build_manufactu... | 10,494 | 23.988095 | 79 | c |
hostap | hostap-master/src/wps/wps_attr_parse.c | /*
* Wi-Fi Protected Setup - attribute parsing
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "wps_defs.h"
#include "wps_attr_parse.h"
#ifndef CONFIG_WPS_... | 15,759 | 22.73494 | 82 | c |
hostap | hostap-master/src/wps/wps.c | /*
* Wi-Fi Protected Setup
* Copyright (c) 2007-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* 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"
... | 18,076 | 26.101949 | 79 | c |
hostap | hostap-master/src/wps/ndef.c | /*
* NDEF(NFC Data Exchange Format) routines for Wi-Fi Protected Setup
* Reference is "NFCForum-TS-NDEF_1.0 2006-07-24".
* Copyright (c) 2009-2012, Masashi Honma <masashi.honma@gmail.com>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "inclu... | 4,946 | 23.131707 | 71 | c |
hostap | hostap-master/src/wps/wps_common.c | /*
* Wi-Fi Protected Setup - common functionality
* Copyright (c) 2008-2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "common/defs.h"
#include "common/ieee802_11_common.h"... | 21,447 | 22.543359 | 79 | c |
hostap | hostap-master/src/wps/wps_attr_process.c | /*
* Wi-Fi Protected Setup - attribute processing
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha256.h"
#include "wps_i.h"
int wps_process_aut... | 7,371 | 25.04947 | 91 | c |
hostap | hostap-master/src/wps/wps_er_ssdp.c | /*
* Wi-Fi Protected Setup - External Registrar (SSDP)
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "uuid.h"
#include "eloop.h"
#include "wps_i.h"
#inclu... | 5,022 | 23.383495 | 71 | c |
hostap | hostap-master/src/wps/upnp_xml.h | /*
* UPnP XML helper routines
* Copyright (c) 2000-2003 Intel Corporation
* Copyright (c) 2006-2007 Sony Corporation
* Copyright (c) 2008-2009 Atheros Communications
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* See wps_upnp.c for more details on licensing and code history.
*/
#ifndef UPNP_XML_H
#define UP... | 797 | 29.692308 | 71 | h |
hostap | hostap-master/src/wps/wps_upnp_i.h | /*
* UPnP for WPS / internal definitions
* Copyright (c) 2000-2003 Intel Corporation
* Copyright (c) 2006-2007 Sony Corporation
* Copyright (c) 2008-2009 Atheros Communications
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* See wps_upnp.c for more details on licensing and code history.
*/
#ifndef WPS_UPNP_I... | 6,778 | 34.124352 | 79 | h |
hostap | hostap-master/src/wps/wps_i.h | /*
* Wi-Fi Protected Setup - internal definitions
* Copyright (c) 2008-2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef WPS_I_H
#define WPS_I_H
#include "wps.h"
#include "wps_attr_parse.h"
struct wps_nfc_pw_token;
... | 7,100 | 31.424658 | 79 | h |
hostap | hostap-master/src/wps/wps_er.h | /*
* Wi-Fi Protected Setup - External Registrar
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef WPS_ER_H
#define WPS_ER_H
#include "utils/list.h"
struct wps_er_sta {
struct dl_list list;
struct wp... | 2,584 | 21.876106 | 75 | h |
hostap | hostap-master/src/wps/wps_defs.h | /*
* Wi-Fi Protected Setup - message definitions
* Copyright (c) 2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef WPS_DEFS_H
#define WPS_DEFS_H
#ifdef CONFIG_WPS_TESTING
extern int wps_version_number;
extern int wps... | 10,213 | 25.598958 | 77 | h |
hostap | hostap-master/src/wps/httpread.h | /*
* httpread - Manage reading file(s) from HTTP/TCP socket
* Author: Ted Merrill
* Copyright 2008 Atheros Communications
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef HTTPREAD_H
#define HTTPREAD_H
/* event types (passed to callback) */
enum ... | 4,138 | 34.076271 | 75 | h |
hostap | hostap-master/src/wps/http_client.h | /*
* http_client - HTTP client
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef HTTP_CLIENT_H
#define HTTP_CLIENT_H
struct http_client;
enum http_client_event {
HTTP_CLIENT_FAILED,
HTTP_CLIENT_TIME... | 1,193 | 28.121951 | 72 | h |
hostap | hostap-master/src/wps/wps_attr_build.c | /*
* Wi-Fi Protected Setup - attribute building
* Copyright (c) 2008-2016, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/aes_wrap.h"
#include "crypto/crypto.h"
#include... | 13,589 | 25.910891 | 72 | c |
hostap | hostap-master/src/wps/wps_upnp_event.c | /*
* UPnP WPS Device - Event processing
* Copyright (c) 2000-2003 Intel Corporation
* Copyright (c) 2006-2007 Sony Corporation
* Copyright (c) 2008-2009 Atheros Communications
* Copyright (c) 2009-2010, Jouni Malinen <j@w1.fi>
*
* See wps_upnp.c for more details on licensing and code history.
*/
#include "incl... | 11,724 | 26.78436 | 78 | c |
hostap | hostap-master/src/wps/wps_upnp_ap.c | /*
* Wi-Fi Protected Setup - UPnP AP functionality
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "uuid.h"
#include "wps_i.h"
#include "... | 2,416 | 27.77381 | 76 | c |
hostap | hostap-master/src/wps/wps_attr_parse.h | /*
* Wi-Fi Protected Setup - attribute parsing
* Copyright (c) 2008-2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef WPS_ATTR_PARSE_H
#define WPS_ATTR_PARSE_H
#include "wps.h"
struct wps_parse_attr {
/* fixed lengt... | 3,555 | 32.866667 | 73 | h |
hostap | hostap-master/src/wps/http_client.c | /*
* http_client - HTTP client
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <fcntl.h>
#include "common.h"
#include "eloop.h"
#include "httpread.h"
#include "http_client.h"
... | 8,204 | 21.603306 | 75 | c |
hostap | hostap-master/src/wps/http.h | /*
* HTTP for WPS
* Copyright (c) 2000-2003 Intel Corporation
* Copyright (c) 2006-2007 Sony Corporation
* Copyright (c) 2008-2009 Atheros Communications
* Copyright (c) 2009, Jouni Malinen <j@w1.fi>
*
* See wps_upnp.c for more details on licensing and code history.
*/
#ifndef HTTP_H
#define HTTP_H
enum http_... | 690 | 22.033333 | 65 | h |
hostap | hostap-master/src/eap_server/eap.h | /*
* hostapd / EAP Full Authenticator state machine (RFC 4137)
* Copyright (c) 2004-2014, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_H
#define EAP_H
#include "common/defs.h"
#include "utils/list.h"
#include "eap_... | 4,300 | 26.050314 | 75 | h |
hostap | hostap-master/src/eap_server/eap_server_eke.c | /*
* hostapd / EAP-EKE (RFC 6124) server
* Copyright (c) 2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include "eap_commo... | 21,599 | 25.535627 | 91 | c |
hostap | hostap-master/src/eap_server/eap_server_gpsk.c | /*
* hostapd / EAP-GPSK (RFC 5433) server
* Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include "eap... | 16,850 | 24.805513 | 79 | c |
hostap | hostap-master/src/eap_server/eap_server_mschapv2.c | /*
* hostapd / EAP-MSCHAPv2 (draft-kamath-pppext-eap-mschapv2-00.txt) server
* Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/ms_funcs.h"
#inclu... | 15,445 | 25.091216 | 75 | c |
hostap | hostap-master/src/eap_server/eap_server_md5.c | /*
* hostapd / EAP-MD5 server
* Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_i.h"
#include "eap_common/chap.h"
#defi... | 3,941 | 21.918605 | 77 | c |
hostap | hostap-master/src/eap_server/eap_server_identity.c | /*
* hostapd / EAP-Identity
* Copyright (c) 2004-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
struct eap_identity_data {
enum { CONTINUE, SUCCESS, FAILURE }... | 3,835 | 20.550562 | 75 | c |
hostap | hostap-master/src/eap_server/eap_server_tnc.c | /*
* EAP server method: EAP-TNC (Trusted Network Connect)
* Copyright (c) 2007-2010, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
#include "tncs.h"
struct eap_tnc_... | 13,747 | 22.993019 | 77 | c |
hostap | hostap-master/src/eap_server/eap_server_methods.c | /*
* EAP server method registration
* Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
#include "eap_methods.h"
static struct eap_method *eap_... | 4,411 | 23.926554 | 79 | c |
hostap | hostap-master/src/eap_server/eap_methods.h | /*
* EAP server method registration
* Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_SERVER_METHODS_H
#define EAP_SERVER_METHODS_H
#include "eap_common/eap_defs.h"
const struct eap_method * ... | 1,721 | 32.764706 | 75 | h |
hostap | hostap-master/src/eap_server/eap_server_sake.c | /*
* hostapd / EAP-SAKE (RFC 4763) server
* Copyright (c) 2006-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include "eap... | 13,144 | 23.252768 | 79 | c |
hostap | hostap-master/src/eap_server/eap_i.h | /*
* hostapd / EAP Authenticator state machine internal structures (RFC 4137)
* Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_I_H
#define EAP_I_H
#include "wpabuf.h"
#include "eap_server/eap... | 6,952 | 29.629956 | 79 | h |
hostap | hostap-master/src/eap_server/eap_server_pax.c | /*
* hostapd / EAP-PAX (RFC 4746) server
* Copyright (c) 2005-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include "eap_... | 15,163 | 24.833049 | 78 | c |
hostap | hostap-master/src/eap_server/eap_server_wsc.c | /*
* EAP-WSC server for Wi-Fi Protected Setup
* Copyright (c) 2007-2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eloop.h"
#include "eap_i.h"
#include "eap_common/eap_wsc... | 12,585 | 23.726916 | 77 | c |
hostap | hostap-master/src/eap_server/ikev2.h | /*
* IKEv2 initiator (RFC 4306) for EAP-IKEV2
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef IKEV2_H
#define IKEV2_H
#include "eap_common/ikev2_common.h"
struct ikev2_proposal_data {
u8 proposal_n... | 1,427 | 22.032258 | 73 | h |
hostap | hostap-master/src/eap_server/eap_server_sim.c | /*
* hostapd / EAP-SIM (RFC 4186)
* Copyright (c) 2005-2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/random.h"
#include "eap_server/eap_i.h"
#include "eap_common/... | 23,442 | 26.008065 | 78 | c |
hostap | hostap-master/src/eap_server/eap_server_gtc.c | /*
* hostapd / EAP-GTC (RFC 3748)
* Copyright (c) 2004-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
struct eap_gtc_data {
enum { CONTINUE, SUCCESS, FAILURE ... | 5,083 | 22.004525 | 77 | c |
hostap | hostap-master/src/eap_server/eap_server_psk.c | /*
* hostapd / EAP-PSK (RFC 4764) server
* Copyright (c) 2005-2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* 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... | 13,226 | 23.862782 | 78 | c |
hostap | hostap-master/src/eap_server/eap_sim_db.h | /*
* hostapd / EAP-SIM database/authenticator gateway
* Copyright (c) 2005-2008, 2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_SIM_DB_H
#define EAP_SIM_DB_H
#include "eap_common/eap_sim_common.h"
/* Identity ... | 2,871 | 28.916667 | 79 | h |
hostap | hostap-master/src/eap_server/eap_server_tls_common.c | /*
* EAP-TLS/PEAP/TTLS/FAST server common functions
* Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "crypto/sha1.h"
#include "crypto/tls.h"
#include "e... | 12,562 | 25.118503 | 89 | c |
hostap | hostap-master/src/eap_server/eap_tls_common.h | /*
* EAP-TLS/PEAP/TTLS/FAST server common functions
* Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAP_TLS_COMMON_H
#define EAP_TLS_COMMON_H
/**
* struct eap_ssl_data - TLS data for EAP method... | 2,766 | 28.126316 | 77 | h |
hostap | hostap-master/src/eap_server/tncs.h | /*
* EAP-TNC - TNCS (IF-IMV, IF-TNCCS, and IF-TNCCS-SOH)
* Copyright (c) 2007-2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef TNCS_H
#define TNCS_H
struct tncs_data;
struct tncs_data * tncs_init(void);
void tncs_de... | 1,207 | 26.454545 | 71 | h |
hostap | hostap-master/src/eap_server/eap_server_ikev2.c | /*
* EAP-IKEv2 server (RFC 5106)
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* 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"
str... | 13,975 | 23.390925 | 80 | c |
hostap | hostap-master/src/eap_server/eap_server_tls.c | /*
* hostapd / EAP-TLS (RFC 2716)
* Copyright (c) 2004-2008, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include "common.h"
#include "eap_i.h"
#include "eap_tls_common.h"
#include "crypto/tls.h"
stati... | 10,276 | 21.78714 | 79 | c |
hostap | hostap-master/src/l2_packet/l2_packet_winpcap.c | /*
* WPA Supplicant - Layer2 packet handling with WinPcap RX thread
* Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*
* This l2_packet implementation is explicitly for WinPcap and Windows events.
* l2_pack... | 9,593 | 26.568966 | 79 | c |
hostap | hostap-master/src/l2_packet/l2_packet.h | /*
* WPA Supplicant - Layer2 packet interface definition
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*
* This file defines an interface for layer 2 (link layer) packet sending and
* receiving. l2_packe... | 5,917 | 37.180645 | 80 | h |
hostap | hostap-master/src/l2_packet/l2_packet_none.c | /*
* WPA Supplicant - Layer2 packet handling example with dummy functions
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*
* This file can be used as a starting point for layer2 packet implementation.
*/
... | 2,943 | 20.333333 | 78 | c |
hostap | hostap-master/src/l2_packet/l2_packet_privsep.c | /*
* WPA Supplicant - Layer2 packet handling with privilege separation
* Copyright (c) 2007, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <sys/un.h>
#include "common.h"
#include "eloop.h"
#includ... | 6,572 | 22.144366 | 76 | c |
hostap | hostap-master/src/l2_packet/l2_packet_freebsd.c | /*
* WPA Supplicant - Layer2 packet handling with FreeBSD
* Copyright (c) 2003-2005, Jouni Malinen <j@w1.fi>
* Copyright (c) 2005, Sam Leffler <sam@errno.com>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#if defined(__APPLE__) |... | 7,935 | 23.048485 | 76 | c |
hostap | hostap-master/src/l2_packet/l2_packet_linux.c | /*
* WPA Supplicant - Layer2 packet handling with Linux packet sockets
* Copyright (c) 2003-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <sys/ioctl.h>
#include <netpacket/packet.h>
#include ... | 13,188 | 26.363071 | 112 | c |
hostap | hostap-master/src/l2_packet/l2_packet_ndis.c | /*
* WPA Supplicant - Layer2 packet handling with Microsoft NDISUIO
* Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*
* This implementation requires Windows specific event loop implementation,
* i.e., eloo... | 14,825 | 26.660448 | 77 | c |
hostap | hostap-master/src/l2_packet/l2_packet_pcap.c | /*
* WPA Supplicant - Layer2 packet handling with libpcap/libdnet and WinPcap
* Copyright (c) 2003-2006, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#ifndef CONFIG_NATIVE_WINDOWS
#include <sys/ioctl.h>
#e... | 9,972 | 23.870324 | 77 | c |
hostap | hostap-master/src/eapol_supp/eapol_supp_sm.h | /*
* EAPOL supplicant state machines
* Copyright (c) 2004-2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef EAPOL_SUPP_SM_H
#define EAPOL_SUPP_SM_H
#include "common/defs.h"
typedef enum { Unauthorized, Authorized } P... | 13,330 | 28.234649 | 79 | h |
hostap | hostap-master/src/radius/radius_client.h | /*
* RADIUS client
* Copyright (c) 2002-2009, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef RADIUS_CLIENT_H
#define RADIUS_CLIENT_H
#include "ip_addr.h"
struct radius_msg;
/**
* struct hostapd_radius_server - RADIUS ... | 6,552 | 23.91635 | 103 | h |
hostap | hostap-master/src/radius/radius_das.h | /*
* RADIUS Dynamic Authorization Server (DAS)
* Copyright (c) 2012, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef RADIUS_DAS_H
#define RADIUS_DAS_H
struct radius_das_data;
enum radius_das_res {
RADIUS_DAS_SUCCESS,
R... | 1,332 | 21.59322 | 71 | h |
hostap | hostap-master/src/radius/radius_server.h | /*
* RADIUS authentication server
* Copyright (c) 2005-2009, 2011, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef RADIUS_SERVER_H
#define RADIUS_SERVER_H
struct radius_server_data;
struct eap_user;
/**
* struct radius_... | 6,991 | 27.080321 | 78 | h |
hostap | hostap-master/src/radius/radius_das.c | /*
* RADIUS Dynamic Authorization Server (DAS) (RFC 5176)
* Copyright (c) 2012-2013, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#include "includes.h"
#include <net/if.h>
#include "utils/common.h"
#include "utils/eloop.h"
#in... | 10,072 | 23.213942 | 88 | c |
hostap | hostap-master/src/radius/radius.h | /*
* RADIUS message processing
* Copyright (c) 2002-2009, 2012, 2014-2015, Jouni Malinen <j@w1.fi>
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef RADIUS_H
#define RADIUS_H
/* RFC 2865 - RADIUS */
#ifdef _MSC_VER
#pragma pack(push, 1)
#endif /*... | 11,357 | 33.210843 | 79 | h |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.