From 5ed24bc5590ac97af6340367670a1b365324a719 Mon Sep 17 00:00:00 2001 From: David Garske Date: Mon, 8 Apr 2019 06:48:28 -0700 Subject: [PATCH] Fix to make sure server is also enabled for embedded tls examples. --- embedded/tls-sock-threaded.c | 5 +++-- embedded/tls-threaded.c | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/embedded/tls-sock-threaded.c b/embedded/tls-sock-threaded.c index 90c79c83..716ce78c 100644 --- a/embedded/tls-sock-threaded.c +++ b/embedded/tls-sock-threaded.c @@ -25,7 +25,8 @@ #include #include -#if !defined(SINGLE_THREADED) && !defined(NO_WOLFSSL_CLIENT) +#if !defined(SINGLE_THREADED) && !defined(NO_WOLFSSL_CLIENT) && \ + !defined(NO_WOLFSSL_SERVER) #include "sockets.h" #include "threading.h" @@ -463,7 +464,7 @@ int main(int argc, char* argv[]) int main(int argc, char* argv[]) { - printf("Threading and TLS client required - compile wolfSSL without SINGLE_THREAED\n"); + printf("Threading and TLS client and server required - compile wolfSSL without SINGLE_THREAED\n"); return 0; } diff --git a/embedded/tls-threaded.c b/embedded/tls-threaded.c index 7ea63369..1307a729 100644 --- a/embedded/tls-threaded.c +++ b/embedded/tls-threaded.c @@ -25,7 +25,8 @@ #include #include -#if !defined(SINGLE_THREADED) && !defined(NO_WOLFSSL_CLIENT) +#if !defined(SINGLE_THREADED) && !defined(NO_WOLFSSL_CLIENT) && \ + !defined(NO_WOLFSSL_SERVER) #include "threading.h" #include "certs.h" @@ -492,7 +493,7 @@ int main(int argc, char* argv[]) { (void)argc; (void)argv; - printf("Threading and TLS client required - compile wolfSSL without SINGLE_THREAED\n"); + printf("Threading and TLS client and server required - compile wolfSSL without SINGLE_THREAED\n"); return 0; }