head	1.15;
access;
symbols
	RELENG_8_4:1.14.0.2
	RELENG_9_1_0_RELEASE:1.9.2.2.2.2
	RELENG_9_1:1.9.2.2.0.2
	RELENG_9_1_BP:1.9.2.2
	RELENG_8_3_0_RELEASE:1.7.2.1.8.1
	RELENG_8_3:1.7.2.1.0.8
	RELENG_8_3_BP:1.7.2.1
	RELENG_9_0_0_RELEASE:1.9.2.1.2.1
	RELENG_9_0:1.9.2.1.0.2
	RELENG_9_0_BP:1.9.2.1
	RELENG_9:1.9.0.2
	RELENG_9_BP:1.9
	RELENG_7_4_0_RELEASE:1.4.2.1.10.1
	RELENG_8_2_0_RELEASE:1.7.2.1.6.1
	RELENG_7_4:1.4.2.1.0.10
	RELENG_7_4_BP:1.4.2.1
	RELENG_8_2:1.7.2.1.0.6
	RELENG_8_2_BP:1.7.2.1
	RELENG_8_1_0_RELEASE:1.7.2.1.4.1
	RELENG_8_1:1.7.2.1.0.4
	RELENG_8_1_BP:1.7.2.1
	RELENG_7_3_0_RELEASE:1.4.2.1.8.1
	RELENG_7_3:1.4.2.1.0.8
	RELENG_7_3_BP:1.4.2.1
	RELENG_8_0_0_RELEASE:1.7.2.1.2.1
	RELENG_8_0:1.7.2.1.0.2
	RELENG_8_0_BP:1.7.2.1
	RELENG_8:1.7.0.2
	RELENG_8_BP:1.7
	RELENG_7_2_0_RELEASE:1.4.2.1.6.1
	RELENG_7_2:1.4.2.1.0.6
	RELENG_7_2_BP:1.4.2.1
	RELENG_7_1_0_RELEASE:1.4.2.1.4.1
	RELENG_6_4_0_RELEASE:1.2.12.1
	RELENG_7_1:1.4.2.1.0.4
	RELENG_7_1_BP:1.4.2.1
	RELENG_6_4:1.2.0.12
	RELENG_6_4_BP:1.2
	RELENG_7_0_0_RELEASE:1.4.2.1
	RELENG_6_3_0_RELEASE:1.2
	RELENG_7_0:1.4.2.1.0.2
	RELENG_7_0_BP:1.4.2.1
	RELENG_6_3:1.2.0.10
	RELENG_6_3_BP:1.2
	RELENG_7:1.4.0.2
	RELENG_7_BP:1.4
	RELENG_6_2_0_RELEASE:1.2
	RELENG_6_2:1.2.0.8
	RELENG_6_2_BP:1.2
	RELENG_6_1_0_RELEASE:1.2
	RELENG_6_1:1.2.0.6
	RELENG_6_1_BP:1.2
	RELENG_6_0_0_RELEASE:1.2
	RELENG_6_0:1.2.0.4
	RELENG_6_0_BP:1.2
	RELENG_6:1.2.0.2
	RELENG_6_BP:1.2;
locks; strict;
comment	@# @;


1.15
date	2013.07.05.00.54.38;	author svnexp;	state Exp;
branches;
next	1.14;

1.14
date	2012.11.17.01.55.00;	author svnexp;	state Exp;
branches
	1.14.2.1;
next	1.13;

1.13
date	2012.04.29.12.48.52;	author bschmidt;	state Exp;
branches;
next	1.12;

1.12
date	2012.04.28.11.11.53;	author bschmidt;	state Exp;
branches;
next	1.11;

1.11
date	2012.04.28.11.02.32;	author bschmidt;	state Exp;
branches;
next	1.10;

1.10
date	2012.04.26.17.35.11;	author bschmidt;	state Exp;
branches;
next	1.9;

1.9
date	2010.11.03.10.44.25;	author rpaulo;	state Exp;
branches
	1.9.2.1;
next	1.8;

1.8
date	2010.06.14.15.38.30;	author rpaulo;	state Exp;
branches;
next	1.7;

1.7
date	2009.03.02.02.28.22;	author sam;	state Exp;
branches
	1.7.2.1;
next	1.6;

1.6
date	2008.04.20.20.39.08;	author sam;	state Exp;
branches;
next	1.5;

1.5
date	2007.11.10.20.27.09;	author sam;	state Exp;
branches;
next	1.4;

1.4
date	2007.09.25.16.08.15;	author sam;	state Exp;
branches
	1.4.2.1;
next	1.3;

1.3
date	2007.07.09.16.26.48;	author sam;	state Exp;
branches;
next	1.2;

1.2
date	2005.06.17.05.37.08;	author sam;	state Exp;
branches
	1.2.2.1
	1.2.12.1;
next	1.1;

1.1
date	2005.06.06.02.13.42;	author sam;	state Exp;
branches;
next	;

1.14.2.1
date	2012.11.17.01.55.00;	author svnexp;	state dead;
branches;
next	1.14.2.2;

1.14.2.2
date	2013.03.28.13.06.28;	author svnexp;	state Exp;
branches;
next	;

1.9.2.1
date	2011.09.23.00.51.37;	author kensmith;	state Exp;
branches
	1.9.2.1.2.1;
next	1.9.2.2;

1.9.2.2
date	2012.05.12.08.22.41;	author bschmidt;	state Exp;
branches
	1.9.2.2.2.1;
next	1.9.2.3;

1.9.2.3
date	2012.11.17.11.37.48;	author svnexp;	state Exp;
branches;
next	;

1.9.2.1.2.1
date	2011.11.11.04.20.22;	author kensmith;	state Exp;
branches;
next	1.9.2.1.2.2;

