Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ AttachCertificateStore()

static unsafe void System.Net.Security.SslStreamPal.AttachCertificateStore ( SafeFreeCredentials cred,
X509Store store )
inlinestaticprivate

Definition at line 86 of file SslStreamPal.cs.

87 {
88 global::Interop.SspiCli.SecPkgCred_ClientCertPolicy pBuffer = default(global::Interop.SspiCli.SecPkgCred_ClientCertPolicy);
89 fixed (char* pwszSslCtlStoreName = store.Name)
90 {
91 pBuffer.pwszSslCtlStoreName = pwszSslCtlStoreName;
92 global::Interop.SECURITY_STATUS sECURITY_STATUS = global::Interop.SspiCli.SetCredentialsAttributesW(ref cred._handle, 96L, ref pBuffer, sizeof(global::Interop.SspiCli.SecPkgCred_ClientCertPolicy));
93 if (sECURITY_STATUS != 0)
94 {
95 throw new Win32Exception((int)sECURITY_STATUS);
96 }
97 }
98 }

References System.L.

Referenced by System.Net.Security.SslStreamPal.AcquireCredentialsHandle().