summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2023-06-26 02:09:54 +0200
committercomex <comexk@gmail.com>2023-06-26 02:09:54 +0200
commitcd4b8f037ca59efbc9fc45f1954de2284017c4c4 (patch)
tree8049f5adaafce825e0d2ce9d72cbced38b736f2e
parentFix more Windows build errors (diff)
downloadyuzu-cd4b8f037ca59efbc9fc45f1954de2284017c4c4.tar
yuzu-cd4b8f037ca59efbc9fc45f1954de2284017c4c4.tar.gz
yuzu-cd4b8f037ca59efbc9fc45f1954de2284017c4c4.tar.bz2
yuzu-cd4b8f037ca59efbc9fc45f1954de2284017c4c4.tar.lz
yuzu-cd4b8f037ca59efbc9fc45f1954de2284017c4c4.tar.xz
yuzu-cd4b8f037ca59efbc9fc45f1954de2284017c4c4.tar.zst
yuzu-cd4b8f037ca59efbc9fc45f1954de2284017c4c4.zip
-rw-r--r--src/core/hle/service/ssl/ssl_backend_schannel.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/core/hle/service/ssl/ssl_backend_schannel.cpp b/src/core/hle/service/ssl/ssl_backend_schannel.cpp
index 92b2dddaa..d293adcf7 100644
--- a/src/core/hle/service/ssl/ssl_backend_schannel.cpp
+++ b/src/core/hle/service/ssl/ssl_backend_schannel.cpp
@@ -18,8 +18,8 @@ namespace {
// the headers define an enum containing Network and Service as enumerators
// (which clash with the correspondingly named namespaces).
#define SECURITY_WIN32
-#include <security.h>
#include <schnlsp.h>
+#include <security.h>
std::once_flag one_time_init_flag;
bool one_time_init_success = false;
@@ -29,9 +29,10 @@ CredHandle cred_handle;
static void OneTimeInit() {
schannel_cred.dwVersion = SCHANNEL_CRED_VERSION;
- schannel_cred.dwFlags = SCH_USE_STRONG_CRYPTO | // don't allow insecure protocols
- SCH_CRED_AUTO_CRED_VALIDATION | // validate certs
- SCH_CRED_NO_DEFAULT_CREDS; // don't automatically present a client certificate
+ schannel_cred.dwFlags =
+ SCH_USE_STRONG_CRYPTO | // don't allow insecure protocols
+ SCH_CRED_AUTO_CRED_VALIDATION | // validate certs
+ SCH_CRED_NO_DEFAULT_CREDS; // don't automatically present a client certificate
// ^ I'm assuming that nobody would want to connect Yuzu to a
// service that requires some OS-provided corporate client
// certificate, and presenting one to some arbitrary server