@@ -20,10 +20,16 @@ #include "tls.h" #include #include #include + +#ifdef OPENSSL_HEADER_PREFIX +# define OPENSSL_HEADER(header) +#else +# define OPENSSL_HEADER(header)
+#endif #ifdef __WIN32__ #define WIN32_LEAN_AND_MEAN #include #include /* OpenSSL needs this on Windows */ @@ -43,14 +49,14 @@ # ifndef NO_SSL2 # define NO_SSL2 # endif #endif -#include -#include -#include -#include +#include OPENSSL_HEADER(openssl/ssl.h) +#include OPENSSL_HEADER(openssl/err.h) +#include OPENSSL_HEADER(openssl/rand.h) +#include OPENSSL_HEADER(openssl/opensslv.h) /* * Determine if we should use the pre-OpenSSL 1.1.0 API */ #undef TCLTLS_OPENSSL_PRE_1_1