Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/tls-maxphys]: src/external/bsd/wpa/dist from hostap.epitest.fi
details: https://anonhg.NetBSD.org/src/rev/762c416c35cb
branches: tls-maxphys
changeset: 852923:762c416c35cb
user: christos <christos%NetBSD.org@localhost>
date: Sun Oct 07 23:46:59 2012 +0000
description:
from hostap.epitest.fi
diffstat:
external/bsd/wpa/dist/hostapd/Android.mk | 828 +
external/bsd/wpa/dist/src/ap/ieee802_11_shared.c | 405 +
external/bsd/wpa/dist/src/ap/p2p_hostapd.c | 120 +
external/bsd/wpa/dist/src/ap/p2p_hostapd.h | 41 +
external/bsd/wpa/dist/src/common/gas.c | 279 +
external/bsd/wpa/dist/src/common/gas.h | 42 +
external/bsd/wpa/dist/src/crypto/random.c | 430 +
external/bsd/wpa/dist/src/crypto/random.h | 34 +
external/bsd/wpa/dist/src/drivers/driver_common.c | 89 +
external/bsd/wpa/dist/src/drivers/drivers.mk | 190 +
external/bsd/wpa/dist/src/drivers/rfkill.c | 194 +
external/bsd/wpa/dist/src/drivers/rfkill.h | 31 +
external/bsd/wpa/dist/src/eap_common/eap_pwd_common.c | 330 +
external/bsd/wpa/dist/src/eap_common/eap_pwd_common.h | 79 +
external/bsd/wpa/dist/src/eap_peer/eap_pwd.c | 763 +
external/bsd/wpa/dist/src/eap_server/eap_server_pwd.c | 864 +
external/bsd/wpa/dist/src/p2p/Makefile | 9 +
external/bsd/wpa/dist/src/p2p/p2p.c | 3901 ++++++++
external/bsd/wpa/dist/src/p2p/p2p.h | 1657 +++
external/bsd/wpa/dist/src/p2p/p2p_build.c | 433 +
external/bsd/wpa/dist/src/p2p/p2p_dev_disc.c | 365 +
external/bsd/wpa/dist/src/p2p/p2p_go_neg.c | 1130 ++
external/bsd/wpa/dist/src/p2p/p2p_group.c | 739 +
external/bsd/wpa/dist/src/p2p/p2p_i.h | 678 +
external/bsd/wpa/dist/src/p2p/p2p_invitation.c | 491 +
external/bsd/wpa/dist/src/p2p/p2p_parse.c | 718 +
external/bsd/wpa/dist/src/p2p/p2p_pd.c | 416 +
external/bsd/wpa/dist/src/p2p/p2p_sd.c | 889 +
external/bsd/wpa/dist/src/p2p/p2p_utils.c | 271 +
external/bsd/wpa/dist/src/rsn_supp/tdls.c | 2338 +++++
external/bsd/wpa/dist/src/utils/edit.c | 1178 ++
external/bsd/wpa/dist/src/utils/edit.h | 27 +
external/bsd/wpa/dist/src/utils/edit_readline.c | 184 +
external/bsd/wpa/dist/src/utils/edit_simple.c | 96 +
external/bsd/wpa/dist/src/wps/wps_validate.c | 1981 ++++
external/bsd/wpa/dist/wpa_supplicant/Android.mk | 1463 +++
external/bsd/wpa/dist/wpa_supplicant/README-P2P | 525 +
external/bsd/wpa/dist/wpa_supplicant/bgscan_learn.c | 610 +
external/bsd/wpa/dist/wpa_supplicant/dbus/dbus_new_handlers_p2p.c | 2456 +++++
external/bsd/wpa/dist/wpa_supplicant/dbus/dbus_new_handlers_p2p.h | 217 +
external/bsd/wpa/dist/wpa_supplicant/dbus/fi.epitest.hostap.WPASupplicant.service.in | 5 +
external/bsd/wpa/dist/wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service.in | 5 +
external/bsd/wpa/dist/wpa_supplicant/examples/p2p-action-udhcp.sh | 69 +
external/bsd/wpa/dist/wpa_supplicant/examples/p2p-action.sh | 83 +
external/bsd/wpa/dist/wpa_supplicant/examples/udhcpd-p2p.conf | 120 +
external/bsd/wpa/dist/wpa_supplicant/gas_query.c | 481 +
external/bsd/wpa/dist/wpa_supplicant/gas_query.h | 61 +
external/bsd/wpa/dist/wpa_supplicant/interworking.c | 1138 ++
external/bsd/wpa/dist/wpa_supplicant/interworking.h | 31 +
external/bsd/wpa/dist/wpa_supplicant/offchannel.c | 314 +
external/bsd/wpa/dist/wpa_supplicant/offchannel.h | 39 +
external/bsd/wpa/dist/wpa_supplicant/p2p_supplicant.c | 4474 ++++++++++
external/bsd/wpa/dist/wpa_supplicant/p2p_supplicant.h | 141 +
external/bsd/wpa/dist/wpa_supplicant/systemd/wpa_supplicant-nl80211@.service.in | 13 +
external/bsd/wpa/dist/wpa_supplicant/systemd/wpa_supplicant-wired@.service.in | 13 +
external/bsd/wpa/dist/wpa_supplicant/systemd/wpa_supplicant.service.in | 11 +
external/bsd/wpa/dist/wpa_supplicant/systemd/wpa_supplicant@.service.in | 13 +
external/bsd/wpa/dist/wpa_supplicant/wpa_gui-qt4/icons/group.svg | 616 +
external/bsd/wpa/dist/wpa_supplicant/wpa_gui-qt4/icons/invitation.svg | 374 +
59 files changed, 35492 insertions(+), 0 deletions(-)
diffs (truncated from 35728 to 300 lines):
diff -r 42a88660eeb3 -r 762c416c35cb external/bsd/wpa/dist/hostapd/Android.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/external/bsd/wpa/dist/hostapd/Android.mk Sun Oct 07 23:46:59 2012 +0000
@@ -0,0 +1,828 @@
+LOCAL_PATH := $(call my-dir)
+
+WPA_BUILD_HOSTAPD := false
+ifneq ($(TARGET_SIMULATOR),true)
+ ifneq ($(BOARD_HOSTAPD_DRIVER),)
+ WPA_BUILD_HOSTAPD := true
+ CONFIG_DRIVER_$(BOARD_HOSTAPD_DRIVER) := y
+ endif
+endif
+
+include $(LOCAL_PATH)/.config
+
+# To ignore possible wrong network configurations
+L_CFLAGS = -DWPA_IGNORE_CONFIG_ERRORS
+
+# Set Android log name
+L_CFLAGS += -DANDROID_LOG_NAME=\"hostapd\"
+
+# To force sizeof(enum) = 4
+ifeq ($(TARGET_ARCH),arm)
+L_CFLAGS += -mabi=aapcs-linux
+endif
+
+# To allow non-ASCII characters in SSID
+L_CFLAGS += -DWPA_UNICODE_SSID
+
+# OpenSSL is configured without engines on Android
+L_CFLAGS += -DOPENSSL_NO_ENGINE
+
+INCLUDES = $(LOCAL_PATH)
+INCLUDES += $(LOCAL_PATH)/src
+INCLUDES += $(LOCAL_PATH)/src/utils
+INCLUDES += external/openssl/include
+INCLUDES += frameworks/base/cmds/keystore
+ifdef CONFIG_DRIVER_NL80211
+INCLUDES += external/libnl-headers
+endif
+
+
+ifndef CONFIG_OS
+ifdef CONFIG_NATIVE_WINDOWS
+CONFIG_OS=win32
+else
+CONFIG_OS=unix
+endif
+endif
+
+ifeq ($(CONFIG_OS), internal)
+L_CFLAGS += -DOS_NO_C_LIB_DEFINES
+endif
+
+ifdef CONFIG_NATIVE_WINDOWS
+L_CFLAGS += -DCONFIG_NATIVE_WINDOWS
+LIBS += -lws2_32
+endif
+
+OBJS = main.c
+OBJS += config_file.c
+
+OBJS += src/ap/hostapd.c
+OBJS += src/ap/wpa_auth_glue.c
+OBJS += src/ap/drv_callbacks.c
+OBJS += src/ap/ap_drv_ops.c
+OBJS += src/ap/utils.c
+OBJS += src/ap/authsrv.c
+OBJS += src/ap/ieee802_1x.c
+OBJS += src/ap/ap_config.c
+OBJS += src/ap/ieee802_11_auth.c
+OBJS += src/ap/sta_info.c
+OBJS += src/ap/wpa_auth.c
+OBJS += src/ap/tkip_countermeasures.c
+OBJS += src/ap/ap_mlme.c
+OBJS += src/ap/wpa_auth_ie.c
+OBJS += src/ap/preauth_auth.c
+OBJS += src/ap/pmksa_cache_auth.c
+OBJS += src/ap/ieee802_11_shared.c
+OBJS += src/ap/beacon.c
+OBJS_d =
+OBJS_p =
+LIBS =
+LIBS_c =
+HOBJS =
+LIBS_h =
+
+NEED_RC4=y
+NEED_AES=y
+NEED_MD5=y
+NEED_SHA1=y
+
+OBJS += src/drivers/drivers.c
+L_CFLAGS += -DHOSTAPD
+
+ifdef CONFIG_WPA_TRACE
+L_CFLAGS += -DWPA_TRACE
+OBJS += src/utils/trace.c
+HOBJS += src/utils/trace.c
+LDFLAGS += -rdynamic
+L_CFLAGS += -funwind-tables
+ifdef CONFIG_WPA_TRACE_BFD
+L_CFLAGS += -DWPA_TRACE_BFD
+LIBS += -lbfd
+LIBS_c += -lbfd
+LIBS_h += -lbfd
+endif
+endif
+
+OBJS += src/utils/eloop.c
+OBJS += src/utils/common.c
+OBJS += src/utils/wpa_debug.c
+OBJS += src/utils/wpabuf.c
+OBJS += src/utils/os_$(CONFIG_OS).c
+OBJS += src/utils/ip_addr.c
+
+OBJS += src/common/ieee802_11_common.c
+OBJS += src/common/wpa_common.c
+
+OBJS += src/eapol_auth/eapol_auth_sm.c
+
+
+ifndef CONFIG_NO_DUMP_STATE
+# define HOSTAPD_DUMP_STATE to include SIGUSR1 handler for dumping state to
+# a file (undefine it, if you want to save in binary size)
+L_CFLAGS += -DHOSTAPD_DUMP_STATE
+OBJS += dump_state.c
+OBJS += src/eapol_auth/eapol_auth_dump.c
+endif
+
+ifdef CONFIG_NO_RADIUS
+L_CFLAGS += -DCONFIG_NO_RADIUS
+CONFIG_NO_ACCOUNTING=y
+else
+OBJS += src/radius/radius.c
+OBJS += src/radius/radius_client.c
+endif
+
+ifdef CONFIG_NO_ACCOUNTING
+L_CFLAGS += -DCONFIG_NO_ACCOUNTING
+else
+OBJS += src/ap/accounting.c
+endif
+
+ifdef CONFIG_NO_VLAN
+L_CFLAGS += -DCONFIG_NO_VLAN
+else
+OBJS += src/ap/vlan_init.c
+endif
+
+ifdef CONFIG_NO_CTRL_IFACE
+L_CFLAGS += -DCONFIG_NO_CTRL_IFACE
+else
+OBJS += ctrl_iface.c
+OBJS += src/ap/ctrl_iface_ap.c
+endif
+
+OBJS += src/crypto/md5.c
+
+L_CFLAGS += -DCONFIG_CTRL_IFACE -DCONFIG_CTRL_IFACE_UNIX
+
+ifdef CONFIG_IAPP
+L_CFLAGS += -DCONFIG_IAPP
+OBJS += src/ap/iapp.c
+endif
+
+ifdef CONFIG_RSN_PREAUTH
+L_CFLAGS += -DCONFIG_RSN_PREAUTH
+CONFIG_L2_PACKET=y
+endif
+
+ifdef CONFIG_PEERKEY
+L_CFLAGS += -DCONFIG_PEERKEY
+OBJS += src/ap/peerkey_auth.c
+endif
+
+ifdef CONFIG_IEEE80211W
+L_CFLAGS += -DCONFIG_IEEE80211W
+NEED_SHA256=y
+NEED_AES_OMAC1=y
+endif
+
+ifdef CONFIG_IEEE80211R
+L_CFLAGS += -DCONFIG_IEEE80211R
+OBJS += src/ap/wpa_auth_ft.c
+NEED_SHA256=y
+NEED_AES_OMAC1=y
+NEED_AES_UNWRAP=y
+endif
+
+ifdef CONFIG_IEEE80211N
+L_CFLAGS += -DCONFIG_IEEE80211N
+endif
+
+include $(LOCAL_PATH)/src/drivers/drivers.mk
+
+OBJS += $(DRV_AP_OBJS)
+L_CFLAGS += $(DRV_AP_CFLAGS)
+LDFLAGS += $(DRV_AP_LDFLAGS)
+LIBS += $(DRV_AP_LIBS)
+
+ifdef CONFIG_L2_PACKET
+ifdef CONFIG_DNET_PCAP
+ifdef CONFIG_L2_FREEBSD
+LIBS += -lpcap
+OBJS += src/l2_packet/l2_packet_freebsd.c
+else
+LIBS += -ldnet -lpcap
+OBJS += src/l2_packet/l2_packet_pcap.c
+endif
+else
+OBJS += src/l2_packet/l2_packet_linux.c
+endif
+else
+OBJS += src/l2_packet/l2_packet_none.c
+endif
+
+
+ifdef CONFIG_EAP_MD5
+L_CFLAGS += -DEAP_SERVER_MD5
+OBJS += src/eap_server/eap_server_md5.c
+CHAP=y
+endif
+
+ifdef CONFIG_EAP_TLS
+L_CFLAGS += -DEAP_SERVER_TLS
+OBJS += src/eap_server/eap_server_tls.c
+TLS_FUNCS=y
+endif
+
+ifdef CONFIG_EAP_PEAP
+L_CFLAGS += -DEAP_SERVER_PEAP
+OBJS += src/eap_server/eap_server_peap.c
+OBJS += src/eap_common/eap_peap_common.c
+TLS_FUNCS=y
+CONFIG_EAP_MSCHAPV2=y
+endif
+
+ifdef CONFIG_EAP_TTLS
+L_CFLAGS += -DEAP_SERVER_TTLS
+OBJS += src/eap_server/eap_server_ttls.c
+TLS_FUNCS=y
+CHAP=y
+endif
+
+ifdef CONFIG_EAP_MSCHAPV2
+L_CFLAGS += -DEAP_SERVER_MSCHAPV2
+OBJS += src/eap_server/eap_server_mschapv2.c
+MS_FUNCS=y
+endif
+
+ifdef CONFIG_EAP_GTC
+L_CFLAGS += -DEAP_SERVER_GTC
+OBJS += src/eap_server/eap_server_gtc.c
+endif
+
+ifdef CONFIG_EAP_SIM
+L_CFLAGS += -DEAP_SERVER_SIM
+OBJS += src/eap_server/eap_server_sim.c
+CONFIG_EAP_SIM_COMMON=y
+NEED_AES_CBC=y
+endif
+
+ifdef CONFIG_EAP_AKA
+L_CFLAGS += -DEAP_SERVER_AKA
+OBJS += src/eap_server/eap_server_aka.c
+CONFIG_EAP_SIM_COMMON=y
+NEED_SHA256=y
+NEED_AES_CBC=y
+endif
+
+ifdef CONFIG_EAP_AKA_PRIME
+L_CFLAGS += -DEAP_SERVER_AKA_PRIME
+endif
+
+ifdef CONFIG_EAP_SIM_COMMON
+OBJS += src/eap_common/eap_sim_common.c
+# Example EAP-SIM/AKA interface for GSM/UMTS authentication. This can be
+# replaced with another file implementating the interface specified in
+# eap_sim_db.h.
+OBJS += src/eap_server/eap_sim_db.c
+NEED_FIPS186_2_PRF=y
+endif
+
+ifdef CONFIG_EAP_PAX
+L_CFLAGS += -DEAP_SERVER_PAX
+OBJS += src/eap_server/eap_server_pax.c src/eap_common/eap_pax_common.c
+endif
+
+ifdef CONFIG_EAP_PSK
+L_CFLAGS += -DEAP_SERVER_PSK
+OBJS += src/eap_server/eap_server_psk.c src/eap_common/eap_psk_common.c
+NEED_AES_OMAC1=y
+NEED_AES_ENCBLOCK=y
+NEED_AES_EAX=y
+endif
+
+ifdef CONFIG_EAP_SAKE
+L_CFLAGS += -DEAP_SERVER_SAKE
Home |
Main Index |
Thread Index |
Old Index