Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CompleteHandshake() [1/2]

bool System.Net.Security.SslStream.CompleteHandshake ( ref ProtocolToken alertToken,
out SslPolicyErrors sslPolicyErrors,
out X509ChainStatusFlags chainStatus )
inlineprivate

Definition at line 1331 of file SslStream.cs.

1332 {
1334 if (_nestedAuth != 1)
1335 {
1336 if (System.Net.NetEventSource.Log.IsEnabled())
1337 {
1338 System.Net.NetEventSource.Error(this, $"Ignoring unsolicited renegotiated certificate.", "CompleteHandshake");
1339 }
1340 sslPolicyErrors = SslPolicyErrors.None;
1341 chainStatus = X509ChainStatusFlags.NoError;
1342 return true;
1343 }
1345 {
1346 _handshakeCompleted = false;
1347 return false;
1348 }
1349 _handshakeCompleted = true;
1350 return true;
1351 }
static readonly System.Net.NetEventSource Log
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
bool VerifyRemoteCertificate(RemoteCertificateValidationCallback remoteCertValidationCallback, SslCertificateTrust trust, ref ProtocolToken alertToken, out SslPolicyErrors sslPolicyErrors, out X509ChainStatusFlags chainStatus)
RemoteCertificateValidationCallback CertValidationDelegate
SslAuthenticationOptions _sslAuthenticationOptions
Definition SslStream.cs:62

References System.Net.Security.SslStream._context, System.Net.Security.SslStream._handshakeCompleted, System.Net.Security.SslStream._nestedAuth, System.Net.Security.SslStream._sslAuthenticationOptions, System.Net.Security.SslAuthenticationOptions.CertificateContext, System.Net.Security.SslAuthenticationOptions.CertValidationDelegate, System.Net.NetEventSource.Error(), System.Net.NetEventSource.Log, System.Net.Security.SecureChannel.ProcessHandshakeSuccess(), System.Net.Security.SslStreamCertificateContext.Trust, and System.Net.Security.SecureChannel.VerifyRemoteCertificate().

Referenced by System.Net.Security.SslStream.CompleteHandshake(), System.Net.Security.SslStream.ForceAuthenticationAsync< TIOAdapter >(), and System.Net.Security.SslStream.RenegotiateAsync< TIOAdapter >().