Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros
SslClientAuthenticationOptions.cs
Go to the documentation of this file.
4
5namespace System.Net.Security;
6
8{
10
12
14
15 private bool _allowRenegotiation = true;
16
18 {
19 get
20 {
22 }
23 set
24 {
26 }
27 }
28
29 public LocalCertificateSelectionCallback? LocalCertificateSelectionCallback { get; set; }
30
31 public RemoteCertificateValidationCallback? RemoteCertificateValidationCallback { get; set; }
32
34
35 public string? TargetHost { get; set; }
36
38
40 {
41 get
42 {
44 }
45 set
46 {
47 if (value != 0 && value != X509RevocationMode.Offline && value != X509RevocationMode.Online)
48 {
49 throw new ArgumentException(System.SR.Format(System.SR.net_invalid_enum, "X509RevocationMode"), "value");
50 }
52 }
53 }
54
56 {
57 get
58 {
59 return _encryptionPolicy;
60 }
61 set
62 {
63 if (value != 0 && value != EncryptionPolicy.AllowNoEncryption && value != EncryptionPolicy.NoEncryption)
64 {
65 throw new ArgumentException(System.SR.Format(System.SR.net_invalid_enum, "EncryptionPolicy"), "value");
66 }
68 }
69 }
70
72 {
73 get
74 {
76 }
77 set
78 {
80 }
81 }
82
84}
static string net_invalid_enum
Definition SR.cs:40
static string Format(string resourceFormat, object p1)
Definition SR.cs:118
Definition SR.cs:7