1.9.2.1.2.2
date	2012.11.17.08.37.45;	author svnexp;	state Exp;
branches;
next	;

1.9.2.2.2.1
date	2012.08.05.23.54.33;	author kensmith;	state Exp;
branches;
next	1.9.2.2.2.2;

1.9.2.2.2.2
date	2012.11.17.08.48.37;	author svnexp;	state Exp;
branches;
next	;

1.7.2.1
date	2009.08.03.08.13.06;	author kensmith;	state Exp;
branches
	1.7.2.1.2.1
	1.7.2.1.4.1
	1.7.2.1.6.1
	1.7.2.1.8.1;
next	1.7.2.2;

1.7.2.2
date	2012.11.17.10.37.28;	author svnexp;	state Exp;
branches;
next	;

1.7.2.1.2.1
date	2009.10.25.01.10.29;	author kensmith;	state Exp;
branches;
next	;

1.7.2.1.4.1
date	2010.06.14.02.09.06;	author kensmith;	state Exp;
branches;
next	;

1.7.2.1.6.1
date	2010.12.21.17.09.25;	author kensmith;	state Exp;
branches;
next	;

1.7.2.1.8.1
date	2012.03.03.06.15.13;	author kensmith;	state Exp;
branches;
next	1.7.2.1.8.2;

1.7.2.1.8.2
date	2012.11.17.08.25.59;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1
date	2007.11.21.06.07.12;	author sam;	state Exp;
branches
	1.4.2.1.4.1
	1.4.2.1.6.1
	1.4.2.1.8.1
	1.4.2.1.10.1;
next	1.4.2.2;

1.4.2.2
date	2012.11.17.08.09.06;	author svnexp;	state Exp;
branches;
next	;

1.4.2.1.4.1
date	2008.11.25.02.59.29;	author kensmith;	state Exp;
branches;
next	;

1.4.2.1.6.1
date	2009.04.15.03.14.26;	author kensmith;	state Exp;
branches;
next	;

1.4.2.1.8.1
date	2010.02.10.00.26.20;	author kensmith;	state Exp;
branches;
next	;

1.4.2.1.10.1
date	2010.12.21.17.10.29;	author kensmith;	state Exp;
branches;
next	1.4.2.1.10.2;

1.4.2.1.10.2
date	2012.11.17.08.17.51;	author svnexp;	state Exp;
branches;
next	;

1.2.2.1
date	2012.11.17.07.46.48;	author svnexp;	state Exp;
branches;
next	;

1.2.12.1
date	2008.10.02.02.57.24;	author kensmith;	state Exp;
branches;
next	;


desc
@@


1.15
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/252726
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@# $FreeBSD: head/usr.sbin/wpa/hostapd/Makefile 252726 2013-07-04 21:12:58Z rpaulo $

.include "${.CURDIR}/../Makefile.inc"

.PATH.c:${HOSTAPD_DISTDIR} \
	${WPA_DISTDIR}/src/drivers

PROG=	hostapd
SRCS=	accounting.c aes-wrap.c ap_config.c ap_drv_ops.c ap_mlme.c authsrv.c \
	base64.c beacon.c chap.c common.c config_file.c ctrl_iface.c \
	ctrl_iface_ap.c driver_common.c l2_packet_freebsd.c driver_bsd.c \
	drivers.c drv_callbacks.c eap_common.c eap_peap_common.c \
	eap_register.c eap_server.c eap_server_methods.c eap_user_db.c \
	eapol_auth_dump.c eapol_auth_sm.c eloop.c gas.c gas_serv.c hostapd.c \
	hs20.c http_client.c http_server.c httpread.c ieee802_11_auth.c \
	ieee802_11_common.c ieee802_11_shared.c ieee802_1x.c ip_addr.c \
	main.c md5.c ms_funcs.c os_unix.c peerkey_auth.c pmksa_cache_auth.c \
	preauth_auth.c radius.c radius_client.c radius_das.c sta_info.c \
	tkip_countermeasures.c upnp_xml.c utils.c uuid.c vlan_init.c \
	wpa_auth.c wpa_auth_glue.c wpa_auth_ie.c wpa_common.c wpa_debug.c \
	wpabuf.c wps.c wps_attr_build.c wps_attr_parse.c wps_attr_process.c \
	wps_common.c wps_dev_attr.c wps_enrollee.c wps_hostapd.c \
	wps_registrar.c wps_upnp.c wps_upnp_ap.c wps_upnp_event.c \
	wps_upnp_ssdp.c wps_upnp_web.c

MAN=	hostapd.8 hostapd.conf.5

.if ${MK_EXAMPLES} != "no"
FILESDIR= ${SHAREDIR}/examples/hostapd
.PATH:	${HOSTAPD_DISTDIR}
FILES=	hostapd.conf hostapd.eap_user hostapd.wpa_psk
.endif

CFLAGS+=-DCONFIG_DRIVER_BSD \
	-DHOSTAPD \
	-DCONFIG_DRIVER_RADIUS_ACL \
	-DCONFIG_RSN_PREAUTH \
	-DCONFIG_PEERKEY \
	-DCONFIG_WPS \
	-DCONFIG_WPS2 \
	-DCONFIG_WPS_UPNP \
	-DCONFIG_INTERWORKING \
	-DCONFIG_HS20
.if ${MK_INET6} != "no"
CFLAGS+= -DCONFIG_IPV6
.endif
#CFLAGS+= -g
DPADD+=	${LIBPCAP}
LDADD+=	-lpcap

# User customizations for wpa_supplicant/hostapd build environment
CFLAGS+=${HOSTAPD_CFLAGS}
#DPADD+=${HOSTAPD_DPADD}
LDADD+=${HOSTAPD_LDADD}
#LDFLAGS+=${HOSTAPD_LDFLAGS}

