5 writes to _securityContext
System.Net.Security (5)
System\Net\Security\SslStream.Protocol.cs (5)
879ref _securityContext, 895ref _securityContext, 907ref _securityContext, 923ref _securityContext, 970ref _securityContext,
22 references to _securityContext
System.Net.Security (22)
System\Net\Security\SslStream.Protocol.cs (22)
96_localClientCertificateUsed = CertificateValidationPal.IsLocalCertificateUsed(_credentialsHandle, _securityContext!) 129if (_securityContext != null) 131result = SslStreamPal.QueryContextChannelBinding(_securityContext, kind); 150return !(_securityContext == null || _securityContext.IsInvalid); 170_securityContext?.Dispose(); 311issuers = CertificateValidationPal.GetRequestCertificateAuthorities(_securityContext!); 346remoteCert = CertificateValidationPal.GetRemoteCertificate(_securityContext); 587if (SslStreamPal.TryUpdateClintCertificate(_credentialsHandle, _securityContext, _sslAuthenticationOptions)) 856bool refreshCredentialNeeded = _securityContext == null; 887_securityContext!, 946if (!cachedCreds && _securityContext != null && !_securityContext.IsInvalid && _credentialsHandle != null && !_credentialsHandle.IsInvalid) 966Debug.Assert(_securityContext != null); 983SslStreamPal.QueryContextStreamSizes(_securityContext!, out StreamSizes streamSizes); 990SslStreamPal.QueryContextConnectionInfo(_securityContext!, ref _connectionInfo); 1006_securityContext!, 1021SecurityStatusPal status = SslStreamPal.DecryptMessage(_securityContext!, buffer, out outputOffset, out outputCount); 1049X509Certificate2? certificate = CertificateValidationPal.GetRemoteCertificate(_securityContext, ref chain, _sslAuthenticationOptions.CertificateChainPolicy); 1101_securityContext!, 1183status = SslStreamPal.ApplyAlertToken(_securityContext, TlsAlertType.Fatal, alertMessage); 1202status = SslStreamPal.ApplyShutdownToken(_securityContext!);