terraria-cpp2il-methodrecon v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
NegotiateStreamPal.cs
Go to the documentation of this file.
1using System;
6
8{
9 // Token: 0x02000310 RID: 784
10 internal static class NegotiateStreamPal
11 {
12 // Token: 0x06001475 RID: 5237 RVA: 0x00002050 File Offset: 0x00000250
14 {
15 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
16 }
17
18 // Token: 0x06001476 RID: 5238 RVA: 0x0003E478 File Offset: 0x0003C678
23
24 // Token: 0x06001477 RID: 5239 RVA: 0x0003E48C File Offset: 0x0003C68C
25 private static byte[] GssWrap(Microsoft.Win32.SafeHandles.SafeGssContextHandle context, bool encrypt, byte[] buffer, int offset, int count)
26 {
27 global::Interop.NetSecurityNative.Status status;
28 if (status == global::Interop.NetSecurityNative.Status.GSS_S_COMPLETE)
29 {
30 byte[] array;
31 return array;
32 }
33 throw new OutOfMemoryException();
34 }
35
36 // Token: 0x06001478 RID: 5240 RVA: 0x0003E4AC File Offset: 0x0003C6AC
37 private static int GssUnwrap(Microsoft.Win32.SafeHandles.SafeGssContextHandle context, byte[] buffer, int offset, int count)
38 {
39 global::Interop.NetSecurityNative.Status status;
40 if (status == global::Interop.NetSecurityNative.Status.GSS_S_COMPLETE)
41 {
42 int num;
43 return num;
44 }
45 throw new OutOfMemoryException();
46 }
47
48 // Token: 0x06001479 RID: 5241 RVA: 0x0003E4D0 File Offset: 0x0003C6D0
49 private static bool GssInitSecurityContext(Microsoft.Win32.SafeHandles.SafeGssContextHandle context, Microsoft.Win32.SafeHandles.SafeGssCredHandle credential, bool isNtlm, Microsoft.Win32.SafeHandles.SafeGssNameHandle targetName, global::Interop.NetSecurityNative.GssFlags inFlags, byte[] buffer, [Out] byte[] outputBuffer, [Out] uint outFlags, [Out] int isNtlmUsed)
50 {
51 if (!true)
52 {
53 }
54 if (inFlags != (global::Interop.NetSecurityNative.GssFlags)0U)
55 {
56 }
57 byte[] array;
59 throw new OutOfMemoryException();
60 }
61
62 // Token: 0x0600147A RID: 5242 RVA: 0x0003E4FC File Offset: 0x0003C6FC
64 {
65 if (inFlags != ContextFlagsPal.None)
66 {
67 }
68 byte[] token = inputBuffer.token;
69 inputBuffer.size = token;
70 if (token == null)
71 {
72 }
73 if (token != null)
74 {
75 bool flag = Convert.ToBoolean(0);
76 int size = inputBuffer.size;
77 }
78 throw new InvalidCastException();
79 }
80
81 // Token: 0x0600147B RID: 5243 RVA: 0x0003E554 File Offset: 0x0003C754
93
94 // Token: 0x0600147C RID: 5244 RVA: 0x00002050 File Offset: 0x00000250
96 {
97 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
98 }
99
100 // Token: 0x0600147D RID: 5245 RVA: 0x0003E57C File Offset: 0x0003C77C
101 internal static global::System.ComponentModel.Win32Exception CreateExceptionFromError(SecurityStatusPal statusCode)
102 {
103 /*
104An exception occurred when decompiling this method (0600147D)
105
106ICSharpCode.Decompiler.DecompilerException: Error decompiling System.ComponentModel.Win32Exception System.Net.Security.NegotiateStreamPal::CreateExceptionFromError(System.Net.SecurityStatusPal)
107
108 ---> System.Exception: Basic block has to end with unconditional control flow.
109{
110 IL_0000:
111 brtrue(IL_0000, logicnot:bool(ldloc:SecurityStatusPal[exp:bool](statusCode)))
112}
113
114 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1852
115 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
116 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
117 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
118 at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.Optimize(DecompilerContext context, ILBlock method, AutoPropertyProvider autoPropertyProvider, StateMachineKind& stateMachineKind, MethodDef& inlinedMethod, AsyncMethodDebugInfo& asyncInfo, ILAstOptimizationStep abortBeforeStep) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 355
119 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(IEnumerable`1 parameters, MethodDebugInfoBuilder& builder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 123
120 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 88
121 --- End of inner exception stack trace ---
122 at ICSharpCode.Decompiler.Ast.AstMethodBodyBuilder.CreateMethodBody(MethodDef methodDef, DecompilerContext context, AutoPropertyProvider autoPropertyProvider, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, StringBuilder sb, MethodDebugInfoBuilder& stmtsBuilder) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstMethodBodyBuilder.cs:line 92
123 at ICSharpCode.Decompiler.Ast.AstBuilder.AddMethodBody(EntityDeclaration methodNode, EntityDeclaration& updatedNode, MethodDef method, IEnumerable`1 parameters, Boolean valueParameterIsKeyword, MethodKind methodKind) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\Ast\AstBuilder.cs:line 1683
124*/;
125 }
126
127 // Token: 0x0600147E RID: 5246 RVA: 0x0003E58C File Offset: 0x0003C78C
128 internal static int QueryMaxTokenSize(string package)
129 {
130 }
131
132 // Token: 0x0600147F RID: 5247 RVA: 0x0003E59C File Offset: 0x0003C79C
138
139 // Token: 0x06001480 RID: 5248 RVA: 0x0003E5AC File Offset: 0x0003C7AC
141 {
142 string text;
143 bool flag = string.IsNullOrWhiteSpace(text);
144 int num = 1;
145 string text2;
146 bool flag2 = string.IsNullOrWhiteSpace(text2);
147 if (num != 0)
148 {
149 }
150 return "Server implementation is not supported";
151 }
152
153 // Token: 0x06001481 RID: 5249 RVA: 0x00002050 File Offset: 0x00000250
155 {
156 throw new global::Cpp2IlInjected.AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
157 }
158
159 // Token: 0x06001482 RID: 5250 RVA: 0x0003E5D8 File Offset: 0x0003C7D8
160 internal static int VerifySignature(SafeDeleteContext securityContext, byte[] buffer, int offset, int count)
161 {
162 if (securityContext != null)
163 {
164 int state = securityContext._state;
165 }
166 if (securityContext != null)
167 {
168 int state2 = securityContext._state;
169 }
170 int num;
171 return num;
172 }
173
174 // Token: 0x06001483 RID: 5251 RVA: 0x0003E620 File Offset: 0x0003C820
175 internal static int MakeSignature(SafeDeleteContext securityContext, byte[] buffer, int offset, int count, byte[] output)
176 {
177 throw new InvalidCastException();
178 }
179 }
180}
class f__AnonymousType0<< Count > j__TPar
static bool ToBoolean(object value, IFormatProvider provider)
Definition Convert.cs:214
static string QueryContextClientSpecifiedSpn(SafeDeleteContext securityContext)
static int VerifySignature(SafeDeleteContext securityContext, byte[] buffer, int offset, int count)
static SecurityStatusPal EstablishSecurityContext(SafeFreeNegoCredentials credential, SafeDeleteContext context, string targetName, ContextFlagsPal inFlags, SecurityBuffer inputBuffer, SecurityBuffer outputBuffer, ContextFlagsPal outFlags)
static SecurityStatusPal InitializeSecurityContext(SafeFreeCredentials credentialsHandle, SafeDeleteContext securityContext, string spn, ContextFlagsPal requestedContextFlags, SecurityBuffer[] inSecurityBufferArray, SecurityBuffer outSecurityBuffer, ContextFlagsPal contextFlags)
static global::System.ComponentModel.Win32Exception CreateExceptionFromError(SecurityStatusPal statusCode)
static byte[] GssWrap(Microsoft.Win32.SafeHandles.SafeGssContextHandle context, bool encrypt, byte[] buffer, int offset, int count)
static int QueryMaxTokenSize(string package)
static bool GssInitSecurityContext(Microsoft.Win32.SafeHandles.SafeGssContextHandle context, Microsoft.Win32.SafeHandles.SafeGssCredHandle credential, bool isNtlm, Microsoft.Win32.SafeHandles.SafeGssNameHandle targetName, global::Interop.NetSecurityNative.GssFlags inFlags, byte[] buffer, [Out] byte[] outputBuffer, [Out] uint outFlags, [Out] int isNtlmUsed)
static SecurityStatusPal CompleteAuthToken(SafeDeleteContext securityContext, SecurityBuffer[] inSecurityBufferArray)
static int GssUnwrap(Microsoft.Win32.SafeHandles.SafeGssContextHandle context, byte[] buffer, int offset, int count)
static SecurityStatusPal AcceptSecurityContext(SafeFreeCredentials credentialsHandle, SafeDeleteContext securityContext, ContextFlagsPal requestedContextFlags, SecurityBuffer[] inSecurityBufferArray, SecurityBuffer outSecurityBuffer, ContextFlagsPal contextFlags)
static int MakeSignature(SafeDeleteContext securityContext, byte[] buffer, int offset, int count, byte[] output)
static SafeFreeCredentials AcquireCredentialsHandle(string package, bool isServer, NetworkCredential credential)
static SafeFreeCredentials AcquireDefaultCredential(string package, bool isServer)
static string QueryContextAuthenticationPackage(SafeDeleteContext securityContext)