CFLAGS+=-DDPKCS12_FUNCS \
	-DEAP_SERVER \
	-DEAP_SERVER_GTC \
	-DEAP_SERVER_IDENTITY \
	-DEAP_SERVER_MD5 \
	-DEAP_SERVER_MSCHAPV2 \
	-DEAP_SERVER_PEAP \
	-DEAP_SERVER_TLS \
	-DEAP_SERVER_TTLS \
	-DEAP_TLS_FUNCS \
	-DEAP_SERVER_WSC \
	-DCONFIG_NO_DUMP_STATE
SRCS+=	dump_state.c \
	eap_server_gtc.c \
	eap_server_identity.c \
	eap_server_md5.c \
	eap_server_mschapv2.c \
	eap_server_peap.c \
	eap_server_tls.c \
	eap_server_tls_common.c \
	eap_server_ttls.c \
	eap_server_wsc.c \
	eap_wsc_common.c
TLS_FUNCS=y

.if !empty(CFLAGS:M*-DCONFIG_WPS)
NEED_SIM_COMMON=y
.endif

.if !empty(CFLAGS:M*-DEAP_SERVER_AKA)
SRCS+=	eap_server_aka.c
NEED_SIM_COMMON=y
.endif

.if !empty(CFLAGS:M*-DEAP_SERVER_SIM)
SRCS+=	eap_server_sim.c
NEED_SIM_COMMON=y
.endif

.if defined(NEED_SIM_COMMON)
SRCS+=	eap_sim_common.c \
	eap_sim_db.c
NEED_AES_CBC=y
NEED_FIPS186_2_PRF=y
.endif

.if !empty(CFLAGS:M*-DEAP_SERVER_GPSK)
CFLAGS+=-DEAP_GPSK_SHA256
SRCS+=	eap_server_gpsk.c \
	eap_gpsk_common.c
NEED_AES_OMAC1=y
.endif

.if !empty(CFLAGS:M*-DEAP_SERVER_PAX)
SRCS+=	eap_server_pax.c \
	eap_pax_common.c
.endif

.if !empty(CFLAGS:M*-DEAP_SERVER_SAKE)
SRCS+=	eap_server_sake.c \
	eap_sake_common.c
.endif

.include "${.CURDIR}/../Makefile.crypto"

.include <bsd.prog.mk>
@


1.14
log
@Switching exporter and resync
@
text
@d1 1
a1 1
# $FreeBSD: head/usr.sbin/wpa/hostapd/Makefile 234786 2012-04-29 12:48:52Z bschmidt $
d9 16
a24 49
SRCS=	accounting.c \
	aes-wrap.c \
	ap_config.c \
	ap_drv_ops.c \
	ap_mlme.c \
	authsrv.c \
	base64.c \
	chap.c \
	common.c \
	config_file.c \
	ctrl_iface.c \
	ctrl_iface_ap.c \
	drivers.c \
	drv_callbacks.c \
	eap_common.c \
	eap_peap_common.c \
	eap_register.c \
	eapol_auth_dump.c \
	eapol_auth_sm.c \
	eap_server.c \
	eap_server_methods.c \
	eloop.c \
	hostapd.c \
	ieee802_11_auth.c \
	ieee802_11_common.c \
	ieee802_1x.c \
	ip_addr.c \
	main.c \
	md5.c \
	ms_funcs.c \
	os_unix.c \
	peerkey_auth.c \
	pmksa_cache_auth.c \
	preauth_auth.c \
	radius.c \
	radius_client.c \
	sha1-pbkdf2.c \
	sha1.c \
	sta_info.c \
	tkip_countermeasures.c \
	utils.c \
	vlan_init.c \
	wpa_auth.c \
	wpa_auth_glue.c \
	wpa_auth_ie.c \
	wpa_common.c \
	wpa_debug.c \
	wpabuf.c
SRCS+=	l2_packet_freebsd.c driver_freebsd.c
d38 6
a43 1
	-DCONFIG_PEERKEY
d67 1
d77 3
a79 1
	eap_server_ttls.c
d81 4
a84 1
NEED_SHA256=y
@


1.14.2.1
log
@file Makefile was added on branch RELENG_8_4 on 2013-03-28 13:06:28 +0000
@
text
@d1 144
@


1.14.2.2
log
@## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/248810
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
@
text
@a0 114
# $FreeBSD: releng/8.4/usr.sbin/wpa/hostapd/Makefile 189263 2009-03-02 02:28:22Z sam $

.include "${.CURDIR}/../Makefile.inc"

.PATH.c:${HOSTAPD_DISTDIR} \
	${WPA_DISTDIR}/src/eap_server \
	${WPA_DISTDIR}/src/radius \

PROG=	hostapd
SRCS=	accounting.c aes.c aes_wrap.c ap_list.c beacon.c common.c \
	config.c ctrl_iface.c drivers.c eapol_sm.c eap.c eap_common.c \
	eap_identity.c eap_methods.c eloop.c hostapd.c \
	hw_features.c ieee802_11.c ieee802_11_common.c ieee802_11_auth.c \
	ieee802_1x.c ip_addr.c md5.c mlme.c pmksa_cache.c radius.c \
	radius_client.c rc4.c sha1.c sta_info.c vlan_init.c wme.c \
	wpa.c wpa_auth_ie.c wpa_common.c wpa_debug.c wpabuf.c
SRCS+=	l2_packet.c driver_freebsd.c os_unix.c

MAN=	hostapd.8 hostapd.conf.5

.if ${MK_EXAMPLES} != "no"
FILESDIR= ${SHAREDIR}/examples/hostapd
.PATH:	${HOSTAPD_DISTDIR}
FILES=	hostapd.conf hostapd.eap_user hostapd.wpa_psk
.endif

