120 lines
5.5 KiB
C#
120 lines
5.5 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02002015 RID: 8213
|
|
[Token(Token = "0x2002015")]
|
|
public class OtherKeyAttribute : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CDCE RID: 52686 RVA: 0x002ECBB0 File Offset: 0x002EADB0
|
|
[Token(Token = "0x600CDCE")]
|
|
[Address(RVA = "0x2FE9C20", Offset = "0x2FE8C20", VA = "0x182FE9C20")]
|
|
public static OtherKeyAttribute GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CDCE)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OtherKeyAttribute BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.OtherKeyAttribute::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_29:
|
|
stloc:string(var_7_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_8_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_7_2F)), 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: 0x0600CDCF RID: 52687 RVA: 0x002ECC08 File Offset: 0x002EAE08
|
|
[Token(Token = "0x600CDCF")]
|
|
[Address(RVA = "0x2FE9FD0", Offset = "0x2FE8FD0", VA = "0x182FE9FD0")]
|
|
public OtherKeyAttribute(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser;
|
|
do
|
|
{
|
|
base..ctor();
|
|
parser = seq.Parser;
|
|
}
|
|
while (parser != 0 && parser == 0);
|
|
this.keyAttrId = parser;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
this.keyAttr = parser2;
|
|
}
|
|
|
|
// Token: 0x0600CDD0 RID: 52688 RVA: 0x002ECC48 File Offset: 0x002EAE48
|
|
[Token(Token = "0x600CDD0")]
|
|
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
|
public OtherKeyAttribute(DerObjectIdentifier keyAttrId, Asn1Encodable keyAttr)
|
|
{
|
|
this.keyAttrId = keyAttrId;
|
|
this.keyAttr = keyAttr;
|
|
}
|
|
|
|
// Token: 0x17002082 RID: 8322
|
|
// (get) Token: 0x0600CDD1 RID: 52689 RVA: 0x002ECC6C File Offset: 0x002EAE6C
|
|
[Token(Token = "0x17002082")]
|
|
public DerObjectIdentifier KeyAttrId
|
|
{
|
|
[Token(Token = "0x600CDD1")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.keyAttrId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002083 RID: 8323
|
|
// (get) Token: 0x0600CDD2 RID: 52690 RVA: 0x002ECC80 File Offset: 0x002EAE80
|
|
[Token(Token = "0x17002083")]
|
|
public Asn1Encodable KeyAttr
|
|
{
|
|
[Token(Token = "0x600CDD2")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.keyAttr;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CDD3 RID: 52691 RVA: 0x002ECC94 File Offset: 0x002EAE94
|
|
[Token(Token = "0x600CDD3")]
|
|
[Address(RVA = "0x2FE9EC0", Offset = "0x2FE8EC0", VA = "0x182FE9EC0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
DerObjectIdentifier derObjectIdentifier = this.keyAttrId;
|
|
if (derObjectIdentifier != 0)
|
|
{
|
|
}
|
|
array[0] = derObjectIdentifier;
|
|
Asn1Encodable asn1Encodable = this.keyAttr;
|
|
if (asn1Encodable != 0)
|
|
{
|
|
}
|
|
array[1] = asn1Encodable;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400826F RID: 33391
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400826F")]
|
|
private DerObjectIdentifier keyAttrId;
|
|
|
|
// Token: 0x04008270 RID: 33392
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008270")]
|
|
private Asn1Encodable keyAttr;
|
|
}
|
|
}
|