oh dear
This commit is contained in:
@@ -0,0 +1,128 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
||||
{
|
||||
// Token: 0x02001F18 RID: 7960
|
||||
[Token(Token = "0x2001F18")]
|
||||
public class Attribute : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C91F RID: 51487 RVA: 0x002E0FE4 File Offset: 0x002DF1E4
|
||||
[Token(Token = "0x600C91F")]
|
||||
[Address(RVA = "0x2AD03C0", Offset = "0x2ACF1C0", VA = "0x182AD03C0")]
|
||||
public static Attribute GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C91F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attribute::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_2C:
|
||||
stloc:string(var_8_32, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_9_4A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8_32)), 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: 0x0600C920 RID: 51488 RVA: 0x002E103C File Offset: 0x002DF23C
|
||||
[Token(Token = "0x600C920")]
|
||||
[Address(RVA = "0x2AD07D0", Offset = "0x2ACF5D0", VA = "0x182AD07D0")]
|
||||
public Attribute(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser2;
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser == 0)
|
||||
{
|
||||
}
|
||||
if (parser != 0)
|
||||
{
|
||||
this.attrType = parser;
|
||||
parser2 = seq.Parser;
|
||||
if (parser2 == 0 || parser2 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
this.attrValues = parser2;
|
||||
}
|
||||
|
||||
// Token: 0x0600C921 RID: 51489 RVA: 0x002E1088 File Offset: 0x002DF288
|
||||
[Token(Token = "0x600C921")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public Attribute(DerObjectIdentifier attrType, Asn1Set attrValues)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
// Token: 0x17001F97 RID: 8087
|
||||
// (get) Token: 0x0600C922 RID: 51490 RVA: 0x002E10AC File Offset: 0x002DF2AC
|
||||
[Token(Token = "0x17001F97")]
|
||||
public DerObjectIdentifier AttrType
|
||||
{
|
||||
[Token(Token = "0x600C922")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.attrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F98 RID: 8088
|
||||
// (get) Token: 0x0600C923 RID: 51491 RVA: 0x002E10C0 File Offset: 0x002DF2C0
|
||||
[Token(Token = "0x17001F98")]
|
||||
public Asn1Set AttrValues
|
||||
{
|
||||
[Token(Token = "0x600C923")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.attrValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C924 RID: 51492 RVA: 0x002E10D4 File Offset: 0x002DF2D4
|
||||
[Token(Token = "0x600C924")]
|
||||
[Address(RVA = "0x2AD06C0", Offset = "0x2ACF4C0", VA = "0x182AD06C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.attrType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Set asn1Set = this.attrValues;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Set;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400804E RID: 32846
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400804E")]
|
||||
private DerObjectIdentifier attrType;
|
||||
|
||||
// Token: 0x0400804F RID: 32847
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400804F")]
|
||||
private Asn1Set attrValues;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user