1 instantiation of NetEventSource
System.Net.Security (1)
src\runtime\src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38public static readonly NetEventSource Log = new NetEventSource();
239 references to NetEventSource
System.Net.Security (239)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
590if (NetEventSource.Log.IsEnabled()) 592NetEventSource.Info(null, $"Default signature algorithms: {string.Join(":", result)}");
src\runtime\src\libraries\Common\src\System\Net\DebugSafeHandle.cs (2)
35if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
src\runtime\src\libraries\Common\src\System\Net\DebugSafeHandleZeroOrMinusOneIsInvalid.cs (4)
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 (1)
38public static readonly NetEventSource Log = new NetEventSource();
src\runtime\src\libraries\Common\src\System\Net\SafeHandleCache.cs (10)
55if (NetEventSource.Log.IsEnabled()) 57NetEventSource.Info(this, $"Found cached {handle}."); 85if (NetEventSource.Log.IsEnabled()) 87NetEventSource.Info(this, $"Discarding {handle} (preferring cached {cached})."); 121if (NetEventSource.Log.IsEnabled()) 123NetEventSource.Info(this, $"Current size: {_cache.Count}."); 135if (NetEventSource.Log.IsEnabled()) 137NetEventSource.Info(this, $"Evicting cached {handle}."); 148if (NetEventSource.Log.IsEnabled()) 150NetEventSource.Info(this, $"New size: {_cache.Count}.");
src\runtime\src\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (2)
30if (NetEventSource.Log.IsEnabled()) 32NetEventSource.Error(null, $"Failed to open SSL key log file '{s_keyLogFile}': {ex}");
src\runtime\src\libraries\Common\src\System\Net\Security\SSPIHandleCache.cs (2)
34if (NetEventSource.Log.IsEnabled() && !ExceptionCheck.IsFatal(e)) 36NetEventSource.Error(null, $"Attempted to throw: {e}");
System\Net\CertificateValidationPal.cs (4)
60if (NetEventSource.Log.IsEnabled()) 61NetEventSource.Info(null, $"storeLocation: {storeLocation} returned store {store}"); 80if (NetEventSource.Log.IsEnabled()) 81NetEventSource.Error(null, SR.Format(SR.net_log_open_store_failed, storeLocation, exception));
System\Net\CertificateValidationPal.Unix.cs (2)
94if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.RemoteCertificate(result);
System\Net\NegotiateAuthenticationPal.ManagedNtlm.cs (4)
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 (40)
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}"); 295if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SSPIWrapper.AcceptSecurityContext() returns statusCode:{statusCode}"); 321if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"need continue _securityContext:{_securityContext}"); 506if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 560if (NetEventSource.Log.IsEnabled()) 568NetEventSource.Info(this, $"requested protocol = {protocol}, target = {spn}"); 627if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, gex); 637if (NetEventSource.Log.IsEnabled()) 645NetEventSource.Info(this, $"actual protocol = {protocol}"); 661if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 699if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, gex); 714if (NetEventSource.Log.IsEnabled()) 717NetEventSource.Info(this, $"AcceptSecurityContext: actual protocol = {protocol}"); 733if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex);
System\Net\Security\NegotiateAuthentication.cs (20)
429if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_kerberos); 435if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_disabled); 441if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_cbt); 447if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spns); 457if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_whensupported); 462if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_spn_failed_always); 467if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_spn, clientSpn); 470if (NetEventSource.Log.IsEnabled()) 474NetEventSource.Info(this, SR.net_log_listener_spn_passed); 478NetEventSource.Info(this, SR.net_log_listener_spn_failed); 482NetEventSource.Info(this, SR.net_log_listener_spn_failed_empty); 486NetEventSource.Info(this, SR.net_log_listener_spn_failed_dump); 489NetEventSource.Info(this, "\t" + serviceName);
System\Net\Security\SslSessionsCache.cs (16)
119if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found, Current Cache Count = {s_cachedCreds.Count}"); 129if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found or invalid, Current Cache Count = {s_cachedCreds.Count}"); 133if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Found a cached Handle = {credentials}"); 164if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Refused to cache an Invalid Handle {creds}, Current Cache Count = {s_cachedCreds.Count}"); 189if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Caching New Handle = {creds}, Current Cache Count = {s_cachedCreds.Count}"); 196if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"CacheCredential() (locked retry) Found already cached Handle = {credentials}"); 202if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"CacheCredential() Ignoring incoming handle = {creds} since found already cached Handle = {credentials}"); 245if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Scavenged cache, New Cache Count = {s_cachedCreds.Count}");
System\Net\Security\SslStream.cs (2)
227if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.SslStreamCtor(this, innerStream);
System\Net\Security\SslStream.IO.cs (21)
315if (NetEventSource.Log.IsEnabled()) 316NetEventSource.Log.SentFrame(this, token.Payload); 360if (NetEventSource.Log.IsEnabled()) 361NetEventSource.Log.SentFrame(this, payload.Span); 368if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, token.Status); 411if (NetEventSource.Log.IsEnabled()) 412NetEventSource.Log.SspiSelectedCipherSuite(nameof(ForceAuthenticationAsync), 441if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}"); 460if (NetEventSource.Log.IsEnabled()) 474if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Failed to parse TLS hello."); 494if (NetEventSource.Log.IsEnabled()) 496NetEventSource.Log.ReceivedFrame(this, _lastFrame); 598if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Ignoring unsolicited renegotiated certificate."); 928if (NetEventSource.Log.IsEnabled()) 929NetEventSource.Info(null, $"***Processing an error Status = {status}"); 1090if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, "invalid TLS frame size");
System\Net\Security\SslStream.Protocol.cs (85)
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()) 313NetEventSource.Info(this, "Calling CertificateSelectionCallback"); 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()) 399NetEventSource.Info(this, $"Root cert: {certificateEx}"); 420if (NetEventSource.Log.IsEnabled()) 421NetEventSource.Info(this, $"Matched {issuer}"); 424if (NetEventSource.Log.IsEnabled()) 425NetEventSource.Info(this, $"No match: {issuer}"); 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); 473NetEventSource.Info(this, "No client certificate to choose from"); 501if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Selected cert = {selectedCert}"); 589if (NetEventSource.Log.IsEnabled()) 590NetEventSource.Info(this, "Reset to anonymous session."); 608if (NetEventSource.Log.IsEnabled()) 609NetEventSource.Log.UsingCachedCredential(this); 658if (NetEventSource.Log.IsEnabled()) 659NetEventSource.Error(this, $"ServerCertSelectionDelegate returned no certificate for '{_sslAuthenticationOptions.TargetHost}'."); 663if (NetEventSource.Log.IsEnabled()) 664NetEventSource.Info(this, "ServerCertSelectionDelegate selected Cert"); 674if (NetEventSource.Log.IsEnabled()) 675NetEventSource.Error(this, $"CertSelectionDelegate returned no certificaete for '{_sslAuthenticationOptions.TargetHost}'."); 679if (NetEventSource.Log.IsEnabled()) 680NetEventSource.Info(this, "CertSelectionDelegate selected Cert"); 693if (NetEventSource.Log.IsEnabled()) 694NetEventSource.Error(this, "Certiticate callback returned no certificaete."); 791if (NetEventSource.Log.IsEnabled()) 795NetEventSource.Error(this, $"Authentication failed. Status: {token.Status}, Exception message: {token.GetException()!.Message}"); 886if (NetEventSource.Log.IsEnabled()) 887NetEventSource.Info(this, "InitializeSecurityContext() returned 'CredentialsNeeded'."); 994if (NetEventSource.Log.IsEnabled()) 998NetEventSource.Info(this, $"TLS resumed {_connectionInfo.TlsResumed}"); 1017if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer.Span); 1027if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"ERROR {token.Status}"); 1060if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1064NetEventSource.DumpBuffer(this, destination.Slice(0, bytesWritten)); 1069NetEventSource.DumpBuffer(this, _buffer.DecryptedSpan); 1188if (NetEventSource.Log.IsEnabled() && RemoteCertRequired) 1190NetEventSource.Error(this, $"Remote certificate required, but no remote certificate received"); 1267if (NetEventSource.Log.IsEnabled()) 1270NetEventSource.Info(this, $"Cert validation, remote cert = {_remoteCertificate}"); 1313if (NetEventSource.Log.IsEnabled()) 1314NetEventSource.Info(this, $"alertMessage:{alertMessage}"); 1321if (NetEventSource.Log.IsEnabled()) 1322NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1351if (NetEventSource.Log.IsEnabled()) 1352NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1421if (!NetEventSource.Log.IsEnabled()) 1426NetEventSource.Log.RemoteCertificateError(this, SR.net_log_remote_cert_has_errors); 1429NetEventSource.Log.RemoteCertificateError(this, SR.net_log_remote_cert_not_available); 1434NetEventSource.Log.RemoteCertificateError(this, SR.net_log_remote_cert_name_mismatch); 1445NetEventSource.Log.RemoteCertificateError(this, chainStatusString); 1453NetEventSource.Log.RemoteCertDeclaredValid(this); 1457NetEventSource.Log.RemoteCertHasNoErrors(this); 1464NetEventSource.Log.RemoteCertUserDeclaredInvalid(this);
System\Net\Security\SslStreamCertificateContext.cs (4)
80if (!chainStatus && NetEventSource.Log.IsEnabled()) 82NetEventSource.Error(null, $"Failed to build chain for {target.Subject}"); 93if (!chainStatus && NetEventSource.Log.IsEnabled()) 95NetEventSource.Error(null, $"Failed to build chain for {target.Subject} while trusting additional certificates");
System\Net\Security\SslStreamCertificateContext.Linux.cs (18)
145if (NetEventSource.Log.IsEnabled()) 147NetEventSource.Info(this, $"Got OCSP response."); 156if (NetEventSource.Log.IsEnabled()) 158NetEventSource.Info(this, "No OCSP response available."); 174if (NetEventSource.Log.IsEnabled()) 176NetEventSource.Info(this, "Cached OCSP response expired, fetching fresh staple."); 183if (NetEventSource.Log.IsEnabled()) 185NetEventSource.Info(this, "Starting async refresh of OCSP staple"); 217if (NetEventSource.Log.IsEnabled()) 219NetEventSource.Info(this, $"Pending download task exists."); 258if (NetEventSource.Log.IsEnabled()) 260NetEventSource.Info(this, $"Starting new OCSP download task."); 344if (NetEventSource.Log.IsEnabled()) 346NetEventSource.Info(this, $"Received {ret.Length} B OCSP response, Expiration: {_ocspExpiration}, Next refresh: {_nextDownload}"); 367if (NetEventSource.Log.IsEnabled()) 369NetEventSource.Info(this, $"OCSP response fetch failed, backing off, Next refresh = {_nextDownload}"); 378if (NetEventSource.Log.IsEnabled()) 380NetEventSource.Error(this, $"OCSP refresh failed: {ex}");