diff --git a/hostapd/Android.mk b/hostapd/Android.mk index 82fa3ea73..258c5ad9c 100644 --- a/hostapd/Android.mk +++ b/hostapd/Android.mk @@ -544,6 +544,7 @@ NEED_ECC=y NEED_JSON=y NEED_GAS=y NEED_BASE64=y +NEED_ASN1=y ifdef CONFIG_DPP2 L_CFLAGS += -DCONFIG_DPP2 endif @@ -681,12 +682,12 @@ OBJS += src/tls/tlsv1_cred.c OBJS += src/tls/tlsv1_server.c OBJS += src/tls/tlsv1_server_write.c OBJS += src/tls/tlsv1_server_read.c -OBJS += src/tls/asn1.c OBJS += src/tls/rsa.c OBJS += src/tls/x509v3.c OBJS += src/tls/pkcs1.c OBJS += src/tls/pkcs5.c OBJS += src/tls/pkcs8.c +NEED_ASN1=y NEED_BASE64=y NEED_TLS_PRF=y ifdef CONFIG_TLSV12 @@ -936,6 +937,10 @@ L_CFLAGS += -DCONFIG_INTERNAL_SHA512 OBJS += src/crypto/sha512-internal.c endif +ifdef NEED_ASN1 +OBJS += src/tls/asn1.c +endif + ifdef NEED_DH_GROUPS OBJS += src/crypto/dh_groups.c endif diff --git a/hostapd/Makefile b/hostapd/Makefile index f1896f2e3..8666763a0 100644 --- a/hostapd/Makefile +++ b/hostapd/Makefile @@ -583,6 +583,7 @@ NEED_ECC=y NEED_JSON=y NEED_GAS=y NEED_BASE64=y +NEED_ASN1=y ifdef CONFIG_DPP2 CFLAGS += -DCONFIG_DPP2 endif @@ -756,12 +757,12 @@ OBJS += ../src/tls/tlsv1_cred.o OBJS += ../src/tls/tlsv1_server.o OBJS += ../src/tls/tlsv1_server_write.o OBJS += ../src/tls/tlsv1_server_read.o -OBJS += ../src/tls/asn1.o OBJS += ../src/tls/rsa.o OBJS += ../src/tls/x509v3.o OBJS += ../src/tls/pkcs1.o OBJS += ../src/tls/pkcs5.o OBJS += ../src/tls/pkcs8.o +NEED_ASN1=y NEED_BASE64=y NEED_TLS_PRF=y ifdef CONFIG_TLSV12 @@ -832,12 +833,12 @@ OBJS += ../src/tls/tlsv1_cred.o OBJS += ../src/tls/tlsv1_server.o OBJS += ../src/tls/tlsv1_server_write.o OBJS += ../src/tls/tlsv1_server_read.o -OBJS += ../src/tls/asn1.o OBJS += ../src/tls/rsa.o OBJS += ../src/tls/x509v3.o OBJS += ../src/tls/pkcs1.o OBJS += ../src/tls/pkcs5.o OBJS += ../src/tls/pkcs8.o +NEED_ASN1=y NEED_BASE64=y NEED_TLS_PRF=y ifdef CONFIG_TLSV12 @@ -1085,6 +1086,10 @@ CFLAGS += -DCONFIG_INTERNAL_SHA512 OBJS += ../src/crypto/sha512-internal.o endif +ifdef NEED_ASN1 +OBJS += ../src/tls/asn1.o +endif + ifdef NEED_DH_GROUPS OBJS += ../src/crypto/dh_groups.o endif diff --git a/wpa_supplicant/Android.mk b/wpa_supplicant/Android.mk index 98f3b52a2..e6c4e18ba 100644 --- a/wpa_supplicant/Android.mk +++ b/wpa_supplicant/Android.mk @@ -253,6 +253,7 @@ NEED_ECC=y NEED_JSON=y NEED_GAS_SERVER=y NEED_BASE64=y +NEED_ASN1=y ifdef CONFIG_DPP2 L_CFLAGS += -DCONFIG_DPP2 endif @@ -1089,7 +1090,7 @@ OBJS += src/tls/tlsv1_client.c OBJS += src/tls/tlsv1_client_write.c OBJS += src/tls/tlsv1_client_read.c OBJS += src/tls/tlsv1_client_ocsp.c -OBJS += src/tls/asn1.c +NEED_ASN1=y OBJS += src/tls/rsa.c OBJS += src/tls/x509v3.c OBJS += src/tls/pkcs1.c @@ -1379,6 +1380,10 @@ endif OBJS += src/crypto/sha512-prf.c endif +ifdef NEED_ASN1 +OBJS += src/tls/asn1.c +endif + ifdef NEED_DH_GROUPS OBJS += src/crypto/dh_groups.c endif diff --git a/wpa_supplicant/Makefile b/wpa_supplicant/Makefile index 96dc5bd0f..0c54077b8 100644 --- a/wpa_supplicant/Makefile +++ b/wpa_supplicant/Makefile @@ -285,6 +285,7 @@ NEED_ECC=y NEED_JSON=y NEED_GAS_SERVER=y NEED_BASE64=y +NEED_ASN1=y ifdef CONFIG_DPP2 CFLAGS += -DCONFIG_DPP2 endif @@ -1153,12 +1154,12 @@ OBJS += ../src/tls/tlsv1_client.o OBJS += ../src/tls/tlsv1_client_write.o OBJS += ../src/tls/tlsv1_client_read.o OBJS += ../src/tls/tlsv1_client_ocsp.o -OBJS += ../src/tls/asn1.o OBJS += ../src/tls/rsa.o OBJS += ../src/tls/x509v3.o OBJS += ../src/tls/pkcs1.o OBJS += ../src/tls/pkcs5.o OBJS += ../src/tls/pkcs8.o +NEED_ASN1=y NEED_BASE64=y NEED_TLS_PRF=y ifdef CONFIG_TLSV12 @@ -1232,12 +1233,12 @@ OBJS += ../src/tls/tlsv1_client.o OBJS += ../src/tls/tlsv1_client_write.o OBJS += ../src/tls/tlsv1_client_read.o OBJS += ../src/tls/tlsv1_client_ocsp.o -OBJS += ../src/tls/asn1.o OBJS += ../src/tls/rsa.o OBJS += ../src/tls/x509v3.o OBJS += ../src/tls/pkcs1.o OBJS += ../src/tls/pkcs5.o OBJS += ../src/tls/pkcs8.o +NEED_ASN1=y NEED_BASE64=y NEED_TLS_PRF=y ifdef CONFIG_TLSV12 @@ -1520,6 +1521,10 @@ CFLAGS += -DCONFIG_SHA512 OBJS += ../src/crypto/sha512-prf.o endif +ifdef NEED_ASN1 +OBJS += ../src/tls/asn1.o +endif + ifdef NEED_DH_GROUPS OBJS += ../src/crypto/dh_groups.o endif