116 lines
5.3 KiB
C#
116 lines
5.3 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02001F69 RID: 8041
|
|
[Token(Token = "0x2001F69")]
|
|
public class ProtectedPart : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CB7E RID: 52094 RVA: 0x002E9E20 File Offset: 0x002E8020
|
|
[Token(Token = "0x600CB7E")]
|
|
[Address(RVA = "0x2AE1F80", Offset = "0x2AE0D80", VA = "0x182AE1F80")]
|
|
private ProtectedPart(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
PkiHeader pkiHeader;
|
|
this.header = pkiHeader;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
PkiBody pkiBody;
|
|
this.body = pkiBody;
|
|
}
|
|
|
|
// Token: 0x0600CB7F RID: 52095 RVA: 0x002E9E58 File Offset: 0x002E8058
|
|
[Token(Token = "0x600CB7F")]
|
|
[Address(RVA = "0x2AE1C00", Offset = "0x2AE0A00", VA = "0x182AE1C00")]
|
|
public static ProtectedPart GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CB7F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ProtectedPart BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.ProtectedPart::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_2E:
|
|
stloc:string(var_8_34, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_9_4C, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_8_34)), ldstr:string("obj")))
|
|
}
|
|
|
|
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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600CB80 RID: 52096 RVA: 0x002E9EB4 File Offset: 0x002E80B4
|
|
[Token(Token = "0x600CB80")]
|
|
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
|
public ProtectedPart(PkiHeader header, PkiBody body)
|
|
{
|
|
this.header = header;
|
|
this.body = body;
|
|
}
|
|
|
|
// Token: 0x17002051 RID: 8273
|
|
// (get) Token: 0x0600CB81 RID: 52097 RVA: 0x002E9ED8 File Offset: 0x002E80D8
|
|
[Token(Token = "0x17002051")]
|
|
public virtual PkiHeader Header
|
|
{
|
|
[Token(Token = "0x600CB81")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
|
get
|
|
{
|
|
return this.header;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002052 RID: 8274
|
|
// (get) Token: 0x0600CB82 RID: 52098 RVA: 0x002E9EEC File Offset: 0x002E80EC
|
|
[Token(Token = "0x17002052")]
|
|
public virtual PkiBody Body
|
|
{
|
|
[Token(Token = "0x600CB82")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
|
get
|
|
{
|
|
return this.body;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CB83 RID: 52099 RVA: 0x002E9F00 File Offset: 0x002E8100
|
|
[Token(Token = "0x600CB83")]
|
|
[Address(RVA = "0x2AE1E70", Offset = "0x2AE0C70", VA = "0x182AE1E70", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
PkiHeader pkiHeader = this.header;
|
|
if (pkiHeader != 0)
|
|
{
|
|
}
|
|
array[0] = pkiHeader;
|
|
PkiBody pkiBody = this.body;
|
|
if (pkiBody != 0)
|
|
{
|
|
}
|
|
array[1] = pkiBody;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040081A9 RID: 33193
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40081A9")]
|
|
private readonly PkiHeader header;
|
|
|
|
// Token: 0x040081AA RID: 33194
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40081AA")]
|
|
private readonly PkiBody body;
|
|
}
|
|
}
|