3 writes to IsServer
System.Net.Security (3)
System\Net\Security\SslAuthenticationOptions.cs (3)
50IsServer = false; 70IsServer = true; 104IsServer = true;
19 references to IsServer
System.Net.Security (19)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (5)
254if (sslAuthenticationOptions.IsServer) 274if (sslAuthenticationOptions.IsServer && sslAuthenticationOptions.ApplicationProtocols != null && sslAuthenticationOptions.ApplicationProtocols.Count != 0) 279if (sslAuthenticationOptions.CertificateContext != null && sslAuthenticationOptions.IsServer) 390sslHandle = SafeSslHandle.Create(sslCtxHandle, sslAuthenticationOptions.IsServer); 419if (sslAuthenticationOptions.IsServer)
System\Net\Security\SslAuthenticationOptions.cs (1)
173internal 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, 730selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.IsServer, localCertificate); 749_sslAuthenticationOptions.IsServer, 867cachedCreds = _sslAuthenticationOptions.IsServer 872if (_sslAuthenticationOptions.IsServer) 951_sslAuthenticationOptions.IsServer, 1096chain.ChainPolicy.ApplicationPolicy.Add(_sslAuthenticationOptions.IsServer ? s_clientAuthOid : s_serverAuthOid); 1104_sslAuthenticationOptions.IsServer,
System\Net\Security\SslStreamPal.Unix.cs (1)
222if (errorCode == SecurityStatusPalErrorCode.OK && sslAuthenticationOptions.IsServer