From 95ff75c43dea53ad95ea02aea89ca96c5f515dfb Mon Sep 17 00:00:00 2001 From: David Garske Date: Fri, 26 Mar 2021 13:41:11 -0700 Subject: [PATCH] Fix for `wolfSSL_SESSION_print` --- examples/client/client.c | 6 +++++- src/ssl.c | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/client/client.c b/examples/client/client.c index d48d39872..7c111daa4 100644 --- a/examples/client/client.c +++ b/examples/client/client.c @@ -3331,7 +3331,10 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args) } #endif -#if defined(OPENSSL_EXTRA) && !defined(NO_SESSION_CACHE) +#if defined(OPENSSL_ALL) || (defined(OPENSSL_EXTRA) && (defined(HAVE_STUNNEL) || \ + defined(WOLFSSL_NGINX) || defined(HAVE_LIGHTY) || \ + defined(WOLFSSL_HAPROXY) || defined(WOLFSSL_OPENSSH))) +#if !defined(NO_SESSION_CACHE) #ifndef NO_BIO /* print out session to stdout */ { @@ -3345,6 +3348,7 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args) wolfSSL_BIO_free(bio); } #endif /* !NO_BIO */ +#endif #endif if (doSTARTTLS && starttlsProt != NULL) { diff --git a/src/ssl.c b/src/ssl.c index a1fa71f25..f9f067e73 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -46262,6 +46262,7 @@ void* wolfSSL_SESSION_get_ex_data(const WOLFSSL_SESSION* session, int idx) } #endif /* OPENSSL_EXTRA || WOLFSSL_WPAS_SMALL || FORTRESS */ +/* Note: This is a huge section of API's - through wolfSSL_SESSION_print */ #if defined(OPENSSL_ALL) || (defined(OPENSSL_EXTRA) && (defined(HAVE_STUNNEL) || \ defined(WOLFSSL_NGINX) || defined(HAVE_LIGHTY) || \ defined(WOLFSSL_HAPROXY) || defined(WOLFSSL_OPENSSH)))