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

◆ UpdateOptions()

void System.Net.Security.SslAuthenticationOptions.UpdateOptions ( SslServerAuthenticationOptions sslServerAuthenticationOptions)
inlinepackage

Definition at line 123 of file SslAuthenticationOptions.cs.

124 {
128 EncryptionPolicy = sslServerAuthenticationOptions.EncryptionPolicy;
129 RemoteCertRequired = sslServerAuthenticationOptions.ClientCertificateRequired;
131 CertificateRevocationCheckMode = sslServerAuthenticationOptions.CertificateRevocationCheckMode;
132 if (sslServerAuthenticationOptions.ServerCertificateContext != null)
133 {
134 CertificateContext = sslServerAuthenticationOptions.ServerCertificateContext;
135 }
136 else if (sslServerAuthenticationOptions.ServerCertificate is X509Certificate2 { HasPrivateKey: not false } x509Certificate)
137 {
138 CertificateContext = SslStreamCertificateContext.Create(x509Certificate);
139 }
140 if (sslServerAuthenticationOptions.RemoteCertificateValidationCallback != null)
141 {
142 CertValidationDelegate = sslServerAuthenticationOptions.RemoteCertificateValidationCallback;
143 }
144 }
RemoteCertificateValidationCallback CertValidationDelegate
static SslProtocols FilterOutIncompatibleSslProtocols(SslProtocols protocols)
static SslStreamCertificateContext Create(X509Certificate2 target, X509Certificate2Collection? additionalCertificates, bool offline)

References System.Net.Security.SslAuthenticationOptions.AllowRenegotiation, System.Net.Security.SslAuthenticationOptions.ApplicationProtocols, System.Net.Security.SslAuthenticationOptions.CertificateContext, System.Net.Security.SslAuthenticationOptions.CertificateRevocationCheckMode, System.Net.Security.SslAuthenticationOptions.CertValidationDelegate, System.Net.Security.SslStreamCertificateContext.Create(), System.Net.Security.SslAuthenticationOptions.EnabledSslProtocols, System.Net.Security.SslAuthenticationOptions.FilterOutIncompatibleSslProtocols(), and System.Net.Security.SslAuthenticationOptions.RemoteCertRequired.

Referenced by System.Net.Security.SslStream.ReceiveBlobAsync< TIOAdapter >().