Adds a HAVE_CYASSL definition to be consistent with polar/mbedtls.
Uses that definition to include the wolfssl build time options.
This enables the correct pullin of the "remainder" of the wolfssl openssl
compatibility options, if they were enabled in the build of wolfssl in the
first place.
Signed-off-by: Karl Palsson <karlp@etactica.com>
IF (HAVE_CYASSL_VERSION_H)
ADD_DEFINITIONS(-DHAVE_CYASSL_VERSION_H)
ENDIF()
+ ADD_DEFINITIONS(-DHAVE_CYASSL)
SET(SSL_SRC ustream-io-cyassl.c ustream-openssl.c)
SET(SSL_LIB cyassl m)
ELSE()
#elif defined(HAVE_POLARSSL)
#include "ustream-polarssl.h"
#else
+#if defined(HAVE_CYASSL)
+#include <wolfssl/options.h>
+#endif
#include "ustream-openssl.h"
#endif