head	1.4;
access;
symbols
	perseant-exfatfs-base-20250801:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.24
	perseant-exfatfs-base:1.4
	cjep_sun2x:1.4.0.22
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	cjep_staticlib_x:1.4.0.20
	cjep_staticlib_x-base:1.4
	phil-wifi-20200421:1.4
	phil-wifi-20200411:1.4
	phil-wifi-20200406:1.4
	pgoyette-compat-merge-20190127:1.4
	pgoyette-compat-20190127:1.4
	pgoyette-compat-20190118:1.4
	pgoyette-compat-1226:1.4
	pgoyette-compat-1126:1.4
	pgoyette-compat-1020:1.4
	pgoyette-compat-0930:1.4
	pgoyette-compat-0906:1.4
	pgoyette-compat-0728:1.4
	pgoyette-compat-0625:1.4
	pgoyette-compat-0521:1.4
	pgoyette-compat-0502:1.4
	pgoyette-compat-0422:1.4
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.4
	pgoyette-compat-0330:1.4
	pgoyette-compat-0322:1.4
	pgoyette-compat-0315:1.4
	pgoyette-compat:1.4.0.18
	pgoyette-compat-base:1.4
	perseant-stdc-iso10646:1.4.0.16
	perseant-stdc-iso10646-base:1.4
	prg-localcount2-base3:1.4
	prg-localcount2-base2:1.4
	prg-localcount2-base1:1.4
	prg-localcount2:1.4.0.14
	prg-localcount2-base:1.4
	pgoyette-localcount-20170426:1.4
	bouyer-socketcan-base1:1.4
	pgoyette-localcount-20170320:1.4
	bouyer-socketcan:1.4.0.12
	bouyer-socketcan-base:1.4
	pgoyette-localcount-20170107:1.4
	pgoyette-localcount-20161104:1.4
	localcount-20160914:1.4
	pgoyette-localcount-20160806:1.4
	pgoyette-localcount-20160726:1.4
	pgoyette-localcount:1.4.0.10
	pgoyette-localcount-base:1.4
	netbsd-5-2-3-RELEASE:1.3
	netbsd-5-1-5-RELEASE:1.3
	yamt-pagecache-base9:1.4
	yamt-pagecache-tag8:1.4
	tls-earlyentropy:1.4.0.6
	tls-earlyentropy-base:1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4
	riastradh-drm2-base3:1.4
	netbsd-5-2-2-RELEASE:1.3
	netbsd-5-1-4-RELEASE:1.3
	netbsd-5-2-1-RELEASE:1.3
	netbsd-5-1-3-RELEASE:1.3
	agc-symver:1.4.0.8
	agc-symver-base:1.4
	tls-maxphys-base:1.4
	yamt-pagecache-base8:1.4
	netbsd-5-2:1.3.0.14
	yamt-pagecache-base7:1.4
	netbsd-5-2-RELEASE:1.3
	netbsd-5-2-RC1:1.3
	yamt-pagecache-base6:1.4
	yamt-pagecache-base5:1.4
	yamt-pagecache-base4:1.4
	netbsd-5-1-2-RELEASE:1.3
	netbsd-5-1-1-RELEASE:1.3
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.4
	yamt-pagecache-base:1.4
	bouyer-quota2-nbase:1.4
	bouyer-quota2:1.4.0.2
	bouyer-quota2-base:1.4
	matt-nb5-mips64-premerge-20101231:1.3
	matt-nb5-pq3:1.3.0.12
	matt-nb5-pq3-base:1.3
	netbsd-5-1:1.3.0.10
	netbsd-5-1-RELEASE:1.3
	netbsd-5-1-RC4:1.3
	matt-nb5-mips64-k15:1.3
	netbsd-5-1-RC3:1.3
	netbsd-5-1-RC2:1.3
	netbsd-5-1-RC1:1.3
	netbsd-5-0-2-RELEASE:1.3
	matt-nb5-mips64-premerge-20091211:1.3
	matt-premerge-20091211:1.3
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.3
	matt-nb4-mips64-k7-u2a-k9b:1.3
	matt-nb5-mips64-u1-k1-k5:1.3
	matt-nb5-mips64:1.3.0.8
	netbsd-5-0-1-RELEASE:1.3
	jym-xensuspend-nbase:1.3
	netbsd-5-0:1.3.0.6
	netbsd-5-0-RELEASE:1.3
	netbsd-5-0-RC4:1.3
	netbsd-5-0-RC3:1.3
	netbsd-5-0-RC2:1.3
	jym-xensuspend:1.3.0.4
	jym-xensuspend-base:1.3
	netbsd-5-0-RC1:1.3
	netbsd-5:1.3.0.2
	netbsd-5-base:1.3
	matt-mips64-base2:1.3
	matt-mips64:1.1.0.16
	mjf-devfs2:1.2.0.8
	mjf-devfs2-base:1.2
	netbsd-4-0-1-RELEASE:1.1
	wrstuden-revivesa-base-3:1.2
	wrstuden-revivesa-base-2:1.2
	wrstuden-fixsa-newbase:1.1
	wrstuden-revivesa-base-1:1.2
	yamt-pf42-base4:1.2
	yamt-pf42-base3:1.2
	hpcarm-cleanup-nbase:1.2
	yamt-pf42-baseX:1.2
	yamt-pf42-base2:1.2
	wrstuden-revivesa:1.2.0.6
	wrstuden-revivesa-base:1.2
	yamt-pf42:1.2.0.4
	yamt-pf42-base:1.2
	keiichi-mipv6-nbase:1.2
	keiichi-mipv6:1.2.0.2
	keiichi-mipv6-base:1.2
	matt-armv6-nbase:1.2
	matt-armv6-prevmlocking:1.1
	wrstuden-fixsa-base-1:1.1
	netbsd-4-0:1.1.0.14
	netbsd-4-0-RELEASE:1.1
	cube-autoconf:1.1.0.12
	cube-autoconf-base:1.1
	netbsd-4-0-RC5:1.1
	netbsd-4-0-RC4:1.1
	netbsd-4-0-RC3:1.1
	netbsd-4-0-RC2:1.1
	netbsd-4-0-RC1:1.1
	matt-armv6:1.1.0.10
	matt-armv6-base:1.1
	matt-mips64-base:1.1
	hpcarm-cleanup:1.1.0.8
	hpcarm-cleanup-base:1.2
	wrstuden-fixsa:1.1.0.6
	wrstuden-fixsa-base:1.1
	abandoned-netbsd-4-base:1.1
	abandoned-netbsd-4:1.1.0.2
	netbsd-4:1.1.0.4
	netbsd-4-base:1.1;
