Browse Source

Fix for availability of `wolfSSL_SESSION_print`.

David Garske 3 years ago
parent
commit
a22defec50
1 changed files with 3 additions and 1 deletions
  1. 3 1
      examples/client/client.c

+ 3 - 1
examples/client/client.c

@@ -3334,7 +3334,9 @@ THREAD_RETURN WOLFSSL_THREAD client_test(void* args)
 #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)
+#if !defined(NO_SESSION_CACHE) && \
+    (defined(HAVE_SESSION_TICKET) || defined(SESSION_CERTS)) && \
+        !defined(NO_FILESYSTEM)
     #ifndef NO_BIO
     /* print out session to stdout */
     {