1 instantiation of NetEventSource
System.Net.Security (1)
src\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38public static readonly NetEventSource Log = new NetEventSource();
236 references to NetEventSource
System.Net.Security (236)
src\libraries\Common\src\System\Net\DebugSafeHandle.cs (2)
35if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, _trace);
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\libraries\Common\src\System\Net\Logging\NetEventSource.Common.cs (1)
38public static readonly NetEventSource Log = new NetEventSource();
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\libraries\Common\src\System\Net\Security\SslKeyLogger.cs (2)
34if (NetEventSource.Log.IsEnabled()) 36NetEventSource.Error(null, $"Failed to open SSL key log file '{s_keyLogFile}': {ex}");
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)
228if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"package={clientOptions.Package}, spn={_spn}, requiredProtectionLevel={_protectionLevel}"); 240if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, SR.net_ntlm_not_possible_default_cred);
System\Net\NegotiateAuthenticationPal.Unix.cs (40)
52if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, gex); 75if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(null, gex); 146if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 194if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Peer SPN-> '{_spn}'"); 200if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "using DefaultCredentials"); 205if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_ntlm_not_possible_default_cred); 210if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_nego_not_supported_empty_target_with_defaultcreds); 242if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Peer SPN-> '{_spn}'"); 248if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, "using DefaultCredentials"); 285if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SSPIWrapper.InitializeSecurityContext() returns statusCode:{statusCode}"); 300if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"SSPIWrapper.AcceptSecurityContext() returns statusCode:{statusCode}"); 326if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"need continue _securityContext:{_securityContext}"); 511if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 565if (NetEventSource.Log.IsEnabled()) 573NetEventSource.Info(this, $"requested protocol = {protocol}, target = {spn}"); 632if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, gex); 642if (NetEventSource.Log.IsEnabled()) 650NetEventSource.Info(this, $"actual protocol = {protocol}"); 666if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex); 704if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, gex); 719if (NetEventSource.Log.IsEnabled()) 722NetEventSource.Info(this, $"AcceptSecurityContext: actual protocol = {protocol}"); 738if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, ex);
System\Net\Security\NegotiateAuthentication.cs (20)
410if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_kerberos); 416if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_disabled); 422if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_cbt); 428if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spns); 438if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_no_spn_whensupported); 443if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_spn_failed_always); 448if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, SR.net_log_listener_spn, clientSpn); 451if (NetEventSource.Log.IsEnabled()) 455NetEventSource.Info(this, SR.net_log_listener_spn_passed); 459NetEventSource.Info(this, SR.net_log_listener_spn_failed); 463NetEventSource.Info(this, SR.net_log_listener_spn_failed_empty); 467NetEventSource.Info(this, SR.net_log_listener_spn_failed_dump); 470NetEventSource.Info(this, "\t" + serviceName);
System\Net\Security\SslSessionsCache.cs (16)
110if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found, Current Cache Count = {s_cachedCreds.Count}"); 120if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Not found or invalid, Current Cache Count = {s_cachedCreds.Count}"); 124if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Found a cached Handle = {credentials}"); 153if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Refused to cache an Invalid Handle {creds}, Current Cache Count = {s_cachedCreds.Count}"); 178if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Caching New Handle = {creds}, Current Cache Count = {s_cachedCreds.Count}"); 185if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"CacheCredential() (locked retry) Found already cached Handle = {credentials}"); 191if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"CacheCredential() Ignoring incoming handle = {creds} since found already cached Handle = {credentials}"); 234if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(null, $"Scavenged cache, New Cache Count = {s_cachedCreds.Count}");
System\Net\Security\SslStream.cs (2)
223if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.SslStreamCtor(this, innerStream);
System\Net\Security\SslStream.IO.cs (21)
308if (NetEventSource.Log.IsEnabled()) 309NetEventSource.Log.SentFrame(this, token.Payload); 353if (NetEventSource.Log.IsEnabled()) 354NetEventSource.Log.SentFrame(this, payload.Span); 361if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, token.Status); 396if (NetEventSource.Log.IsEnabled()) 397NetEventSource.Log.SspiSelectedCipherSuite(nameof(ForceAuthenticationAsync), 426if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}"); 435TlsFrameHelper.ProcessingOptions options = NetEventSource.Log.IsEnabled() ? 448if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Failed to parse TLS hello."); 468if (NetEventSource.Log.IsEnabled()) 470NetEventSource.Log.ReceivedFrame(this, _lastFrame); 557if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Ignoring unsolicited renegotiated certificate."); 882if (NetEventSource.Log.IsEnabled()) 883NetEventSource.Info(null, $"***Processing an error Status = {status}"); 1026if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, "invalid TLS frame size");
System\Net\Security\SslStream.Protocol.cs (84)
189if (NetEventSource.Log.IsEnabled()) 190NetEventSource.Log.LocatingPrivateKey(certificate, instance); 201if (NetEventSource.Log.IsEnabled()) 202NetEventSource.Log.CertIsType2(instance); 239if (NetEventSource.Log.IsEnabled()) 241NetEventSource.Log.FoundCertInStore(isServer, instance); 273if (NetEventSource.Log.IsEnabled()) 274NetEventSource.Log.NotFoundCertInStore(instance); 325if (NetEventSource.Log.IsEnabled()) 326NetEventSource.Log.CertificateFromCertContext(this); 334if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Selected cert = {_selectedClientCertificate}"); 339if (NetEventSource.Log.IsEnabled()) 340NetEventSource.Info(this, "Calling CertificateSelectionCallback"); 358if (NetEventSource.Log.IsEnabled()) 359NetEventSource.Log.CertificateFromDelegate(this); 365if (NetEventSource.Log.IsEnabled()) 366NetEventSource.Log.NoDelegateNoClientCert(this); 370if (NetEventSource.Log.IsEnabled()) 371NetEventSource.Log.NoDelegateButClientCert(this); 385if (NetEventSource.Log.IsEnabled()) 386NetEventSource.Log.AttemptingRestartUsingCert(clientCertificate, this); 395if (NetEventSource.Log.IsEnabled()) 399NetEventSource.Log.NoIssuersTryAllCerts(this); 403NetEventSource.Log.LookForMatchingCerts(issuers.Length, this); 425if (NetEventSource.Log.IsEnabled()) 426NetEventSource.Info(this, $"Root cert: {certificateEx}"); 447if (NetEventSource.Log.IsEnabled()) 448NetEventSource.Info(this, $"Matched {issuer}"); 451if (NetEventSource.Log.IsEnabled()) 452NetEventSource.Info(this, $"No match: {issuer}"); 481if (NetEventSource.Log.IsEnabled()) 482NetEventSource.Log.SelectedCert(_sslAuthenticationOptions.ClientCertificates[i], this); 490if (NetEventSource.Log.IsEnabled()) 494NetEventSource.Log.CertsAfterFiltering(filteredCerts.Count, this); 495NetEventSource.Log.FindingMatchingCerts(this); 499NetEventSource.Log.CertsAfterFiltering(0, this); 500NetEventSource.Info(this, "No client certificate to choose from"); 528if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Selected cert = {selectedCert}"); 618if (NetEventSource.Log.IsEnabled()) 619NetEventSource.Info(this, "Reset to anonymous session."); 637if (NetEventSource.Log.IsEnabled()) 638NetEventSource.Log.UsingCachedCredential(this); 688if (NetEventSource.Log.IsEnabled()) 689NetEventSource.Error(this, $"ServerCertSelectionDelegate returned no certificaete for '{_sslAuthenticationOptions.TargetHost}'."); 693if (NetEventSource.Log.IsEnabled()) 694NetEventSource.Info(this, "ServerCertSelectionDelegate selected Cert"); 704if (NetEventSource.Log.IsEnabled()) 705NetEventSource.Error(this, $"CertSelectionDelegate returned no certificaete for '{_sslAuthenticationOptions.TargetHost}'."); 709if (NetEventSource.Log.IsEnabled()) 710NetEventSource.Info(this, "CertSelectionDelegate selected Cert"); 723if (NetEventSource.Log.IsEnabled()) 724NetEventSource.Error(this, "Certiticate callback returned no certificaete."); 820if (NetEventSource.Log.IsEnabled()) 824NetEventSource.Error(this, $"Authentication failed. Status: {token.Status}, Exception message: {token.GetException()!.Message}"); 918if (NetEventSource.Log.IsEnabled()) 919NetEventSource.Info(this, "InitializeSecurityContext() returned 'CredentialsNeeded'."); 992if (NetEventSource.Log.IsEnabled()) 996NetEventSource.Info(this, $"TLS resumed {_connectionInfo.TlsResumed}"); 1003if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer.Span); 1013if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"ERROR {token.Status}"); 1022if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1024NetEventSource.DumpBuffer(this, buffer.Slice(outputOffset, outputCount)); 1063if (NetEventSource.Log.IsEnabled() && RemoteCertRequired) NetEventSource.Error(this, $"Remote certificate required, but no remote certificate received"); 1123if (NetEventSource.Log.IsEnabled()) 1126NetEventSource.Info(this, $"Cert validation, remote cert = {_remoteCertificate}"); 1179if (NetEventSource.Log.IsEnabled()) 1180NetEventSource.Info(this, $"alertMessage:{alertMessage}"); 1187if (NetEventSource.Log.IsEnabled()) 1188NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1206if (NetEventSource.Log.IsEnabled()) 1207NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1276if (!NetEventSource.Log.IsEnabled()) 1281NetEventSource.Log.RemoteCertificateError(this, SR.net_log_remote_cert_has_errors); 1284NetEventSource.Log.RemoteCertificateError(this, SR.net_log_remote_cert_not_available); 1289NetEventSource.Log.RemoteCertificateError(this, SR.net_log_remote_cert_name_mismatch); 1299NetEventSource.Log.RemoteCertificateError(this, chainStatusString); 1307NetEventSource.Log.RemoteCertDeclaredValid(this); 1311NetEventSource.Log.RemoteCertHasNoErrors(this); 1318NetEventSource.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)
135if (NetEventSource.Log.IsEnabled()) 137NetEventSource.Info(this, $"Got OCSP response."); 146if (NetEventSource.Log.IsEnabled()) 148NetEventSource.Info(this, "No OCSP response available."); 164if (NetEventSource.Log.IsEnabled()) 166NetEventSource.Info(this, "Cached OCSP response expired, fetching fresh staple."); 173if (NetEventSource.Log.IsEnabled()) 175NetEventSource.Info(this, "Starting async refresh of OCSP staple"); 207if (NetEventSource.Log.IsEnabled()) 209NetEventSource.Info(this, $"Pending download task exists."); 248if (NetEventSource.Log.IsEnabled()) 250NetEventSource.Info(this, $"Starting new OCSP download task."); 334if (NetEventSource.Log.IsEnabled()) 336NetEventSource.Info(this, $"Received {ret.Length} B OCSP response, Expiration: {_ocspExpiration}, Next refresh: {_nextDownload}"); 357if (NetEventSource.Log.IsEnabled()) 359NetEventSource.Info(this, $"OCSP response fetch failed, backing off, Next refresh = {_nextDownload}"); 368if (NetEventSource.Log.IsEnabled()) 370NetEventSource.Error(this, $"OCSP refresh failed: {ex}");