3 writes to IsServer
System.Net.Security (3)
System\Net\Security\SslAuthenticationOptions.cs (3)
52IsServer = false; 83IsServer = true; 117IsServer = true;
20 references to IsServer
System.Net.Security (20)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (5)
258if (sslAuthenticationOptions.IsServer) 278if (sslAuthenticationOptions.IsServer && sslAuthenticationOptions.ApplicationProtocols != null && sslAuthenticationOptions.ApplicationProtocols.Count != 0) 283if (sslAuthenticationOptions.CertificateContext != null && sslAuthenticationOptions.IsServer) 394sslHandle = SafeSslHandle.Create(sslCtxHandle, sslAuthenticationOptions.IsServer); 428if (sslAuthenticationOptions.IsServer)
System\Net\Security\SslAuthenticationOptions.cs (1)
201internal bool IsClient => !IsServer;
System\Net\Security\SslStream.cs (1)
479public override bool IsServer => _sslAuthenticationOptions.IsServer;
System\Net\Security\SslStream.IO.cs (2)
457_sslAuthenticationOptions!.IsServer) // guard against malicious endpoints. We should not see ClientHello on client. 463if (OperatingSystem.IsMacOS() && _sslAuthenticationOptions.IsServer)
System\Net\Security\SslStream.Protocol.cs (10)
488if ((selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.IsServer, clientCertificate)) != null) 572_sslAuthenticationOptions.IsServer, 700selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.IsServer, localCertificate); 718_sslAuthenticationOptions.IsServer, 838cachedCreds = _sslAuthenticationOptions.IsServer 843if (_sslAuthenticationOptions.IsServer) 922_sslAuthenticationOptions.IsServer, 1059if (_sslAuthenticationOptions.IsServer && !LocalAppContextSwitches.EnableServerAiaDownloads) 1082chain.ChainPolicy.ApplicationPolicy.Add(_sslAuthenticationOptions.IsServer ? s_clientAuthOid : s_serverAuthOid); 1090_sslAuthenticationOptions.IsServer,
System\Net\Security\SslStreamPal.Unix.cs (1)
223if (errorCode == SecurityStatusPalErrorCode.OK && sslAuthenticationOptions.IsServer