summaryrefslogtreecommitdiff
path: root/src/core/hle/service/ssl
diff options
context:
space:
mode:
authorGravatar comex2023-06-25 17:09:54 -0700
committerGravatar comex2023-06-25 17:09:54 -0700
commitcd4b8f037ca59efbc9fc45f1954de2284017c4c4 (patch)
tree8049f5adaafce825e0d2ce9d72cbced38b736f2e /src/core/hle/service/ssl
parentFix more Windows build errors (diff)
downloadyuzu-cd4b8f037ca59efbc9fc45f1954de2284017c4c4.tar.gz
yuzu-cd4b8f037ca59efbc9fc45f1954de2284017c4c4.tar.xz
yuzu-cd4b8f037ca59efbc9fc45f1954de2284017c4c4.zip
re-format
Diffstat (limited to 'src/core/hle/service/ssl')
-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 {
18// the headers define an enum containing Network and Service as enumerators 18// the headers define an enum containing Network and Service as enumerators
19// (which clash with the correspondingly named namespaces). 19// (which clash with the correspondingly named namespaces).
20#define SECURITY_WIN32 20#define SECURITY_WIN32
21#include <security.h>
22#include <schnlsp.h> 21#include <schnlsp.h>
22#include <security.h>
23 23
24std::once_flag one_time_init_flag; 24std::once_flag one_time_init_flag;
25bool one_time_init_success = false; 25bool one_time_init_success = false;
@@ -29,9 +29,10 @@ CredHandle cred_handle;
29 29
30static void OneTimeInit() { 30static void OneTimeInit() {
31 schannel_cred.dwVersion = SCHANNEL_CRED_VERSION; 31 schannel_cred.dwVersion = SCHANNEL_CRED_VERSION;
32 schannel_cred.dwFlags = SCH_USE_STRONG_CRYPTO | // don't allow insecure protocols 32 schannel_cred.dwFlags =
33 SCH_CRED_AUTO_CRED_VALIDATION | // validate certs 33 SCH_USE_STRONG_CRYPTO | // don't allow insecure protocols
34 SCH_CRED_NO_DEFAULT_CREDS; // don't automatically present a client certificate 34 SCH_CRED_AUTO_CRED_VALIDATION | // validate certs
35 SCH_CRED_NO_DEFAULT_CREDS; // don't automatically present a client certificate
35 // ^ I'm assuming that nobody would want to connect Yuzu to a 36 // ^ I'm assuming that nobody would want to connect Yuzu to a
36 // service that requires some OS-provided corporate client 37 // service that requires some OS-provided corporate client
37 // certificate, and presenting one to some arbitrary server 38 // certificate, and presenting one to some arbitrary server