Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
SslCertificateTrust.cs
Go to the documentation of this file.
3
4namespace System.Net.Security;
5
6public sealed class SslCertificateTrust
7{
8 internal X509Store _store;
9
11
12 internal bool _sendTrustInHandshake;
13
14 public static SslCertificateTrust CreateForX509Store(X509Store store, bool sendTrustInHandshake = false)
15 {
16 if (sendTrustInHandshake && store.Location != StoreLocation.LocalMachine)
17 {
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 }
29
30 [UnsupportedOSPlatform("windows")]
31 public static SslCertificateTrust CreateForX509Collection(X509Certificate2Collection trustList, bool sendTrustInHandshake = false)
32 {
33 if (sendTrustInHandshake)
34 {
35 throw new PlatformNotSupportedException("Not supported yet.");
36 }
37 if (sendTrustInHandshake)
38 {
40 }
41 SslCertificateTrust sslCertificateTrust = new SslCertificateTrust();
42 sslCertificateTrust._trustList = trustList;
43 sslCertificateTrust._sendTrustInHandshake = sendTrustInHandshake;
44 return sslCertificateTrust;
45 }
46
48 {
49 }
50}
static SslCertificateTrust CreateForX509Collection(X509Certificate2Collection trustList, bool sendTrustInHandshake=false)
static SslCertificateTrust CreateForX509Store(X509Store store, bool sendTrustInHandshake=false)
static string net_ssl_trust_store
Definition SR.cs:126
static string net_ssl_trust_collection
Definition SR.cs:128
Definition SR.cs:7