System\Net\Security\SslStream.IO.cs (17)
25private object _handshakeLock => _sslAuthenticationOptions;
113NetSecurityTelemetry.Log.HandshakeStart(IsServer, _sslAuthenticationOptions.TargetHost);
205_sslAuthenticationOptions.RemoteCertRequired = true;
244CompleteHandshake(_sslAuthenticationOptions);
394CompleteHandshake(_sslAuthenticationOptions);
447_sslAuthenticationOptions!.IsServer) // guard against malicious endpoints. We should not see ClientHello on client.
452if (OperatingSystem.IsMacOS() && _sslAuthenticationOptions.IsServer)
465if (_sslAuthenticationOptions.ServerOptionDelegate != null)
482_sslAuthenticationOptions.TargetHost = _lastFrame.TargetName;
485if (_sslAuthenticationOptions.ServerOptionDelegate != null)
488await _sslAuthenticationOptions.ServerOptionDelegate(this, new SslClientHelloInfo(_sslAuthenticationOptions.TargetHost, _lastFrame.SupportedVersions),
489_sslAuthenticationOptions.UserState, cancellationToken).ConfigureAwait(false);
490_sslAuthenticationOptions.UpdateOptions(userOptions);
513if (_sslAuthenticationOptions!.IsServer && _securityContext == null)
623if (!VerifyRemoteCertificate(_sslAuthenticationOptions.CertificateContext?.Trust, ref alertToken, out sslPolicyErrors, out chainStatus))
637if (!VerifyRemoteCertificate(_sslAuthenticationOptions.CertificateContext?.Trust, ref alertToken, out sslPolicyErrors, out chainStatus))