Fix to make sure server is also enabled for embedded tls examples.

pull/143/head
David Garske 2019-04-08 06:48:28 -07:00
parent 204f165750
commit 5ed24bc559
2 changed files with 6 additions and 4 deletions

View File

@ -25,7 +25,8 @@
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/ssl.h>
#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;
}

View File

@ -25,7 +25,8 @@
#include <wolfssl/wolfcrypt/settings.h>
#include <wolfssl/ssl.h>
#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;
}