diff --git a/ixwebsocket/IXSocketOpenSSL.cpp b/ixwebsocket/IXSocketOpenSSL.cpp index e37f3a6e..43d9bf3f 100644 --- a/ixwebsocket/IXSocketOpenSSL.cpp +++ b/ixwebsocket/IXSocketOpenSSL.cpp @@ -26,6 +26,7 @@ #ifdef _WIN32 // For manipulating the certificate store +#include #include #endif @@ -293,10 +294,16 @@ namespace ix */ bool SocketOpenSSL::checkHost(const std::string& host, const char* pattern) { +#if OPENSSL_VERSION_NUMBER >= 0x10100000L + return true; +#else + #ifdef _WIN32 return PathMatchSpecA(host.c_str(), pattern); #else return fnmatch(pattern, host.c_str(), 0) != FNM_NOMATCH; +#endif + #endif }