3 writes to IsServer
System.Net.Security (3)
System\Net\Security\SslAuthenticationOptions.cs (3)
57IsServer = false; 88IsServer = true; 122IsServer = true;
19 references to IsServer
System.Net.Security (19)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (5)
257if (sslAuthenticationOptions.IsServer) 277if (sslAuthenticationOptions.IsServer && sslAuthenticationOptions.ApplicationProtocols != null && sslAuthenticationOptions.ApplicationProtocols.Count != 0) 282if (sslAuthenticationOptions.CertificateContext != null && sslAuthenticationOptions.IsServer) 393sslHandle = SafeSslHandle.Create(sslCtxHandle, sslAuthenticationOptions.IsServer); 427if (sslAuthenticationOptions.IsServer)
System\Net\Security\SslAuthenticationOptions.cs (1)
203internal bool IsClient => !IsServer;
System\Net\Security\SslStream.cs (1)
479public override bool IsServer => _sslAuthenticationOptions.IsServer;
System\Net\Security\SslStream.IO.cs (2)
432_sslAuthenticationOptions!.IsServer) // guard against malicious endpoints. We should not see ClientHello on client. 438if (OperatingSystem.IsMacOS() && _sslAuthenticationOptions.IsServer)
System\Net\Security\SslStream.Protocol.cs (9)
515if ((selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.IsServer, clientCertificate)) != null) 603_sslAuthenticationOptions.IsServer, 732selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.IsServer, localCertificate); 750_sslAuthenticationOptions.IsServer, 870cachedCreds = _sslAuthenticationOptions.IsServer 875if (_sslAuthenticationOptions.IsServer) 954_sslAuthenticationOptions.IsServer, 1102chain.ChainPolicy.ApplicationPolicy.Add(_sslAuthenticationOptions.IsServer ? s_clientAuthOid : s_serverAuthOid); 1110_sslAuthenticationOptions.IsServer,
System\Net\Security\SslStreamPal.Unix.cs (1)
222if (errorCode == SecurityStatusPalErrorCode.OK && sslAuthenticationOptions.IsServer