|
@@ -787,6 +787,7 @@ OBJS += ../src/tls/x509v3.o
|
|
OBJS += ../src/tls/pkcs1.o
|
|
OBJS += ../src/tls/pkcs1.o
|
|
OBJS += ../src/tls/pkcs5.o
|
|
OBJS += ../src/tls/pkcs5.o
|
|
OBJS += ../src/tls/pkcs8.o
|
|
OBJS += ../src/tls/pkcs8.o
|
|
|
|
+NEED_SHA256=y
|
|
NEED_BASE64=y
|
|
NEED_BASE64=y
|
|
NEED_TLS_PRF=y
|
|
NEED_TLS_PRF=y
|
|
NEED_MODEXP=y
|
|
NEED_MODEXP=y
|
|
@@ -802,7 +803,6 @@ OBJS += ../src/crypto/crypto_internal-modexp.o
|
|
OBJS += ../src/tls/bignum.o
|
|
OBJS += ../src/tls/bignum.o
|
|
endif
|
|
endif
|
|
ifeq ($(CONFIG_CRYPTO), libtomcrypt)
|
|
ifeq ($(CONFIG_CRYPTO), libtomcrypt)
|
|
-CFLAGS += -DCONFIG_INTERNAL_X509
|
|
|
|
OBJS += ../src/crypto/crypto_libtomcrypt.o
|
|
OBJS += ../src/crypto/crypto_libtomcrypt.o
|
|
OBJS_p += ../src/crypto/crypto_libtomcrypt.o
|
|
OBJS_p += ../src/crypto/crypto_libtomcrypt.o
|
|
LIBS += -ltomcrypt -ltfm
|
|
LIBS += -ltomcrypt -ltfm
|
|
@@ -812,7 +812,6 @@ CONFIG_INTERNAL_RC4=y
|
|
CONFIG_INTERNAL_DH_GROUP5=y
|
|
CONFIG_INTERNAL_DH_GROUP5=y
|
|
endif
|
|
endif
|
|
ifeq ($(CONFIG_CRYPTO), internal)
|
|
ifeq ($(CONFIG_CRYPTO), internal)
|
|
-CFLAGS += -DCONFIG_INTERNAL_X509
|
|
|
|
OBJS += ../src/crypto/crypto_internal.o
|
|
OBJS += ../src/crypto/crypto_internal.o
|
|
OBJS_p += ../src/crypto/crypto_internal.o
|
|
OBJS_p += ../src/crypto/crypto_internal.o
|
|
NEED_AES_ENC=y
|
|
NEED_AES_ENC=y
|
|
@@ -968,7 +967,6 @@ endif
|
|
SHA256OBJS = # none by default
|
|
SHA256OBJS = # none by default
|
|
ifdef NEED_SHA256
|
|
ifdef NEED_SHA256
|
|
SHA256OBJS += ../src/crypto/sha256.o
|
|
SHA256OBJS += ../src/crypto/sha256.o
|
|
-CFLAGS += -DNEED_SHA256
|
|
|
|
ifdef CONFIG_INTERNAL_SHA256
|
|
ifdef CONFIG_INTERNAL_SHA256
|
|
SHA256OBJS += ../src/crypto/sha256-internal.o
|
|
SHA256OBJS += ../src/crypto/sha256-internal.o
|
|
endif
|
|
endif
|