locks; strict;
comment	@# @;


1.4
date	2010.08.26.14.58.29;	author christos;	state dead;
branches;
next	1.3;

1.3
date	2008.10.18.12.32.50;	author scw;	state Exp;
branches;
next	1.2;

1.2
date	2008.01.26.21.50.21;	author christos;	state Exp;
branches;
next	1.1;

1.1
date	2006.04.12.15.37.07;	author rpaulo;	state Exp;
branches
	1.1.10.1;
next	;

1.1.10.1
date	2008.03.23.00.50.08;	author matt;	state Exp;
branches;
next	;


desc
@@


1.4
log
@bye old wpa.
@
text
@# $NetBSD: Makefile,v 1.3 2008/10/18 12:32:50 scw Exp $

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


PROG=	hostapd
SRCS=	accounting.c aes.c aes_wrap.c ap_list.c beacon.c common.c \
	config.c ctrl_iface.c driver_bsd.c drivers.c eap.c eap_common.c \
	eap_identity.c eap_methods.c eapol_sm.c eloop.c hostapd.c \
	hw_features.c ieee802_11.c ieee802_11_auth.c ieee802_11h.c \
	ieee802_1x.c ip_addr.c l2_packet_freebsd.c md5.c mlme.c os_unix.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

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

MAN=	hostapd.8 hostapd.conf.5

CPPFLAGS+= -I${.CURDIR} -I${HOSTAPD_DISTDIR}
CPPFLAGS+= -DCONFIG_DRIVER_BSD
DPADD+= ${LIBPCAP}
LDADD+= -lpcap

.if !defined(NO_CRYPT) && !defined(NO_OPENSSL) && !defined(RELEASE_CRUNCH)
CPPFLAGS+= -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

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

