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

◆ NextMessage()

ProtocolToken System.Net.Security.SecureChannel.NextMessage ( ReadOnlySpan< byte > incomingBuffer)
inlinepackage

Definition at line 543 of file SecureChannel.cs.

544 {
545 byte[] output = null;
548 {
549 if (System.Net.NetEventSource.Log.IsEnabled())
550 {
551 System.Net.NetEventSource.Info(this, "NextMessage() returned SecurityStatusPal.CredentialsNeeded", "NextMessage");
552 }
555 }
556 ProtocolToken protocolToken = new ProtocolToken(output, securityStatusPal);
557 if (System.Net.NetEventSource.Log.IsEnabled() && protocolToken.Failed)
558 {
559 System.Net.NetEventSource.Error(this, $"Authentication failed. Status: {securityStatusPal}, Exception message: {protocolToken.GetException().Message}", "NextMessage");
560 }
561 return protocolToken;
562 }
static readonly System.Net.NetEventSource Log
static void Info(object thisOrContextObject, FormattableString formattableString=null, [CallerMemberName] string memberName=null)
static void Error(object thisOrContextObject, FormattableString formattableString, [CallerMemberName] string memberName=null)
SecurityStatusPal GenerateToken(ReadOnlySpan< byte > inputBuffer, ref byte[] output)
readonly SslAuthenticationOptions _sslAuthenticationOptions

References System.Net.Security.SecureChannel._sslAuthenticationOptions, System.Net.NetEventSource.Error(), System.Net.Security.SecureChannel.GenerateToken(), System.Net.NetEventSource.Info(), System.Net.Security.SslAuthenticationOptions.IsServer, System.Net.NetEventSource.Log, and System.Net.Security.SecureChannel.SetRefreshCredentialNeeded().

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