mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-01 03:34:39 +02:00
Enable support for using certificate manager only. Fixes for building without TLS enabled (NO_TLS). ZD 19054. Tested using ./configure --disable-tlsv12 --disable-tls13 CFLAGS="-DNO_TLS" && make check
This commit is contained in:
@@ -72,7 +72,8 @@ Or
|
||||
#endif
|
||||
|
||||
/* PTHREAD requires server and client enabled */
|
||||
#if defined(NO_WOLFSSL_CLIENT) || defined(NO_WOLFSSL_SERVER)
|
||||
#if !defined(NO_TLS) && \
|
||||
(defined(NO_WOLFSSL_CLIENT) || defined(NO_WOLFSSL_SERVER))
|
||||
#if !defined(SINGLE_THREADED)
|
||||
#ifdef __GNUC__ /* GCC compiler */
|
||||
#pragma message "PTHREAD requires server and client enabled."
|
||||
@@ -140,7 +141,7 @@ platform supports it"
|
||||
#define SHOW_VERBOSE 0 /* Default output is tab delimited format */
|
||||
|
||||
#if (!defined(NO_WOLFSSL_CLIENT) || !defined(NO_WOLFSSL_SERVER)) && \
|
||||
!defined(WOLFCRYPT_ONLY) && defined(USE_WOLFSSL_IO)
|
||||
!defined(WOLFCRYPT_ONLY) && !defined(NO_TLS) && defined(USE_WOLFSSL_IO)
|
||||
|
||||
/* shutdown message - nice signal to server, we are done */
|
||||
static const char* kShutdown = "shutdown";
|
||||
@@ -2337,7 +2338,7 @@ int main(int argc, char** argv)
|
||||
args.return_code = 0;
|
||||
|
||||
#if (!defined(NO_WOLFSSL_CLIENT) || !defined(NO_WOLFSSL_SERVER)) && \
|
||||
!defined(WOLFCRYPT_ONLY) && defined(USE_WOLFSSL_IO)
|
||||
!defined(WOLFCRYPT_ONLY) && !defined(NO_TLS) && defined(USE_WOLFSSL_IO)
|
||||
bench_tls(&args);
|
||||
#endif
|
||||
|
||||
|
@@ -56,7 +56,8 @@ static const char *wolfsentry_config_path = NULL;
|
||||
#include <examples/client/client.h>
|
||||
#include <wolfssl/error-ssl.h>
|
||||
|
||||
#ifndef NO_WOLFSSL_CLIENT
|
||||
#if !defined(NO_WOLFSSL_CLIENT) && !defined(NO_TLS)
|
||||
|
||||
|
||||
#ifdef NO_FILESYSTEM
|
||||
#ifdef NO_RSA
|
||||
@@ -4810,7 +4811,7 @@ exit:
|
||||
WOLFSSL_RETURN_FROM_THREAD(0);
|
||||
}
|
||||
|
||||
#endif /* !NO_WOLFSSL_CLIENT */
|
||||
#endif /* !NO_WOLFSSL_CLIENT && !NO_TLS */
|
||||
|
||||
|
||||
/* so overall tests can pull in test function */
|
||||
@@ -4836,7 +4837,7 @@ exit:
|
||||
wolfSSL_Init();
|
||||
ChangeToWolfRoot();
|
||||
|
||||
#ifndef NO_WOLFSSL_CLIENT
|
||||
#if !defined(NO_WOLFSSL_CLIENT) && !defined(NO_TLS)
|
||||
#ifdef HAVE_STACK_SIZE
|
||||
StackSizeCheck(&args, client_test);
|
||||
#else
|
||||
|
@@ -57,7 +57,7 @@
|
||||
|
||||
#include <examples/echoclient/echoclient.h>
|
||||
|
||||
#ifndef NO_WOLFSSL_CLIENT
|
||||
#if !defined(NO_WOLFSSL_CLIENT) && !defined(NO_TLS)
|
||||
|
||||
|
||||
#ifdef NO_FILESYSTEM
|
||||
@@ -381,7 +381,7 @@ void echoclient_test(void* args)
|
||||
((func_args*)args)->return_code = 0;
|
||||
}
|
||||
|
||||
#endif /* !NO_WOLFSSL_CLIENT */
|
||||
#endif /* !NO_WOLFSSL_CLIENT && !NO_TLS */
|
||||
|
||||
/* so overall tests can pull in test function */
|
||||
#ifndef NO_MAIN_DRIVER
|
||||
@@ -408,7 +408,7 @@ void echoclient_test(void* args)
|
||||
#ifndef WOLFSSL_TIRTOS
|
||||
ChangeToWolfRoot();
|
||||
#endif
|
||||
#ifndef NO_WOLFSSL_CLIENT
|
||||
#if !defined(NO_WOLFSSL_CLIENT) && !defined(NO_TLS)
|
||||
echoclient_test(&args);
|
||||
#endif
|
||||
|
||||
|
@@ -56,7 +56,7 @@
|
||||
|
||||
#include "examples/echoserver/echoserver.h"
|
||||
|
||||
#ifndef NO_WOLFSSL_SERVER
|
||||
#if !defined(NO_WOLFSSL_SERVER) && !defined(NO_TLS)
|
||||
|
||||
#ifdef NO_FILESYSTEM
|
||||
#ifdef NO_RSA
|
||||
@@ -536,7 +536,7 @@ THREAD_RETURN WOLFSSL_THREAD echoserver_test(void* args)
|
||||
WOLFSSL_RETURN_FROM_THREAD(0);
|
||||
}
|
||||
|
||||
#endif /* !NO_WOLFSSL_SERVER */
|
||||
#endif /* !NO_WOLFSSL_SERVER && !NO_TLS */
|
||||
|
||||
|
||||
/* so overall tests can pull in test function */
|
||||
@@ -562,7 +562,7 @@ THREAD_RETURN WOLFSSL_THREAD echoserver_test(void* args)
|
||||
wolfSSL_Debugging_ON();
|
||||
#endif
|
||||
ChangeToWolfRoot();
|
||||
#ifndef NO_WOLFSSL_SERVER
|
||||
#if !defined(NO_WOLFSSL_SERVER) && !defined(NO_TLS)
|
||||
echoserver_test(&args);
|
||||
#endif
|
||||
wolfSSL_Cleanup();
|
||||
|
@@ -75,7 +75,7 @@ static const char *wolfsentry_config_path = NULL;
|
||||
|
||||
#include "examples/server/server.h"
|
||||
|
||||
#ifndef NO_WOLFSSL_SERVER
|
||||
#if !defined(NO_WOLFSSL_SERVER) && !defined(NO_TLS)
|
||||
|
||||
#if defined(WOLFSSL_TLS13) && ( \
|
||||
defined(HAVE_ECC) \
|
||||
@@ -3986,7 +3986,7 @@ exit:
|
||||
WOLFSSL_RETURN_FROM_THREAD(0);
|
||||
}
|
||||
|
||||
#endif /* !NO_WOLFSSL_SERVER */
|
||||
#endif /* !NO_WOLFSSL_SERVER && !NO_TLS */
|
||||
|
||||
|
||||
/* so overall tests can pull in test function */
|
||||
@@ -4017,7 +4017,7 @@ exit:
|
||||
#endif
|
||||
ChangeToWolfRoot();
|
||||
|
||||
#ifndef NO_WOLFSSL_SERVER
|
||||
#if !defined(NO_WOLFSSL_SERVER) && !defined(NO_TLS)
|
||||
#ifdef HAVE_STACK_SIZE
|
||||
StackSizeCheck(&args, server_test);
|
||||
#else
|
||||
|
Reference in New Issue
Block a user