diff --git a/lib/private-libwebsockets.h b/lib/private-libwebsockets.h index 402ba9cf..c1e51559 100644 --- a/lib/private-libwebsockets.h +++ b/lib/private-libwebsockets.h @@ -222,6 +222,15 @@ static inline int compatible_close(int fd) { return close(fd); } #include #endif #include + +#if (OPENSSL_VERSION_NUMBER < 0x0009080afL) +/* later openssl defines this to negate the presence of tlsext... but it was only + * introduced at 0.9.8j. Earlier versions don't know it exists so don't + * define it... making it look like the feature exists... + */ +#define OPENSSL_NO_TLSEXT +#endif + #endif /* not USE_MBEDTLS */ #endif /* not USE_POLARSSL */ #endif /* not USE_WOLFSSL */