From c91231c912a4cb5ef1f151cbe60be4e7d06a379d Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Sun, 16 Aug 2009 09:34:58 +0300 Subject: [PATCH] Add GnuTLS build option for eap_example --- eap_example/Makefile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/eap_example/Makefile b/eap_example/Makefile index d2213462b..3efbdfab3 100644 --- a/eap_example/Makefile +++ b/eap_example/Makefile @@ -13,6 +13,7 @@ endif CONFIG_TLS=openssl #CONFIG_TLS=internal #CONFIG_INTERNAL_LIBTOMMATH=y +#CONFIG_TLS=gnutls CFLAGS += -I. @@ -113,6 +114,14 @@ LIBS += -lssl -lcrypto CONFIG_INTERNAL_SHA256=y endif +ifeq ($(CONFIG_TLS), gnutls) +CFLAGS += -DEAP_TLS_GNUTLS +OBJS_both += ../src/crypto/tls_gnutls.o +OBJS_both += ../src/crypto/crypto_gnutls.o +LIBS += -lgnutls -lgcrypt +CONFIG_INTERNAL_SHA256=y +endif + ifeq ($(CONFIG_TLS), internal) OBJS_both += ../src/crypto/tls_internal.o OBJS_both += ../src/tls/tlsv1_common.o ../src/tls/tlsv1_record.o