1
0
Fork 0
forked from suyu/suyu

ssl: Link with crypt32 for secure channel backend

This commit is contained in:
Morph 2023-07-17 15:44:15 -04:00
parent e0fb1d3d17
commit 16c238e4b9
2 changed files with 2 additions and 1 deletions

View file

@ -876,7 +876,7 @@ elseif (APPLE)
elseif (WIN32)
target_sources(core PRIVATE
hle/service/ssl/ssl_backend_schannel.cpp)
target_link_libraries(core PRIVATE secur32)
target_link_libraries(core PRIVATE crypt32 secur32)
else()
target_sources(core PRIVATE
hle/service/ssl/ssl_backend_none.cpp)

View file

@ -20,6 +20,7 @@ namespace {
#define SECURITY_WIN32
#include <schnlsp.h>
#include <security.h>
#include <wincrypt.h>
std::once_flag one_time_init_flag;
bool one_time_init_success = false;