7 writes to IsServer
System.Net.Security (7)
System\Net\Security\CipherSuitesPolicyPal.Linux.cs (1)
39
using (SafeSslHandle ssl = SafeSslHandle.Create(innerContext, new SslAuthenticationOptions() {
IsServer
= false }))
System\Net\Security\SslAuthenticationOptions.cs (5)
67
IsServer
= false;
98
IsServer
= true;
132
IsServer
= true;
223
IsServer
= IsServer,
259
IsServer
= other.IsServer;
System\Net\Security\TlsContext.cs (1)
129
bag.
IsServer
= true;
27 references to IsServer
System.Net.Security (27)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.OpenSsl.cs (3)
270
if (sslAuthenticationOptions.
IsServer
)
290
if (sslAuthenticationOptions.
IsServer
&& sslAuthenticationOptions.ApplicationProtocols != null && sslAuthenticationOptions.ApplicationProtocols.Count != 0)
295
if (sslAuthenticationOptions.CertificateContext != null && sslAuthenticationOptions.
IsServer
)
src\runtime\src\libraries\Common\src\Interop\Unix\System.Security.Cryptography.Native\Interop.Ssl.cs (2)
578
handle._isServer = options.
IsServer
;
617
if (options.
IsServer
)
System\Net\Security\SslAuthenticationOptions.cs (3)
223
IsServer =
IsServer
,
259
IsServer = other.
IsServer
;
285
internal bool IsClient => !
IsServer
;
System\Net\Security\SslStream.cs (1)
484
public override bool IsServer => _sslAuthenticationOptions.
IsServer
;
System\Net\Security\SslStream.IO.cs (3)
470
_sslAuthenticationOptions!.
IsServer
) // guard against malicious endpoints. We should not see ClientHello on client.
475
if (OperatingSystem.IsMacOS() && _sslAuthenticationOptions.
IsServer
)
536
if (_sslAuthenticationOptions!.
IsServer
&& _securityContext == null)
System\Net\Security\SslStream.Protocol.cs (10)
489
if ((selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.
IsServer
, clientCertificate)) != null)
573
_sslAuthenticationOptions.
IsServer
,
701
selectedCert = FindCertificateWithPrivateKey(this, _sslAuthenticationOptions.
IsServer
, localCertificate);
719
_sslAuthenticationOptions.
IsServer
,
850
cachedCreds = _sslAuthenticationOptions.
IsServer
855
if (_sslAuthenticationOptions.
IsServer
)
941
_sslAuthenticationOptions.
IsServer
,
1249
if (sslAuthenticationOptions.
IsServer
&& !LocalAppContextSwitches.EnableServerAiaDownloads)
1272
chain.ChainPolicy.ApplicationPolicy.Add(sslAuthenticationOptions.
IsServer
? s_clientAuthOid : s_serverAuthOid);
1280
sslAuthenticationOptions.
IsServer
,
System\Net\Security\SslStream.TlsSessionWedge.cs (2)
59
if (_sslAuthenticationOptions!.
IsServer
)
140
_sslAuthenticationOptions.
IsServer
,
System\Net\Security\TlsContext.cs (2)
99
internal bool IsServer => Options.
IsServer
;
166
return new TlsContext(sharedOptions, isWedge: true, templateHasServerOptions: sharedOptions.
IsServer
);
System\Net\Security\TlsContext.OpenSsl.cs (1)
37
if (options.
IsServer
&& options.CertificateContext is null)