a
This commit is contained in:
+143
@@ -0,0 +1,143 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Zlib;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls
|
||||
{
|
||||
// Token: 0x02001B6F RID: 7023
|
||||
[Token(Token = "0x2001B6F")]
|
||||
public class TlsDeflateCompression : TlsCompression
|
||||
{
|
||||
// Token: 0x0600AE87 RID: 44679 RVA: 0x0025FAE4 File Offset: 0x0025DCE4
|
||||
[Token(Token = "0x600AE87")]
|
||||
[Address(RVA = "0x1983C00", Offset = "0x1982A00", VA = "0x181983C00")]
|
||||
public TlsDeflateCompression()
|
||||
{
|
||||
ZStream zstream = new ZStream();
|
||||
this.zIn = zstream;
|
||||
int num = zstream.inflateInit();
|
||||
ZStream zstream2 = new ZStream();
|
||||
this.zOut = zstream2;
|
||||
int num2 = zstream2.deflateInit(-1);
|
||||
}
|
||||
|
||||
// Token: 0x0600AE88 RID: 44680 RVA: 0x0025FB28 File Offset: 0x0025DD28
|
||||
[Token(Token = "0x600AE88")]
|
||||
[Address(RVA = "0x1983CA0", Offset = "0x1982AA0", VA = "0x181983CA0")]
|
||||
public TlsDeflateCompression(int level)
|
||||
{
|
||||
ZStream zstream = new ZStream();
|
||||
this.zIn = zstream;
|
||||
int num = zstream.inflateInit();
|
||||
ZStream zstream2 = new ZStream();
|
||||
this.zOut = zstream2;
|
||||
int num2 = zstream2.deflateInit(level);
|
||||
}
|
||||
|
||||
// Token: 0x0600AE89 RID: 44681 RVA: 0x0025FB6C File Offset: 0x0025DD6C
|
||||
[Token(Token = "0x600AE89")]
|
||||
[Address(RVA = "0x1983AE0", Offset = "0x19828E0", VA = "0x181983AE0", Slot = "6")]
|
||||
public virtual Stream Compress(Stream output)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE89)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsDeflateCompression::Compress(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:ZStream(var_0_06, ldfld:ZStream(TlsDeflateCompression::zOut, ldloc:TlsDeflateCompression(this)))
|
||||
stfld:bool(ZOutputStream::compress, ldloc:DeflateOutputStream[exp:ZOutputStream](var_1), ldc.i4:bool(1))
|
||||
stloc:int32(var_2_14, callvirtgetter:int32(ZOutputStream::get_FlushMode, ldloc:DeflateOutputStream[exp:ZOutputStream](var_1)))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600AE8A RID: 44682 RVA: 0x0025FB90 File Offset: 0x0025DD90
|
||||
[Token(Token = "0x600AE8A")]
|
||||
[Address(RVA = "0x1983B70", Offset = "0x1982970", VA = "0x181983B70", Slot = "7")]
|
||||
public virtual Stream Decompress(Stream output)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AE8A)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.IO.Stream BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsDeflateCompression::Decompress(System.IO.Stream)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:ZStream(var_0_06, ldfld:ZStream(TlsDeflateCompression::zIn, ldloc:TlsDeflateCompression(this)))
|
||||
stfld:bool(ZOutputStream::compress, ldloc:DeflateOutputStream[exp:ZOutputStream](var_1), ldc.i4:bool(0))
|
||||
stloc:int32(var_2_14, callvirtgetter:int32(ZOutputStream::get_FlushMode, ldloc:DeflateOutputStream[exp:ZOutputStream](var_1)))
|
||||
}
|
||||
|
||||
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
|
||||
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
|
||||
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
|
||||
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
|
||||
--- End of inner exception stack trace ---
|
||||
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
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0400700A RID: 28682
|
||||
[Token(Token = "0x400700A")]
|
||||
public const int LEVEL_NONE = 0;
|
||||
|
||||
// Token: 0x0400700B RID: 28683
|
||||
[Token(Token = "0x400700B")]
|
||||
public const int LEVEL_FASTEST = 1;
|
||||
|
||||
// Token: 0x0400700C RID: 28684
|
||||
[Token(Token = "0x400700C")]
|
||||
public const int LEVEL_SMALLEST = 9;
|
||||
|
||||
// Token: 0x0400700D RID: 28685
|
||||
[Token(Token = "0x400700D")]
|
||||
public const int LEVEL_DEFAULT = -1;
|
||||
|
||||
// Token: 0x0400700E RID: 28686
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400700E")]
|
||||
protected readonly ZStream zIn;
|
||||
|
||||
// Token: 0x0400700F RID: 28687
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400700F")]
|
||||
protected readonly ZStream zOut;
|
||||
|
||||
// Token: 0x02001B70 RID: 7024
|
||||
[Token(Token = "0x2001B70")]
|
||||
protected class DeflateOutputStream : ZOutputStream
|
||||
{
|
||||
// Token: 0x0600AE8B RID: 44683 RVA: 0x0025FBB4 File Offset: 0x0025DDB4
|
||||
[Token(Token = "0x600AE8B")]
|
||||
[Address(RVA = "0x1979190", Offset = "0x1977F90", VA = "0x181979190")]
|
||||
public DeflateOutputStream(Stream output, ZStream z, bool compress)
|
||||
: base(output, z)
|
||||
{
|
||||
this.compress = compress;
|
||||
((IDisposable)this).Dispose();
|
||||
}
|
||||
|
||||
// Token: 0x0600AE8C RID: 44684 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600AE8C")]
|
||||
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
|
||||
public override void Flush()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user