CFLAGS+= -I${HOSTAPD_DISTDIR}

CFLAGS+= -DCONFIG_DRIVER_BSD
CFLAGS+= -DCONFIG_DRIVER_RADIUS_ACL
.if ${MK_INET6} != "no"
CFLAGS+= -DCONFIG_IPV6
.endif
CFLAGS+= -g
DPADD+=	${LIBPCAP}
LDADD+=	-lpcap

# User customizations for wpa_supplicant/hostapd build environment
CFLAGS+=${HOSTAPD_CFLAGS}
#DPADD+=${HOSTAPD_DPADD}
LDADD+=${HOSTAPD_LDADD}
#LDFLAGS+=${HOSTAPD_LDFLAGS}

.if !empty(CFLAGS:M*-DEAP_SERVER)
#SRCS+=	eap.c eap_methods.c eap_identity.c

.if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)

CFLAGS+=-DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_PSK \
	-DEAP_TLS_FUNCS -DEAP_TLS_OPENSSL
SRCS+=	crypto_openssl.c
SRCS+=	eap_tls.c eap_peap.c eap_peap_common.c eap_mschapv2.c \
	eap_psk.c eap_psk_common.c \
	eap_tls_common.c tls_openssl.c ms_funcs.c chap.c

CFLAGS+=-DEAP_TTLS -DEAP_MD5
SRCS+=	eap_ttls.c eap_md5.c

.if !empty(CFLAGS:M*-DEAP_GTC)
SRCS+=	eap_gtc.c
.endif

.if !empty(CFLAGS:M*-DEAP_AKA)
NEED_SIM_COMMON=	true
SRCS+=	eap_aka.c
.endif

.if !empty(CFLAGS:M*-DEAP_SIM)
NEED_SIM_COMMON=	true
SRCS+=	eap_sim.c
.endif

.if defined(NEED_SIM_COMMON)
SRCS+=	eap_sim_common.c eap_sim_db.c
.endif

.if !empty(CFLAGS:M*-DEAP_GPSK)
CFLAGS+=-DEAP_GPSK_SHA256
SRCS+=	eap_gpsk.c eap_gpsk_common.c
NEED_SHA256=	true
.endif

.if !empty(CFLAGS:M*-DEAP_PAX)
SRCS+=	eap_pax.c eap_pax_common.c
.endif

.if !empty(CFLAGS:M*-DEAP_SAKE)
SRCS+=	eap_sake.c eap_sake_common.c
.endif

DPADD+= ${LIBSSL} ${LIBCRYPTO}
LDADD+= -lssl -lcrypto
.else
NEED_TLS_NONE=	true
.endif

.else
NEED_TLS_NONE=	true
.endif

.if defined(NEED_SHA256)
CFLAGS+=-DINTERNAL_SHA256
SRCS+=	sha256.c
.endif

.if defined(NEED_TLS_NONE)
CFLAGS+= -DEAP_TLS_NONE
CFLAGS+= -DINTERNAL_AES
CFLAGS+= -DINTERNAL_SHA1
CFLAGS+= -DINTERNAL_MD5
SRCS+=	tls_none.c
.endif

.include <bsd.prog.mk>
@


1.13
log
@SVN rev 234786 on 2012-04-29 12:48:52Z by bschmidt

Fix WITHOUT_EXAMPLES build:
While removing unnecessary entries from .PATH.c I missed that for the
examples WPA_SUPPLICANT_DISTDIR/HOSTAPD_DISTDIR is explicitly added to
.PATH.

Tested by:	lev
MFC after:	2 weeks
@
text
@d1 1
a1 1
# $FreeBSD$
@


1.12
log
@SVN rev 234759 on 2012-04-28 11:11:53Z by bschmidt

Move crypto stuff into a common Makefile.  While here fix the
WITHOUT_OPENSSL build by using the wpa's internal crypto support if
openssl is not available, this allows us to unconditionally enable
EAP support.

MFC after:	2 weeks
@
text
@d5 2
a6 1
.PATH.c:${WPA_DISTDIR}/src/drivers
@


1.11
log
@SVN rev 234758 on 2012-04-28 11:02:32Z by bschmidt

not only the file names have changed from eap_xxx.c to eap_server_xxx.c,
the defines too

MFC after:	2 weeks
@
text
@d14 1
a17 1
	crypto_openssl.c \
a44 1
	sha1-tlsprf.c \
d75 2
a76 2
DPADD+=	${LIBPCAP} ${LIBSSL}
LDADD+=	-lpcap -lssl
a83 2
.if ${MK_OPENSSL} != "no" && !defined(RELEASE_CRUNCH)

d103 3
a105 2
	eap_server_ttls.c \
	tls_openssl.c
a107 2
NEED_SIM_COMMON=	true
NEED_SHA256=	true
d109 1
a112 1
NEED_SIM_COMMON=	true
d114 1
d120 2
a121 2
NEED_AES_CBC=	true
NEED_FIPS186_2_PRF=	true
d128 1
a128 2
NEED_SHA256=	true
NEED_AES_OMAC1=	true
d141 1
a141 29
DPADD+= ${LIBSSL} ${LIBCRYPTO}
LDADD+= -lssl -lcrypto
.else
NEED_TLS_NONE=	true
.endif

.if defined(NEED_AES_CBC)
SRCS+=	aes-cbc.c
.endif

.if defined(NEED_AES_OMAC1)
SRCS+=	aes-omac1.c
.endif

.if defined(NEED_FIPS186_2_PRF)
SRCS+=	fips_prf_openssl.c
.endif

.if defined(NEED_SHA256)
SRCS+=	sha256.c
.endif

