Skip to content

Commit 3b66efb

Browse files
authored
Fix C++/WinRT compile issue (#493)
1 parent f29906c commit 3b66efb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

ixwebsocket/IXSocketOpenSSL.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626

2727
#ifdef _WIN32
2828
// For manipulating the certificate store
29+
#include <windows.h>
2930
#include <wincrypt.h>
3031
#endif
3132

@@ -293,10 +294,16 @@ namespace ix
293294
*/
294295
bool SocketOpenSSL::checkHost(const std::string& host, const char* pattern)
295296
{
297+
#if OPENSSL_VERSION_NUMBER >= 0x10100000L
298+
return true;
299+
#else
300+
296301
#ifdef _WIN32
297302
return PathMatchSpecA(host.c_str(), pattern);
298303
#else
299304
return fnmatch(pattern, host.c_str(), 0) != FNM_NOMATCH;
305+
#endif
306+
300307
#endif
301308
}
302309

0 commit comments

Comments
 (0)