ssl: Link with crypt32 for secure channel backend
This commit is contained in:
parent
e0fb1d3d17
commit
16c238e4b9
2 changed files with 2 additions and 1 deletions
|
@ -876,7 +876,7 @@ elseif (APPLE)
|
||||||
elseif (WIN32)
|
elseif (WIN32)
|
||||||
target_sources(core PRIVATE
|
target_sources(core PRIVATE
|
||||||
hle/service/ssl/ssl_backend_schannel.cpp)
|
hle/service/ssl/ssl_backend_schannel.cpp)
|
||||||
target_link_libraries(core PRIVATE secur32)
|
target_link_libraries(core PRIVATE crypt32 secur32)
|
||||||
else()
|
else()
|
||||||
target_sources(core PRIVATE
|
target_sources(core PRIVATE
|
||||||
hle/service/ssl/ssl_backend_none.cpp)
|
hle/service/ssl/ssl_backend_none.cpp)
|
||||||
|
|
|
@ -20,6 +20,7 @@ namespace {
|
||||||
#define SECURITY_WIN32
|
#define SECURITY_WIN32
|
||||||
#include <schnlsp.h>
|
#include <schnlsp.h>
|
||||||
#include <security.h>
|
#include <security.h>
|
||||||
|
#include <wincrypt.h>
|
||||||
|
|
||||||
std::once_flag one_time_init_flag;
|
std::once_flag one_time_init_flag;
|
||||||
bool one_time_init_success = false;
|
bool one_time_init_success = false;
|
||||||
|
|
Loading…
Reference in a new issue