1 # $FreeBSD: head/usr.sbin/wpa/Makefile.crypto 252726 2013-07-04 21:12:58Z rpaulo $
3 SRCS+= crypto_openssl.c random.c sha1-prf.c sha256-prf.c
4 DPADD+= ${LIBRESSL} ${LIBRECRYPTO}
5 LDADD+= -lprivate_ssl -lprivate_crypto
6 CFLAGS+= -DCONFIG_SHA256 -I${.CURDIR}/../../../crypto/libressl/include
7 LDFLAGS+= ${PRIVATELIB_LDFLAGS}
11 .if defined(CONFIG_INTERNAL_TLS)
12 CFLAGS+=-DCONFIG_INTERNAL_LIBTOMMATH \
13 -DCONFIG_TLS_INTERNAL_CLIENT
16 crypto_internal-cipher.c \
17 crypto_internal-modexp.c \
18 crypto_internal-rsa.c \
28 tlsv1_client_write.c \
35 CFLAGS+=-DEAP_TLS_OPENSSL
40 .if defined(CONFIG_INTERNAL_AES)
41 SRCS+= aes-internal.c \
46 .if defined(NEED_AES_CBC)
50 .if defined(NEED_AES_EAX)
55 .if defined(NEED_AES_CTR)
59 .if defined(NEED_AES_ENCBLOCK)
63 .if defined(NEED_AES_OMAC1)
68 .if defined(CONFIG_INTERNAL_DES)
74 .if defined(CONFIG_INTERNAL_MD4)
79 .if defined(CONFIG_INTERNAL_MD5)
83 .if defined(NEED_FIPS186_2_PRF)
84 .if defined(CONFIG_INTERNAL_SHA1)
85 SRCS+= fips_prf_internal.c
87 SRCS+= fips_prf_openssl.c
91 .if defined(CONFIG_INTERNAL_RC4)
95 .if defined(CONFIG_INTERNAL_SHA1)
96 SRCS+= sha1-internal.c sha1-pbkdf2.c sha1.c sha1-prf.c
99 .if defined(NEED_SHA256)
100 CFLAGS+=-DCONFIG_SHA256
102 .if defined(CONFIG_INTERNAL_SHA256)
103 SRCS+= sha256-internal.c sha256-prf.c
107 .if defined(NEED_TLS_PRF)
111 .if defined(CONFIG_INTERNAL_DH5)
115 .if defined(CONFIG_INTERNAL_DH)