From 16c238e4b92fc20a8a49e2a6713366fd3cfafad8 Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Mon, 17 Jul 2023 15:44:15 -0400 Subject: [PATCH] ssl: Link with crypt32 for secure channel backend --- src/core/CMakeLists.txt | 2 +- src/core/hle/service/ssl/ssl_backend_schannel.cpp | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt index c3b688c5d..4b7395be8 100644 --- a/src/core/CMakeLists.txt +++ b/src/core/CMakeLists.txt @@ -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) diff --git a/src/core/hle/service/ssl/ssl_backend_schannel.cpp b/src/core/hle/service/ssl/ssl_backend_schannel.cpp index 368735d8c..d8074339a 100644 --- a/src/core/hle/service/ssl/ssl_backend_schannel.cpp +++ b/src/core/hle/service/ssl/ssl_backend_schannel.cpp @@ -20,6 +20,7 @@ namespace { #define SECURITY_WIN32 #include #include +#include std::once_flag one_time_init_flag; bool one_time_init_success = false;