3 writes to IsServer
System.Net.Security (3)
System\Net\Security\SslAuthenticationOptions.cs (3)
53IsServer = false; 84IsServer = true; 118IsServer = true;
19 references to IsServer
System.Net.Security (19)
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)
205internal 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 (9)
519if ((selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.IsServer, clientCertificate)) != null) 603_sslAuthenticationOptions.IsServer, 731selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.IsServer, localCertificate); 749_sslAuthenticationOptions.IsServer, 869cachedCreds = _sslAuthenticationOptions.IsServer 874if (_sslAuthenticationOptions.IsServer) 953_sslAuthenticationOptions.IsServer, 1108chain.ChainPolicy.ApplicationPolicy.Add(_sslAuthenticationOptions.IsServer ? s_clientAuthOid : s_serverAuthOid); 1116_sslAuthenticationOptions.IsServer,
System\Net\Security\SslStreamPal.Unix.cs (1)
223if (errorCode == SecurityStatusPalErrorCode.OK && sslAuthenticationOptions.IsServer