Browse Source

Enable compat layer with HAVE_WEBSERVER (--enable-webserver).

David Garske 1 day ago
parent
commit
96a0619d70
1 changed files with 5 additions and 0 deletions
  1. 5 0
      wolfssl/wolfcrypt/settings.h

+ 5 - 0
wolfssl/wolfcrypt/settings.h

@@ -3733,6 +3733,11 @@ extern void uITRON4_free(void *p) ;
     #define OPENSSL_EXTRA_X509_SMALL
     #define OPENSSL_EXTRA_X509_SMALL
 #endif
 #endif
 
 
+/* Web Server needs to enable OPENSSL_EXTRA_X509_SMALL */
+#if defined(HAVE_WEBSERVER) && !defined(OPENSSL_EXTRA_X509_SMALL)
+    #define OPENSSL_EXTRA_X509_SMALL
+#endif
+
 /* The EX data CRYPTO API's used with compatibility */
 /* The EX data CRYPTO API's used with compatibility */
 #if !defined(HAVE_EX_DATA_CRYPTO) && \
 #if !defined(HAVE_EX_DATA_CRYPTO) && \
     (defined(OPENSSL_ALL) || defined(WOLFSSL_WPAS_SMALL) || \
     (defined(OPENSSL_ALL) || defined(WOLFSSL_WPAS_SMALL) || \