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();
245 references to NetEventSource
System.Net.Security (245)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
611if (NetEventSource.Log.IsEnabled()) 613NetEventSource.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}"); 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()) 567NetEventSource.Info(this, $"requested protocol = {protocol}, target = {spn}"); 619if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, gex); 629if (NetEventSource.Log.IsEnabled()) 637NetEventSource.Info(this, $"actual protocol = {protocol}"); 653if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 692if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, gex); 707if (NetEventSource.Log.IsEnabled()) 710NetEventSource.Info(this, $"AcceptSecurityContext: actual protocol = {protocol}"); 726if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex);
System\Net\Security\NegotiateAuthentication.cs (20)
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()) 480NetEventSource.Info(this, SR.net_log_listener_spn_passed); 484NetEventSource.Info(this, SR.net_log_listener_spn_failed); 488NetEventSource.Info(this, SR.net_log_listener_spn_failed_empty); 492NetEventSource.Info(this, SR.net_log_listener_spn_failed_dump); 495NetEventSource.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}"); 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 (23)
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()) 958NetEventSource.Info(null, $"***Processing an error Status = {status}"); 1114if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, "invalid TLS frame size");
System\Net\Security\SslStream.Protocol.cs (87)
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."); 792if (NetEventSource.Log.IsEnabled() && wedged.Failed) 794NetEventSource.Error(this, $"Authentication failed. Status: {wedged.Status}, Exception message: {wedged.GetException()!.Message}"); 800if (NetEventSource.Log.IsEnabled()) 804NetEventSource.Error(this, $"Authentication failed. Status: {token.Status}, Exception message: {token.GetException()!.Message}"); 897if (NetEventSource.Log.IsEnabled()) 898NetEventSource.Info(this, "InitializeSecurityContext() returned 'CredentialsNeeded'."); 1006if (NetEventSource.Log.IsEnabled()) 1010NetEventSource.Info(this, $"TLS resumed {_connectionInfo.TlsResumed}"); 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) 1076NetEventSource.DumpBuffer(this, destination.Slice(0, bytesWritten)); 1081NetEventSource.DumpBuffer(this, _buffer.DecryptedSpan); 1230if (NetEventSource.Log.IsEnabled() && sslAuthenticationOptions.RemoteCertRequired) 1232NetEventSource.Error(sender, $"Remote certificate required, but no remote certificate received"); 1309if (NetEventSource.Log.IsEnabled()) 1312NetEventSource.Info(sender, $"Cert validation, remote cert = {remoteCertificateSlot}"); 1355if (NetEventSource.Log.IsEnabled()) 1356NetEventSource.Info(this, $"alertMessage:{alertMessage}"); 1363if (NetEventSource.Log.IsEnabled()) 1364NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1393if (NetEventSource.Log.IsEnabled()) 1394NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 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 (2)
103if (NetEventSource.Log.IsEnabled()) 105NetEventSource.Info(this, "TlsSession reported 'CredentialsNeeded'; reselecting client credentials.");
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}");