3 writes to IsServer
System.Net.Security (3)
System\Net\Security\SslAuthenticationOptions.cs (3)
53
IsServer
= false;
84
IsServer
= true;
118
IsServer
= true;
19 references to IsServer
System.Net.Security (19)
src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (5)
258
if (sslAuthenticationOptions.
IsServer
)
278
if (sslAuthenticationOptions.
IsServer
&& sslAuthenticationOptions.ApplicationProtocols != null && sslAuthenticationOptions.ApplicationProtocols.Count != 0)
283
if (sslAuthenticationOptions.CertificateContext != null && sslAuthenticationOptions.
IsServer
)
394
sslHandle = SafeSslHandle.Create(sslCtxHandle, sslAuthenticationOptions.
IsServer
);
428
if (sslAuthenticationOptions.
IsServer
)
System\Net\Security\SslAuthenticationOptions.cs (1)
205
internal bool IsClient => !
IsServer
;
System\Net\Security\SslStream.cs (1)
479
public 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.
463
if (OperatingSystem.IsMacOS() && _sslAuthenticationOptions.
IsServer
)
System\Net\Security\SslStream.Protocol.cs (9)
519
if ((selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.
IsServer
, clientCertificate)) != null)
603
_sslAuthenticationOptions.
IsServer
,
731
selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.
IsServer
, localCertificate);
749
_sslAuthenticationOptions.
IsServer
,
869
cachedCreds = _sslAuthenticationOptions.
IsServer
874
if (_sslAuthenticationOptions.
IsServer
)
953
_sslAuthenticationOptions.
IsServer
,
1108
chain.ChainPolicy.ApplicationPolicy.Add(_sslAuthenticationOptions.
IsServer
? s_clientAuthOid : s_serverAuthOid);
1116
_sslAuthenticationOptions.
IsServer
,
System\Net\Security\SslStreamPal.Unix.cs (1)
223
if (errorCode == SecurityStatusPalErrorCode.OK && sslAuthenticationOptions.
IsServer