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