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

◆ CreateForX509Store()

static SslCertificateTrust System.Net.Security.SslCertificateTrust.CreateForX509Store ( X509Store store,
bool sendTrustInHandshake = false )
inlinestatic

Definition at line 14 of file SslCertificateTrust.cs.

15 {
16 if (sendTrustInHandshake && store.Location != StoreLocation.LocalMachine)
17 {
18 throw new PlatformNotSupportedException(System.SR.net_ssl_trust_store);
19 }
20 if (!store.IsOpen)
21 {
22 store.Open(OpenFlags.OpenExistingOnly);
23 }
24 SslCertificateTrust sslCertificateTrust = new SslCertificateTrust();
25 sslCertificateTrust._store = store;
26 sslCertificateTrust._sendTrustInHandshake = sendTrustInHandshake;
27 return sslCertificateTrust;
28 }
static string net_ssl_trust_store
Definition SR.cs:126
Definition SR.cs:7

References System.Net.Security.SslCertificateTrust.SslCertificateTrust(), System.Security.Cryptography.X509Certificates.X509Store.IsOpen, System.Security.Cryptography.X509Certificates.X509Store.Location, System.SR.net_ssl_trust_store, and System.Security.Cryptography.X509Certificates.X509Store.Open().