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

◆ GetOutgoingBlob()

byte[] System.Net.Security.NegotiateStream.GetOutgoingBlob ( byte[] incomingBlob,
ref Exception e )
inlineprivate

Definition at line 974 of file NegotiateStream.cs.

975 {
976 SecurityStatusPal statusCode;
977 byte[] array = _context.GetOutgoingBlob(incomingBlob, throwOnError: false, out statusCode);
978 if (IsError(statusCode))
979 {
980 e = NegotiateStreamPal.CreateExceptionFromError(statusCode);
981 uint num = (uint)e.HResult;
982 array = new byte[8];
983 for (int num2 = array.Length - 1; num2 >= 0; num2--)
984 {
985 array[num2] = (byte)(num & 0xFFu);
986 num >>= 8;
987 }
988 }
989 if (array != null && array.Length == 0)
990 {
992 }
993 return array;
994 }
string GetOutgoingBlob(string incomingBlob)
static bool IsError(SecurityStatusPal status)
static readonly byte[] s_emptyMessage

References System.Net.Security.NegotiateStream._context, System.array, System.Net.Security.NegotiateStreamPal.CreateExceptionFromError(), System.Net.NTAuthentication.GetOutgoingBlob(), System.Net.Security.NegotiateStream.IsError(), and System.Net.Security.NegotiateStream.s_emptyMessage.

Referenced by System.Net.Security.NegotiateStream.SendBlobAsync< TAdapter >().