1# $FreeBSD$ 2 3.if ${MK_OPENSSL} != "no" 4LIBADD+= ssl crypto 5CFLAGS+= -DCONFIG_SHA256 6.else 7CFLAGS+=-DCONFIG_CRYPTO_INTERNAL 8CONFIG_INTERNAL_AES=y 9CONFIG_INTERNAL_DES=y 10CONFIG_INTERNAL_MD4=y 11CONFIG_INTERNAL_MD5=y 12CONFIG_INTERNAL_RC4=y 13CONFIG_INTERNAL_SHA1=y 14NEED_SHA256=y 15CONFIG_INTERNAL_SHA256=y 16NEED_SHA384=y 17CONFIG_INTERNAL_SHA384=y 18NEED_SHA512=y 19CONFIG_INTERNAL_SHA512=y 20CONFIG_INTERNAL_TLS=y 21NEED_DH_GROUPS=y 22CONFIG_INTERNAL_DH5=y 23NEED_AES_ENC=true 24NEED_AES_CBC=true 25.endif 26NEED_AES_OMAC1=true 27TLS_FUNCS=y 28 29.if defined(TLS_FUNCS) 30NEED_TLS_PRF=y 31.if defined(CONFIG_INTERNAL_TLS) 32CFLAGS+=-DCONFIG_INTERNAL_LIBTOMMATH \ 33 -DCONFIG_TLS_INTERNAL_CLIENT 34NEED_DES=y 35NEED_MD4=y 36NEED_RC4=y 37.else 38CFLAGS+=-DEAP_TLS_OPENSSL 39.endif 40.endif 41 42.if defined(NEED_AES_EAX) 43NEED_AES_CTR=y 44.endif 45 46.if defined(NEED_SHA256) 47CFLAGS+=-DCONFIG_SHA256 48.endif 49 50.if defined(NEED_SHA384) 51CFLAGS+=-DCONFIG_SHA384 52.endif 53 54.if defined(NEED_SHA512) 55CFLAGS+=-DCONFIG_SHA512 56.endif 57 58.if defined(NEED_DH_GROUPS_ALL) 59CFLAGS+=-DALL_DH_GROUPS 60.endif 61