System\Net\Security\SslStream.IO.cs (17)
25private object _handshakeLock => _sslAuthenticationOptions;
113NetSecurityTelemetry.Log.HandshakeStart(IsServer, _sslAuthenticationOptions.TargetHost);
205_sslAuthenticationOptions.RemoteCertRequired = true;
244CompleteHandshake(_sslAuthenticationOptions);
386CompleteHandshake(_sslAuthenticationOptions);
439_sslAuthenticationOptions!.IsServer) // guard against malicious endpoints. We should not see ClientHello on client.
444if (OperatingSystem.IsMacOS() && _sslAuthenticationOptions.IsServer)
457if (_sslAuthenticationOptions.ServerOptionDelegate != null)
474_sslAuthenticationOptions.TargetHost = _lastFrame.TargetName;
477if (_sslAuthenticationOptions.ServerOptionDelegate != null)
480await _sslAuthenticationOptions.ServerOptionDelegate(this, new SslClientHelloInfo(_sslAuthenticationOptions.TargetHost, _lastFrame.SupportedVersions),
481_sslAuthenticationOptions.UserState, cancellationToken).ConfigureAwait(false);
482_sslAuthenticationOptions.UpdateOptions(userOptions);
505if (_sslAuthenticationOptions!.IsServer && _securityContext == null)
615if (!VerifyRemoteCertificate(_sslAuthenticationOptions.CertificateContext?.Trust, ref alertToken, out sslPolicyErrors, out chainStatus))
629if (!VerifyRemoteCertificate(_sslAuthenticationOptions.CertificateContext?.Trust, ref alertToken, out sslPolicyErrors, out chainStatus))