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();
238 references to NetEventSource
System.Net.Security (238)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (2)
587if (NetEventSource.Log.IsEnabled()) 589NetEventSource.Info(null, $"Default signature algorithms: {string.Join(":", result)}");
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)
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)
223if (NetEventSource.Log.IsEnabled()) NetEventSource.Log.SslStreamCtor(this, innerStream);
System\Net\Security\SslStream.IO.cs (21)
333if (NetEventSource.Log.IsEnabled()) 334NetEventSource.Log.SentFrame(this, token.Payload); 378if (NetEventSource.Log.IsEnabled()) 379NetEventSource.Log.SentFrame(this, payload.Span); 386if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, token.Status); 421if (NetEventSource.Log.IsEnabled()) 422NetEventSource.Log.SspiSelectedCipherSuite(nameof(ForceAuthenticationAsync), 451if (NetEventSource.Log.IsEnabled() && _lastFrame.AlertDescription != TlsAlertDescription.CloseNotify) NetEventSource.Error(this, $"Received TLS alert {_lastFrame.AlertDescription}"); 460TlsFrameHelper.ProcessingOptions options = NetEventSource.Log.IsEnabled() ? 473if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Failed to parse TLS hello."); 493if (NetEventSource.Log.IsEnabled()) 495NetEventSource.Log.ReceivedFrame(this, _lastFrame); 582if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"Ignoring unsolicited renegotiated certificate."); 915if (NetEventSource.Log.IsEnabled()) 916NetEventSource.Info(null, $"***Processing an error Status = {status}"); 1068if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, "invalid TLS frame size");
System\Net\Security\SslStream.Protocol.cs (84)
193if (NetEventSource.Log.IsEnabled()) 194NetEventSource.Log.LocatingPrivateKey(certificate, instance); 208if (NetEventSource.Log.IsEnabled()) 209NetEventSource.Log.CertIsType2(instance); 247if (NetEventSource.Log.IsEnabled()) 249NetEventSource.Log.FoundCertInStore(isServer, instance); 276if (NetEventSource.Log.IsEnabled()) 277NetEventSource.Log.NotFoundCertInStore(instance); 328if (NetEventSource.Log.IsEnabled()) 329NetEventSource.Log.CertificateFromCertContext(this); 337if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Selected cert = {_selectedClientCertificate}"); 342if (NetEventSource.Log.IsEnabled()) 343NetEventSource.Info(this, "Calling CertificateSelectionCallback"); 361if (NetEventSource.Log.IsEnabled()) 362NetEventSource.Log.CertificateFromDelegate(this); 368if (NetEventSource.Log.IsEnabled()) 369NetEventSource.Log.NoDelegateNoClientCert(this); 373if (NetEventSource.Log.IsEnabled()) 374NetEventSource.Log.NoDelegateButClientCert(this); 388if (NetEventSource.Log.IsEnabled()) 389NetEventSource.Log.AttemptingRestartUsingCert(clientCertificate, this); 398if (NetEventSource.Log.IsEnabled()) 402NetEventSource.Log.NoIssuersTryAllCerts(this); 406NetEventSource.Log.LookForMatchingCerts(issuers.Length, this); 428if (NetEventSource.Log.IsEnabled()) 429NetEventSource.Info(this, $"Root cert: {certificateEx}"); 450if (NetEventSource.Log.IsEnabled()) 451NetEventSource.Info(this, $"Matched {issuer}"); 454if (NetEventSource.Log.IsEnabled()) 455NetEventSource.Info(this, $"No match: {issuer}"); 484if (NetEventSource.Log.IsEnabled()) 485NetEventSource.Log.SelectedCert(_sslAuthenticationOptions.ClientCertificates[i], this); 493if (NetEventSource.Log.IsEnabled()) 497NetEventSource.Log.CertsAfterFiltering(filteredCerts.Count, this); 498NetEventSource.Log.FindingMatchingCerts(this); 502NetEventSource.Log.CertsAfterFiltering(0, this); 503NetEventSource.Info(this, "No client certificate to choose from"); 531if (NetEventSource.Log.IsEnabled()) NetEventSource.Info(this, $"Selected cert = {selectedCert}"); 619if (NetEventSource.Log.IsEnabled()) 620NetEventSource.Info(this, "Reset to anonymous session."); 638if (NetEventSource.Log.IsEnabled()) 639NetEventSource.Log.UsingCachedCredential(this); 688if (NetEventSource.Log.IsEnabled()) 689NetEventSource.Error(this, $"ServerCertSelectionDelegate returned no certificate 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."); 821if (NetEventSource.Log.IsEnabled()) 825NetEventSource.Error(this, $"Authentication failed. Status: {token.Status}, Exception message: {token.GetException()!.Message}"); 919if (NetEventSource.Log.IsEnabled()) 920NetEventSource.Info(this, "InitializeSecurityContext() returned 'CredentialsNeeded'."); 995if (NetEventSource.Log.IsEnabled()) 999NetEventSource.Info(this, $"TLS resumed {_connectionInfo.TlsResumed}"); 1006if (NetEventSource.Log.IsEnabled()) NetEventSource.DumpBuffer(this, buffer.Span); 1016if (NetEventSource.Log.IsEnabled()) NetEventSource.Error(this, $"ERROR {token.Status}"); 1025if (NetEventSource.Log.IsEnabled() && status.ErrorCode == SecurityStatusPalErrorCode.OK) 1027NetEventSource.DumpBuffer(this, buffer.Slice(outputOffset, outputCount)); 1074if (NetEventSource.Log.IsEnabled() && RemoteCertRequired) NetEventSource.Error(this, $"Remote certificate required, but no remote certificate received"); 1136if (NetEventSource.Log.IsEnabled()) 1139NetEventSource.Info(this, $"Cert validation, remote cert = {_remoteCertificate}"); 1204if (NetEventSource.Log.IsEnabled()) 1205NetEventSource.Info(this, $"alertMessage:{alertMessage}"); 1212if (NetEventSource.Log.IsEnabled()) 1213NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1231if (NetEventSource.Log.IsEnabled()) 1232NetEventSource.Info(this, $"ApplyAlertToken() returned {status.ErrorCode}"); 1301if (!NetEventSource.Log.IsEnabled()) 1306NetEventSource.Log.RemoteCertificateError(this, SR.net_log_remote_cert_has_errors); 1309NetEventSource.Log.RemoteCertificateError(this, SR.net_log_remote_cert_not_available); 1314NetEventSource.Log.RemoteCertificateError(this, SR.net_log_remote_cert_name_mismatch); 1324NetEventSource.Log.RemoteCertificateError(this, chainStatusString); 1332NetEventSource.Log.RemoteCertDeclaredValid(this); 1336NetEventSource.Log.RemoteCertHasNoErrors(this); 1343NetEventSource.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}");