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