CPPFLAGS+= -DEAP_GTC
SRCS+=	eap_gtc.c

CPPFLAGS+= -DEAP_AKA -DEAP_SIM
SRCS+=	eap_aka.c eap_sim.c eap_sim_common.c eap_sim_db.c

CPPFLAGS+= -DEAP_GPSK -DEAP_GPSK_SHA256 -DINTERNAL_SHA256
SRCS+=	eap_gpsk.c eap_gpsk_common.c sha256.c

CPPFLAGS+= -DEAP_PAX
SRCS+=	eap_pax.c eap_pax_common.c

CPPFLAGS+= -DEAP_SAKE
SRCS+=	eap_sake.c eap_sake_common.c

DPADD+= ${LIBSSL} ${LIBCRYPTO} ${LIBDES}
LDADD+= -lssl -lcrypto -ldes
.else
CPPFLAGS+= -DINTERNAL_AES -DINTERNAL_SHA1 -DINTERNAL_MD5
SRCS+=	tls_none.c
.endif

.include <bsd.prog.mk>
@


1.3
log
@Ditch crypto_libc.c in favour of the internal AES/MD5/SHA1 implementations
in the WPA distribution when building without native crypto.

For hostapd in particular, using crypto_libc.c unconditionally meant that
up until now the program has been pretty much unusable for anything which
requires cryptographic key exchanges. E.g. WPA/WPA2.

Also add support for a range of authentication protocols (EAP) in hostapd
if we're building with native crypto support.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2008/01/26 21:50:21 christos Exp $
@


1.2
log
@Adjust to the new wpa tree structure.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.1 2006/04/12 15:37:07 rpaulo Exp $
d7 2
a8 2
SRCS=	accounting.c ap_list.c beacon.c common.c config.c crypto_libc.c \
	ctrl_iface.c driver_bsd.c drivers.c eap.c eap_common.c \
d13 2
a14 2
	tls_none.c vlan_init.c wme.c wpa.c wpa_auth_ie.c wpa_common.c \
	wpa_debug.c wpabuf.c
d29 33
@


1.1
log
@Build framework for hostapd. Based on FreeBSD.
hostapd.conf.5 man page still incomplete.
@
text
@d1 1
a1 1
# $NetBSD: Makefile,v 1.2 2005/10/01 20:46:43 christos Exp $
a4 1
.PATH.c: ${HOSTAPD_DISTDIR} ${.CURDIR}/..
d7 14
a20 6
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 tls_none.c \
	ctrl_iface.c driver_conf.c l2_packet.c driver_netbsd.c

CLEANFILES=driver_conf.c
d24 2
a25 2
CFLAGS+= -I${.CURDIR} -I${HOSTAPD_DISTDIR}
CFLAGS+= -DCONFIG_DRIVER_BSD
a28 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.1.10.1
log
@sync with HEAD
@
text
@d1 1
a1 1
# Makefile,v 1.1 2006/04/12 15:37:07 rpaulo Exp
d5 1
d8 6
a13 14
SRCS=	accounting.c ap_list.c beacon.c common.c config.c crypto_libc.c \
	ctrl_iface.c driver_bsd.c drivers.c eap.c eap_common.c \
	eap_identity.c eap_methods.c eapol_sm.c eloop.c hostapd.c \
	hw_features.c ieee802_11.c ieee802_11_auth.c ieee802_11h.c \
	ieee802_1x.c ip_addr.c l2_packet_freebsd.c md5.c mlme.c os_unix.c \
	pmksa_cache.c radius.c radius_client.c rc4.c sha1.c sta_info.c \
	tls_none.c vlan_init.c wme.c wpa.c wpa_auth_ie.c wpa_common.c \
	wpa_debug.c wpabuf.c

.PATH.c: \
	${HOSTAPD_DISTDIR} \
	${WPA_DISTDIR}/src/eap_server \
	${WPA_DISTDIR}/src/radius \
	${.CURDIR}/../wpa_supplicant
d17 2
a18 2
CPPFLAGS+= -I${.CURDIR} -I${HOSTAPD_DISTDIR}
CPPFLAGS+= -DCONFIG_DRIVER_BSD
d22 15
@