.if defined(NEED_TLS_NONE)
CFLAGS+= -DEAP_TLS_NONE
CFLAGS+= -DINTERNAL_AES
CFLAGS+= -DINTERNAL_SHA1
CFLAGS+= -DINTERNAL_MD5
SRCS+=	tls_none.c
.endif
@


1.10
log
@SVN rev 234711 on 2012-04-26 17:35:11Z by bschmidt

fix EAP server support after the 0.7.3 import:
- eap_xxx.c files have been renamed to eap_server_xxx.c
- additional crypto files are required for some options
- EAP_MD5 and EAP_GTC is now enabled by default to match vendor config
- move each file on its own line to hopefully make further diffs easier
  to read

EAP_SERVER is now enabled by default. Fiddling with HOSTAPD_CFLAGS in
src.conf is no longer required to get a basic WPA-EAP/radius setup
running.

Tested by:	Johann Hugo <jhugo at meraka.csir.co.za>
MFC after:	2 weeks
@
text
@d109 1
a109 1
.if !empty(CFLAGS:M*-DEAP_AKA)
d115 1
a115 1
.if !empty(CFLAGS:M*-DEAP_SIM)
d127 1
a127 1
.if !empty(CFLAGS:M*-DEAP_GPSK)
d135 1
a135 1
.if !empty(CFLAGS:M*-DEAP_PAX)
d140 1
a140 1
.if !empty(CFLAGS:M*-DEAP_SAKE)
@


1.9
log
@SVN rev 214735 on 2010-11-03 10:44:25Z by rpaulo

Adapt for wpa_supplicant / hostapd 0.7.3.
@
text
@d5 1
a5 8
.PATH.c:${HOSTAPD_DISTDIR} \
	${WPA_DISTDIR}/src/ap \
	${WPA_DISTDIR}/src/eap_server \
	${WPA_DISTDIR}/src/eap_common \
	${WPA_DISTDIR}/src/eapol_auth \
	${WPA_DISTDIR}/src/drivers \
	${WPA_DISTDIR}/src/radius \
	${WPA_DISTDIR}
d8 50
a57 17
SRCS=	accounting.c aes-wrap.c ap_config.c \
	ap_drv_ops.c ap_mlme.c authsrv.c \
	chap.c common.c config_file.c ctrl_iface.c crypto_openssl.c \
	ctrl_iface_ap.c drivers.c drv_callbacks.c dump_state.c \
	eap_common.c eap_peap_common.c eap_register.c eap_server.c \
	eap_server_gtc.c eap_server_identity.c eap_server_md5.c \
	eap_server_methods.c eap_server_mschapv2.c eap_server_peap.c \
	eap_server_tls.c eap_server_tls_common.c eap_server_ttls.c \
	eapol_auth_dump.c eapol_auth_sm.c eloop.c hostapd.c ieee802_11_auth.c \
	ieee802_11_common.c ieee802_11_ht.c ieee802_1x.c ip_addr.c \
	md5.c main.c ms_funcs.c peerkey_auth.c pmksa_cache_auth.c \
	preauth_auth.c radius.c radius_client.c sta_info.c \
	sha1-pbkdf2.c sha1-tlsprf.c sha1-tprf.c sha1.c \
	tkip_countermeasures.c utils.c \
	vlan_init.c wpa_auth.c wpa_auth_glue.c wpa_auth_ie.c wpa_common.c \
	wpa_debug.c wpabuf.c
SRCS+=	l2_packet_freebsd.c driver_freebsd.c os_unix.c
d67 5
a71 4
CFLAGS+= -I${HOSTAPD_DISTDIR} -I${WPA_DISTDIR}/src/drivers

CFLAGS+= -DCONFIG_DRIVER_BSD -DHOSTAPD
CFLAGS+= -DCONFIG_DRIVER_RADIUS_ACL
a84 3
.if !empty(CFLAGS:M*-DEAP_SERVER)
#SRCS+=	eap.c eap_methods.c eap_identity.c

d87 21
a107 13
CFLAGS+=-DEAP_TLS -DEAP_PEAP -DEAP_MSCHAPv2 -DEAP_PSK \
	-DEAP_TLS_FUNCS -DEAP_TLS_OPENSSL
SRCS+=	crypto_openssl.c
SRCS+=	eap_tls.c eap_peap.c eap_peap_common.c eap_mschapv2.c \
	eap_psk.c eap_psk_common.c \
	eap_tls_common.c tls_openssl.c ms_funcs.c chap.c

CFLAGS+=-DEAP_TTLS -DEAP_MD5
SRCS+=	eap_ttls.c eap_md5.c

.if !empty(CFLAGS:M*-DEAP_GTC)
SRCS+=	eap_gtc.c
.endif
d111 2
a112 1
SRCS+=	eap_aka.c
d117 1
a117 1
SRCS+=	eap_sim.c
d121 4
a124 1
SRCS+=	eap_sim_common.c eap_sim_db.c
d129 2
a130 1
SRCS+=	eap_gpsk.c eap_gpsk_common.c
d132 1
d136 2
a137 1
SRCS+=	eap_pax.c eap_pax_common.c
d141 2
a142 1
SRCS+=	eap_sake.c eap_sake_common.c
d151 10
a160 2
.else
NEED_TLS_NONE=	true
a163 1
CFLAGS+=-DINTERNAL_SHA256
@


1.9.2.1
log
@SVN rev 225736 on 2011-09-23 00:51:37Z by kensmith

Copy head to stable/9 as part of 9.0-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.9.2.2
log
@SVN rev 235328 on 2012-05-12 08:22:41Z by bschmidt

MFC r234711, r234756-234759, r234786:

r234711:
fix EAP server support after the 0.7.3 import:
- eap_xxx.c files have been renamed to eap_server_xxx.c
- additional crypto files are required for some options
- EAP_MD5 and EAP_GTC is now enabled by default to match vendor config
- move each file on its own line to hopefully make further diffs easier
  to read

EAP_SERVER is now enabled by default. Fiddling with HOSTAPD_CFLAGS in
src.conf is no longer required to get a basic WPA-EAP/radius setup
running. [1]

r234756-234758:
- Follow up r234711 and do same for the supplicant, one file/option per
  line. While here merge the options which are always enabled.
- enable EAP_GTC and EAP_OTP to match upstream's default configuration
- not only the file names have changed from eap_xxx.c to eap_server_xxx.c,
  the defines too

r234759:
Move crypto stuff into a common Makefile.  While here fix the
WITHOUT_OPENSSL build by using the wpa's internal crypto support if
openssl is not available, this allows us to unconditionally enable
EAP support.

r234786:
Fix WITHOUT_EXAMPLES build:
While removing unnecessary entries from .PATH.c I missed that for the
examples WPA_SUPPLICANT_DISTDIR/HOSTAPD_DISTDIR is explicitly added to
.PATH.
@
text
@d6 7
a12 1
	${WPA_DISTDIR}/src/drivers
d15 17
a31 49
SRCS=	accounting.c \
	aes-wrap.c \
	ap_config.c \
	ap_drv_ops.c \
	ap_mlme.c \
	authsrv.c \
	base64.c \
	chap.c \
	common.c \
	config_file.c \
	ctrl_iface.c \
	ctrl_iface_ap.c \
	drivers.c \
	drv_callbacks.c \
	eap_common.c \
	eap_peap_common.c \
	eap_register.c \
	eapol_auth_dump.c \
	eapol_auth_sm.c \
	eap_server.c \
	eap_server_methods.c \
	eloop.c \
	hostapd.c \
	ieee802_11_auth.c \
	ieee802_11_common.c \
	ieee802_1x.c \
	ip_addr.c \
	main.c \
	md5.c \
	ms_funcs.c \
	os_unix.c \
	peerkey_auth.c \
	pmksa_cache_auth.c \
	preauth_auth.c \
	radius.c \
	radius_client.c \
	sha1-pbkdf2.c \
	sha1.c \
	sta_info.c \
	tkip_countermeasures.c \
	utils.c \
	vlan_init.c \
	wpa_auth.c \
	wpa_auth_glue.c \
	wpa_auth_ie.c \
	wpa_common.c \
	wpa_debug.c \
	wpabuf.c
SRCS+=	l2_packet_freebsd.c driver_freebsd.c
d41 4
a44 5
CFLAGS+=-DCONFIG_DRIVER_BSD \
	-DHOSTAPD \
	-DCONFIG_DRIVER_RADIUS_ACL \
	-DCONFIG_RSN_PREAUTH \
	-DCONFIG_PEERKEY
d49 2
a50 2
DPADD+=	${LIBPCAP}
LDADD+=	-lpcap
d58 27
a84 31
CFLAGS+=-DDPKCS12_FUNCS \
	-DEAP_SERVER \
	-DEAP_SERVER_GTC \
	-DEAP_SERVER_IDENTITY \
	-DEAP_SERVER_MD5 \
	-DEAP_SERVER_MSCHAPV2 \
	-DEAP_SERVER_PEAP \
	-DEAP_SERVER_TLS \
	-DEAP_SERVER_TTLS \
	-DEAP_TLS_FUNCS \
	-DCONFIG_NO_DUMP_STATE
SRCS+=	dump_state.c \
	eap_server_gtc.c \
	eap_server_identity.c \
	eap_server_md5.c \
	eap_server_mschapv2.c \
	eap_server_peap.c \
	eap_server_tls.c \
	eap_server_tls_common.c \
	eap_server_ttls.c
TLS_FUNCS=y
NEED_SHA256=y

.if !empty(CFLAGS:M*-DEAP_SERVER_AKA)
SRCS+=	eap_server_aka.c
NEED_SIM_COMMON=y
.endif

.if !empty(CFLAGS:M*-DEAP_SERVER_SIM)
SRCS+=	eap_server_sim.c
NEED_SIM_COMMON=y
d88 1
a88 4
SRCS+=	eap_sim_common.c \
	eap_sim_db.c
NEED_AES_CBC=y
NEED_FIPS186_2_PRF=y
d91 1
a91 1
.if !empty(CFLAGS:M*-DEAP_SERVER_GPSK)
d93 16
a108 3
SRCS+=	eap_server_gpsk.c \
	eap_gpsk_common.c
NEED_AES_OMAC1=y
d111 2
a112 3
.if !empty(CFLAGS:M*-DEAP_SERVER_PAX)
SRCS+=	eap_server_pax.c \
	eap_pax_common.c
d115 3
a117 3
.if !empty(CFLAGS:M*-DEAP_SERVER_SAKE)
SRCS+=	eap_server_sake.c \
	eap_sake_common.c
d120 7
a126 1
.include "${.CURDIR}/../Makefile.crypto"
@


1.9.2.3
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242902
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242902 | dteske | 2012-11-11 23:29:45 +0000 (Sun, 11 Nov 2012) | 10 lines
## SVN ##
## SVN ## Fix a regression introduced by SVN r211417 that saw the breakage of a feature
## SVN ## documented in usr.sbin/sysinstall/help/shortcuts.hlp (reproduced below):
## SVN ##
## SVN ## If /usr/sbin/sysinstall is linked to another filename, say
## SVN ## `/usr/local/bin/configPackages', then the basename will be used
## SVN ## as an implicit command name.
## SVN ##
## SVN ## Reviewed by:	adrian (co-mentor)
## SVN ## Approved by:	adrian (co-mentor)
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/9/usr.sbin/wpa/hostapd/Makefile 235328 2012-05-12 08:22:41Z bschmidt $
@


