We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f29906c commit 3b66efbCopy full SHA for 3b66efb
ixwebsocket/IXSocketOpenSSL.cpp
@@ -26,6 +26,7 @@
26
27
#ifdef _WIN32
28
// For manipulating the certificate store
29
+#include <windows.h>
30
#include <wincrypt.h>
31
#endif
32
@@ -293,10 +294,16 @@ namespace ix
293
294
*/
295
bool SocketOpenSSL::checkHost(const std::string& host, const char* pattern)
296
{
297
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
298
+ return true;
299
+#else
300
+
301
302
return PathMatchSpecA(host.c_str(), pattern);
303
#else
304
return fnmatch(pattern, host.c_str(), 0) != FNM_NOMATCH;
305
+#endif
306
307
308
}
309
0 commit comments