3 writes to IsServer
System.Net.Security (3)
System\Net\Security\SslAuthenticationOptions.cs (3)
50
IsServer
= false;
70
IsServer
= true;
104
IsServer
= true;
19 references to IsServer
System.Net.Security (19)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (5)
249
if (sslAuthenticationOptions.
IsServer
)
267
if (sslAuthenticationOptions.
IsServer
&& sslAuthenticationOptions.ApplicationProtocols != null && sslAuthenticationOptions.ApplicationProtocols.Count != 0)
272
if (sslAuthenticationOptions.CertificateContext != null && sslAuthenticationOptions.
IsServer
)
383
sslHandle = SafeSslHandle.Create(sslCtxHandle, sslAuthenticationOptions.
IsServer
);
393
if (sslAuthenticationOptions.
IsServer
)
System\Net\Security\SslAuthenticationOptions.cs (1)
173
internal bool IsClient => !
IsServer
;
System\Net\Security\SslStream.cs (1)
479
public 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.
438
if (OperatingSystem.IsMacOS() && _sslAuthenticationOptions.
IsServer
)
System\Net\Security\SslStream.Protocol.cs (9)
516
if ((selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.
IsServer
, clientCertificate)) != null)
604
_sslAuthenticationOptions.
IsServer
,
731
selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.
IsServer
, localCertificate);
750
_sslAuthenticationOptions.
IsServer
,
868
cachedCreds = _sslAuthenticationOptions.
IsServer
873
if (_sslAuthenticationOptions.
IsServer
)
952
_sslAuthenticationOptions.
IsServer
,
1097
chain.ChainPolicy.ApplicationPolicy.Add(_sslAuthenticationOptions.
IsServer
? s_clientAuthOid : s_serverAuthOid);
1105
_sslAuthenticationOptions.
IsServer
,
System\Net\Security\SslStreamPal.Unix.cs (1)
222
if (errorCode == SecurityStatusPalErrorCode.OK && sslAuthenticationOptions.
IsServer