1.9.2.2.2.1
log
@SVN rev 239080 on 2012-08-05 23:54:33Z by kensmith

Copy stable/9 to releng/9.1 as part of the 9.1-RELEASE release process.

Approved by:	re (implicit)
@
text
@@


1.9.2.2.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.1/usr.sbin/wpa/hostapd/Makefile 235328 2012-05-12 08:22:41Z bschmidt $
@


1.9.2.1.2.1
log
@SVN rev 227445 on 2011-11-11 04:20:22Z by kensmith

Copy stable/9 to releng/9.0 as part of the FreeBSD 9.0-RELEASE release
cycle.

Approved by:	re (implicit)
@
text
@@


1.9.2.1.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/9.0/usr.sbin/wpa/hostapd/Makefile 214735 2010-11-03 10:44:25Z rpaulo $
@


1.8
log
@SVN rev 209159 on 2010-06-14 15:38:30Z by rpaulo

Update for hostapd & wpa_supplicant 0.6.10.
@
text
@d6 1
d8 3
d12 1
d15 16
a30 7
SRCS=	accounting.c aes.c aes_wrap.c ap_list.c beacon.c common.c \
	config.c ctrl_iface.c drivers.c eapol_sm.c eap.c eap_common.c \
	eap_identity.c eap_methods.c eloop.c hostapd.c \
	hw_features.c ieee802_11.c ieee802_11_common.c ieee802_11_auth.c \
	ieee802_1x.c ip_addr.c md5.c mlme.c pmksa_cache.c radius.c \
	radius_client.c rc4.c sha1.c sta_info.c vlan_init.c wme.c \
	wpa.c wpa_auth_ie.c wpa_common.c wpa_debug.c wpabuf.c
d41 1
a41 1
CFLAGS+= -I${HOSTAPD_DISTDIR}
d43 1
a43 1
CFLAGS+= -DCONFIG_DRIVER_BSD
d48 3
a50 3
CFLAGS+= -g
DPADD+=	${LIBPCAP}
LDADD+=	-lpcap
@


1.7
log
@SVN rev 189263 on 2009-03-02 02:28:22Z by sam

update to 0.6.8

Reviewed by:	thompsa
@
text
@d17 1
a17 1
SRCS+=	l2_packet.c driver_freebsd.c os_unix.c
@


1.7.2.1
log
@SVN rev 196045 on 2009-08-03 08:13:06Z by kensmith

Copy head to stable/8 as part of 8.0 Release cycle.

Approved by:	re (Implicit)
@
text
@@


1.7.2.2
log
@## SVN ##
## SVN ## Exported commit - http://svnweb.freebsd.org/changeset/base/ 242909
## SVN ## CVS IS DEPRECATED: http://wiki.freebsd.org/CvsIsDeprecated
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ## r242909 | dim | 2012-11-12 07:47:19 +0000 (Mon, 12 Nov 2012) | 20 lines
## SVN ##
## SVN ## MFC r242625:
## SVN ##
## SVN ## Remove duplicate const specifiers in many drivers (I hope I got all of
## SVN ## them, please let me know if not).  Most of these are of the form:
## SVN ##
## SVN ## static const struct bzzt_type {
## SVN ##       [...list of members...]
## SVN ## } const bzzt_devs[] = {
## SVN ##       [...list of initializers...]
## SVN ## };
## SVN ##
## SVN ## The second const is unnecessary, as arrays cannot be modified anyway,
## SVN ## and if the elements are const, the whole thing is const automatically
## SVN ## (e.g. it is placed in .rodata).
## SVN ##
## SVN ## I have verified this does not change the binary output of a full kernel
## SVN ## build (except for build timestamps embedded in the object files).
## SVN ##
## SVN ## Reviewed by:	yongari, marius
## SVN ##
## SVN ## ------------------------------------------------------------------------
## SVN ##
@
text
@d1 1
a1 1
# $FreeBSD: stable/8/usr.sbin/wpa/hostapd/Makefile 189263 2009-03-02 02:28:22Z sam $
@


1.7.2.1.8.1
log
@SVN rev 232438 on 2012-03-03 06:15:13Z by kensmith

Copy stable/8 to releng/8.3 as part of 8.3-RELEASE release cycle.

Approved by:	re (implicit)
@
text
@@


1.7.2.1.8.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/8.3/usr.sbin/wpa/hostapd/Makefile 189263 2009-03-02 02:28:22Z sam $
@


1.7.2.1.6.1
log
@SVN rev 216617 on 2010-12-21 17:09:25Z by kensmith

Copy stable/8 to releng/8.2 in preparation for FreeBSD-8.2 release.

Approved by:	re (implicit)
@
text
@@


1.7.2.1.4.1
log
@SVN rev 209145 on 2010-06-14 02:09:06Z by kensmith

Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.

Approved by:	re (implicit)
@
text
@@


1.7.2.1.2.1
log
@SVN rev 198460 on 2009-10-25 01:10:29Z by kensmith

Copy stable/8 to releng/8.0 as part of 8.0-RELEASE release procedure.

Approved by:	re (implicit)
@
text
@@


1.6
log
@o update for vaps
o add+enable radius acl support

Supported by:	Hobnob
Submitted by:	Chris Zimmermann (acl support)
@
text
@d3 1
a3 1
.include <bsd.own.mk>
d5 3
a7 2
HOSTAPD_DISTDIR?= ${.CURDIR}/../../../contrib/hostapd
.PATH: ${.CURDIR}/.. ${HOSTAPD_DISTDIR}
d10 8
a17 7
SRCS=	hostapd.c eloop.c ieee802_1x.c eapol_sm.c radius.c md5.c rc4.c \
	common.c ieee802_11.c config.c ieee802_11_auth.c accounting.c \
	sta_info.c radius_client.c sha1.c wpa.c aes_wrap.c ctrl_iface.c \
	driver_conf.c os_unix.c preauth.c pmksa_cache.c beacon.c \
	hw_features.c wme.c ap_list.c reconfig.c mlme.c \
	vlan_init.c ieee802_11h.c l2_packet.c driver_freebsd.c
