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

◆ LogCertificateValidation()

void System.Net.Security.SecureChannel.LogCertificateValidation ( RemoteCertificateValidationCallback remoteCertValidationCallback,
SslPolicyErrors sslPolicyErrors,
bool success,
X509Chain chain )
inlineprivate

Definition at line 842 of file SecureChannel.cs.

843 {
844 if (!System.Net.NetEventSource.Log.IsEnabled())
845 {
846 return;
847 }
848 if (sslPolicyErrors != 0)
849 {
851 if ((sslPolicyErrors & SslPolicyErrors.RemoteCertificateNotAvailable) != 0)
852 {
854 }
855 if ((sslPolicyErrors & SslPolicyErrors.RemoteCertificateNameMismatch) != 0)
856 {
858 }
859 if ((sslPolicyErrors & SslPolicyErrors.RemoteCertificateChainErrors) != 0)
860 {
861 string text = "ChainStatus: ";
862 X509ChainStatus[] chainStatus = chain.ChainStatus;
864 {
865 text = text + "\t" + x509ChainStatus.StatusInformation;
866 }
867 System.Net.NetEventSource.Log.RemoteCertificateError(this, text);
868 }
869 }
870 if (success)
871 {
873 {
874 System.Net.NetEventSource.Log.RemoteCertDeclaredValid(this);
875 }
876 else
877 {
878 System.Net.NetEventSource.Log.RemoteCertHasNoErrors(this);
879 }
880 }
881 else if (remoteCertValidationCallback != null)
882 {
883 System.Net.NetEventSource.Log.RemoteCertUserDeclaredInvalid(this);
884 }
885 }
static readonly System.Net.NetEventSource Log
static string net_log_remote_cert_name_mismatch
Definition SR.cs:98
static string net_log_remote_cert_not_available
Definition SR.cs:96
static string net_log_remote_cert_has_errors
Definition SR.cs:94
Definition SR.cs:7

References System.Net.NetEventSource.Log, System.SR.net_log_remote_cert_has_errors, System.SR.net_log_remote_cert_name_mismatch, System.SR.net_log_remote_cert_not_available, and System.text.

Referenced by System.Net.Security.SecureChannel.VerifyRemoteCertificate().