149 references to Log
System.Net.Security (149)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (1)
611if (NetEventSource.Log.IsEnabled())
src\runtime\src\libraries\Common\src\System\Net\DebugSafeHandle.cs (1)
35if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
src\runtime\src\libraries\Common\src\System\Net\DebugSafeHandleZeroOrMinusOneIsInvalid.cs (2)
20if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "Creating SafeHandle"); 25if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (4)
61Log.Info(IdOf(thisOrContextObject), memberName, formattableString != null ? Format(formattableString) : NoParameters); 69Log.Info(IdOf(thisOrContextObject), memberName, Format(message)); 86Log.ErrorMessage(IdOf(thisOrContextObject), memberName, Format(formattableString)); 94Log.ErrorMessage(IdOf(thisOrContextObject), memberName, Format(message));
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.DumpBuffer.cs (1)
35Log.DumpBuffer(IdOf(thisOrContextObject), memberName, buffer.Slice(0, Math.Min(buffer.Length, MaxDumpSize)).ToArray());
src\runtime\src\libraries\Common\src\System\Net\SafeHandleCache.cs (5)
55if (NetEventSource.Log.IsEnabled()) 85if (NetEventSource.Log.IsEnabled()) 121if (NetEventSource.Log.IsEnabled()) 135if (NetEventSource.Log.IsEnabled()) 148if (NetEventSource.Log.IsEnabled())
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (1)
30if (NetEventSource.Log.IsEnabled())
src\runtime\src\libraries\Common\src\System\Net\Security\SSPIHandleCache.cs (1)
34if (NetEventSource.Log.IsEnabled() && !ExceptionCheck.IsFatal(e))
System\Net\CertificateValidationPal.cs (2)
60if (NetEventSource.Log.IsEnabled()) 80if (NetEventSource.Log.IsEnabled())
System\Net\CertificateValidationPal.Unix.cs (2)
94if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.RemoteCertificate(result);
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (2)
295if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"package={clientOptions.Package}, spn={_spn}, requiredProtectionLevel={_protectionLevel}"); 307if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, SR.net_ntlm_not_possible_default_cred);
System\Net\NegotiateAuthenticationPal.Unix.cs (20)
45if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, ex); 69if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, ex); 141if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 189if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Peer SPN-> '{_spn}'"); 195if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "using DefaultCredentials"); 200if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_ntlm_not_possible_default_cred); 205if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_nego_not_supported_empty_target_with_defaultcreds); 237if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Peer SPN-> '{_spn}'"); 243if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "using DefaultCredentials"); 280if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SSPIWrapper.InitializeSecurityContext() returns statusCode:{statusCode}"); 294if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SSPIWrapper.AcceptSecurityContext() returns statusCode:{statusCode}"); 320if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"need continue _securityContext:{_securityContext}"); 505if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 559if (NetEventSource.Log.IsEnabled()) 619if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, gex); 629if (NetEventSource.Log.IsEnabled()) 653if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 692if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, gex); 707if (NetEventSource.Log.IsEnabled()) 726if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex);
System\Net\Security\NegotiateAuthentication.cs (8)
435if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_kerberos); 441if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_disabled); 447if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_cbt); 453if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spns); 463if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_whensupported); 468if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_spn_failed_always); 473if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_spn, clientSpn); 476if (NetEventSource.Log.IsEnabled())
System\Net\Security\SslSessionsCache.cs (8)
119if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found, Current Cache Count = {s_cachedCreds.Count}"); 128if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found or invalid, Current Cache Count = {s_cachedCreds.Count}"); 132if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Found a cached Handle = {credentials}"); 163if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Refused to cache an Invalid Handle {creds}, Current Cache Count = {s_cachedCreds.Count}"); 188if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Caching New Handle = {creds}, Current Cache Count = {s_cachedCreds.Count}"); 195if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"CacheCredential() (locked retry) Found already cached Handle = {credentials}"); 201if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"CacheCredential() Ignoring incoming handle = {creds} since found already cached Handle = {credentials}"); 244if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Scavenged cache, New Cache Count = {s_cachedCreds.Count}");
System\Net\Security\SslStream.cs (2)
228if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.SslStreamCtor(this, innerStream);
System\Net\Security\SslStream.IO.cs (16)
338if (NetEventSource.Log.IsEnabled()) 339NetEventSource.Log.SentFrame(this, token.Payload); 383if (NetEventSource.Log.IsEnabled()) 384NetEventSource.Log.SentFrame(this, payload.Span); 391if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, token.Status); 434if (NetEventSource.Log.IsEnabled()) 435NetEventSource.Log.SspiSelectedCipherSuite(nameof(ForceAuthenticationAsync), 464if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}"); 483if (NetEventSource.Log.IsEnabled()) 497if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Failed to parse TLS hello."); 517if (NetEventSource.Log.IsEnabled()) 519NetEventSource.Log.ReceivedFrame(this, _lastFrame); 569if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, "invalid TLS frame size"); 627if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Ignoring unsolicited renegotiated certificate."); 957if (NetEventSource.Log.IsEnabled()) 1114if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, "invalid TLS frame size");
System\Net\Security\SslStream.Protocol.cs (61)
163if (NetEventSource.Log.IsEnabled()) 164NetEventSource.Log.LocatingPrivateKey(certificate, instance); 178if (NetEventSource.Log.IsEnabled()) 179NetEventSource.Log.CertIsType2(instance); 217if (NetEventSource.Log.IsEnabled()) 219NetEventSource.Log.FoundCertInStore(isServer, instance); 246if (NetEventSource.Log.IsEnabled()) 247NetEventSource.Log.NotFoundCertInStore(instance); 298if (NetEventSource.Log.IsEnabled()) 299NetEventSource.Log.CertificateFromCertContext(this); 307if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Selected cert = {_selectedClientCertificate}"); 312if (NetEventSource.Log.IsEnabled()) 331if (NetEventSource.Log.IsEnabled()) 332NetEventSource.Log.CertificateFromDelegate(this); 338if (NetEventSource.Log.IsEnabled()) 339NetEventSource.Log.NoDelegateNoClientCert(this); 343if (NetEventSource.Log.IsEnabled()) 344NetEventSource.Log.NoDelegateButClientCert(this); 358if (NetEventSource.Log.IsEnabled()) 359NetEventSource.Log.AttemptingRestartUsingCert(clientCertificate, this); 368if (NetEventSource.Log.IsEnabled()) 372NetEventSource.Log.NoIssuersTryAllCerts(this); 376NetEventSource.Log.LookForMatchingCerts(issuers.Length, this); 398if (NetEventSource.Log.IsEnabled()) 420if (NetEventSource.Log.IsEnabled()) 424if (NetEventSource.Log.IsEnabled()) 454if (NetEventSource.Log.IsEnabled()) 455NetEventSource.Log.SelectedCert(_sslAuthenticationOptions.ClientCertificates[i], this); 463if (NetEventSource.Log.IsEnabled()) 467NetEventSource.Log.CertsAfterFiltering(filteredCerts.Count, this); 468NetEventSource.Log.FindingMatchingCerts(this); 472NetEventSource.Log.CertsAfterFiltering(0, this); 501if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Selected cert = {selectedCert}"); 589if (NetEventSource.Log.IsEnabled()) 608if (NetEventSource.Log.IsEnabled()) 609NetEventSource.Log.UsingCachedCredential(this); 658if (NetEventSource.Log.IsEnabled()) 663if (NetEventSource.Log.IsEnabled()) 674if (NetEventSource.Log.IsEnabled()) 679if (NetEventSource.Log.IsEnabled()) 693if (NetEventSource.Log.IsEnabled()) 792if (NetEventSource.Log.IsEnabled() && wedged.Failed) 800if (NetEventSource.Log.IsEnabled()) 897if (NetEventSource.Log.IsEnabled()) 1006if (NetEventSource.Log.IsEnabled()) 1029if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer.Span); 1039if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"ERROR {token.Status}"); 1072if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1230if (NetEventSource.Log.IsEnabled() && sslAuthenticationOptions.RemoteCertRequired) 1309if (NetEventSource.Log.IsEnabled()) 1355if (NetEventSource.Log.IsEnabled()) 1363if (NetEventSource.Log.IsEnabled()) 1393if (NetEventSource.Log.IsEnabled()) 1463if (!NetEventSource.Log.IsEnabled()) 1468NetEventSource.Log.RemoteCertificateError(sender, SR.net_log_remote_cert_has_errors); 1471NetEventSource.Log.RemoteCertificateError(sender, SR.net_log_remote_cert_not_available); 1476NetEventSource.Log.RemoteCertificateError(sender, SR.net_log_remote_cert_name_mismatch); 1487NetEventSource.Log.RemoteCertificateError(sender, chainStatusString); 1495NetEventSource.Log.RemoteCertDeclaredValid(sender); 1499NetEventSource.Log.RemoteCertHasNoErrors(sender); 1506NetEventSource.Log.RemoteCertUserDeclaredInvalid(sender);
System\Net\Security\SslStream.TlsSessionWedge.cs (1)
103if (NetEventSource.Log.IsEnabled())
System\Net\Security\SslStreamCertificateContext.cs (2)
80if (!chainStatus && NetEventSource.Log.IsEnabled()) 93if (!chainStatus && NetEventSource.Log.IsEnabled())
System\Net\Security\SslStreamCertificateContext.Linux.cs (9)
145if (NetEventSource.Log.IsEnabled()) 156if (NetEventSource.Log.IsEnabled()) 174if (NetEventSource.Log.IsEnabled()) 183if (NetEventSource.Log.IsEnabled()) 217if (NetEventSource.Log.IsEnabled()) 258if (NetEventSource.Log.IsEnabled()) 344if (NetEventSource.Log.IsEnabled()) 367if (NetEventSource.Log.IsEnabled()) 378if (NetEventSource.Log.IsEnabled())