CLEANFILES=driver_conf.c
d23 1
d27 2
a28 1
CFLAGS+= -I${.CURDIR} -I${HOSTAPD_DISTDIR}
a29 2
CFLAGS+= -DCONFIG_CTRL_IFACE
CFLAGS+= -DCONFIG_CTRL_IFACE_UNIX
d39 4
a42 4
CFLAGS+=${WPA_SUPPLICANT_CFLAGS}
#DPADD+=${WPA_SUPPLICANT_DPADD}
LDADD+=${WPA_SUPPLICANT_LDADD}
#LDFLAGS+=${WPA_SUPPLICANT_LDFLAGS}
d45 1
a45 1
SRCS+=	eap.c eap_methods.c eap_identity.c
d50 3
a52 2
	-DEAP_TLV -DEAP_TLS_FUNCS -DEAP_TLS_OPENSSL
SRCS+=	eap_tls.c eap_peap.c eap_mschapv2.c \
d54 1
a54 1
	eap_tlv.c eap_tls_common.c tls_openssl.c ms_funcs.c crypto.c
a113 15
driver_conf.c: Makefile
	rm -f driver_conf.c
	echo '/* THIS FILE AUTOMATICALLY GENERATED, DO NOT EDIT! */' \
							> driver_conf.c
	echo '#include <stdlib.h>'			>> driver_conf.c
	echo '#include <stdio.h>'			>> driver_conf.c
	echo '#include <sys/types.h>'			>> driver_conf.c
	echo '#include <netinet/in.h>'			>> driver_conf.c
	echo '#include "hostapd.h"'			>> driver_conf.c
	echo '#include "driver.h"'			>> driver_conf.c
	echo "void bsd_driver_register(void);"		>> driver_conf.c
	echo 'void register_drivers(void) {'		>> driver_conf.c
	echo "bsd_driver_register();"			>> driver_conf.c
	echo '}'					>> driver_conf.c

@


1.5
log
@install hostapd.conf and related files for folks that don't have source

MFC after:	1 week
@
text
@d28 1
@


1.4
log
@o enable use of EAP methods w/o modification to the base system; use
  WPA_SUPPLICANT_CFLAGS, etc. (consult the Makefile's for details)
o enable ipv6 support in hostapd (for communication w/ a radius backend)

PR:		bin/116164
Submitted by:	"Scot Hetzel" <swhetzel@@gmail.com>
Approved by:	re (gnn)
MFC after:	2 weeks
@
text
@d19 5
@


1.4.2.1
log
@MFC: install example files for folks that don't have source

Approved by:	re (kensmith)
@
text
@a18 5
.if ${MK_EXAMPLES} != "no"
FILESDIR= ${SHAREDIR}/examples/hostapd
FILES=	hostapd.conf hostapd.eap_user hostapd.wpa_psk
.endif

@


1.4.2.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/7/usr.sbin/wpa/hostapd/Makefile 173811 2007-11-21 06:07:12Z sam $
@


1.4.2.1.10.1
log
@SVN rev 216618 on 2010-12-21 17:10:29Z by kensmith

Copy stable/7 to releng/7.4 in preparation for FreeBSD-7.4 release.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.10.2
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: releng/7.4/usr.sbin/wpa/hostapd/Makefile 173811 2007-11-21 06:07:12Z sam $
@


1.4.2.1.8.1
log
@SVN rev 203736 on 2010-02-10 00:26:20Z by kensmith

Copy stable/7 to releng/7.3 as part of the 7.3-RELEASE process.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.6.1
log
@SVN rev 191087 on 2009-04-15 03:14:26Z by kensmith

Create releng/7.2 from stable/7 in preparation for 7.2-RELEASE.

Approved by:	re (implicit)
@
text
@@


1.4.2.1.4.1
log
@SVN rev 185281 on 2008-11-25 02:59:29Z by kensmith

Create releng/7.1 in preparation for moving into RC phase of 7.1 release
cycle.

Approved by:	re (implicit)
@
text
@@


1.3
log
@update for 0.5.8 import

Approved by:	re (hrs)
@
text
@d3 2
d11 3
a13 3
	sta_info.c radius_client.c sha1.c wpa.c aes_wrap.c tls_none.c \
	ctrl_iface.c driver_conf.c os_unix.c preauth.c pmksa_cache.c \
	beacon.c hw_features.c wme.c ap_list.c reconfig.c mlme.c \
d23 76
d102 2
a103 2
DPADD+=	${LIBPCAP}
LDADD+=	-lpcap
@


1.2
log
@o move hostapd to section 8
o add placeholder for hostapd.conf

Approved by:	re (blanket wpa)
@
text
@d10 3
a12 1
	ctrl_iface.c driver_conf.c l2_packet.c driver_freebsd.c
d19 5
@


1.2.2.1
log
@Switch importer
@
text
@d1 1
a1 1
# $FreeBSD: stable/6/usr.sbin/wpa/hostapd/Makefile 147453 2005-06-17 05:37:08Z sam $
@


1.2.12.1
log
@SVN rev 183531 on 2008-10-02 02:57:24Z by kensmith

Create releng/6.4 from stable/6 in preparation for 6.4-RC1.

Approved by:	re (implicit)
@
text
@@


1.1
log
@freebsd pieces of hostapd support
@
text
@d13 2
@

