2012-04-28 11:11:53 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2019-07-15 07:39:28 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
2014-11-25 16:57:27 +00:00
|
|
|
LIBADD+= ssl crypto
|
2013-07-04 21:12:58 +00:00
|
|
|
CFLAGS+= -DCONFIG_SHA256
|
2021-09-03 13:07:19 +00:00
|
|
|
CFLAGS+= -DCONFIG_ECC
|
2012-04-28 11:11:53 +00:00
|
|
|
.else
|
|
|
|
CFLAGS+=-DCONFIG_CRYPTO_INTERNAL
|
|
|
|
CONFIG_INTERNAL_AES=y
|
|
|
|
CONFIG_INTERNAL_DES=y
|
|
|
|
CONFIG_INTERNAL_MD4=y
|
|
|
|
CONFIG_INTERNAL_MD5=y
|
|
|
|
CONFIG_INTERNAL_RC4=y
|
|
|
|
CONFIG_INTERNAL_SHA1=y
|
2013-07-04 21:12:58 +00:00
|
|
|
NEED_SHA256=y
|
2012-04-28 11:11:53 +00:00
|
|
|
CONFIG_INTERNAL_SHA256=y
|
2021-01-04 20:39:53 +00:00
|
|
|
NEED_SHA384=y
|
|
|
|
CONFIG_INTERNAL_SHA384=y
|
|
|
|
NEED_SHA512=y
|
|
|
|
CONFIG_INTERNAL_SHA512=y
|
2012-04-28 11:11:53 +00:00
|
|
|
CONFIG_INTERNAL_TLS=y
|
2021-01-04 20:39:53 +00:00
|
|
|
NEED_DH_GROUPS=y
|
2013-07-04 21:12:58 +00:00
|
|
|
CONFIG_INTERNAL_DH5=y
|
2012-04-28 11:11:53 +00:00
|
|
|
NEED_AES_ENC=true
|
2015-10-18 21:38:25 +00:00
|
|
|
NEED_AES_CBC=true
|
2012-04-28 11:11:53 +00:00
|
|
|
.endif
|
2018-12-09 06:45:49 +00:00
|
|
|
NEED_AES_OMAC1=true
|
2021-06-02 19:46:02 +00:00
|
|
|
TLS_FUNCS=y
|
2012-04-28 11:11:53 +00:00
|
|
|
|
|
|
|
.if defined(TLS_FUNCS)
|
|
|
|
NEED_TLS_PRF=y
|
|
|
|
.if defined(CONFIG_INTERNAL_TLS)
|
|
|
|
CFLAGS+=-DCONFIG_INTERNAL_LIBTOMMATH \
|
|
|
|
-DCONFIG_TLS_INTERNAL_CLIENT
|
|
|
|
NEED_DES=y
|
|
|
|
NEED_MD4=y
|
|
|
|
NEED_RC4=y
|
|
|
|
.else
|
|
|
|
CFLAGS+=-DEAP_TLS_OPENSSL
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(NEED_AES_EAX)
|
|
|
|
NEED_AES_CTR=y
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(NEED_SHA256)
|
|
|
|
CFLAGS+=-DCONFIG_SHA256
|
|
|
|
.endif
|
|
|
|
|
2021-01-04 20:39:53 +00:00
|
|
|
.if defined(NEED_SHA384)
|
|
|
|
CFLAGS+=-DCONFIG_SHA384
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(NEED_SHA512)
|
|
|
|
CFLAGS+=-DCONFIG_SHA512
|
2013-07-04 21:12:58 +00:00
|
|
|
.endif
|
2021-01-04 20:39:53 +00:00
|
|
|
|
|
|
|
.if defined(NEED_DH_GROUPS_ALL)
|
|
|
|
CFLAGS+=-DALL_DH_GROUPS
|
|
|
|
.endif
|