126 lines
5.8 KiB
C#
126 lines
5.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001ED0 RID: 7888
|
|
[Token(Token = "0x2001ED0")]
|
|
public class AttributeX509 : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C5A3 RID: 50595 RVA: 0x002CA2CC File Offset: 0x002C84CC
|
|
[Token(Token = "0x600C5A3")]
|
|
[Address(RVA = "0x2D83D70", Offset = "0x2D82D70", VA = "0x182D83D70")]
|
|
public static AttributeX509 GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C5A3)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeX509 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeX509::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_31:
|
|
stloc:string(var_9_37, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_10_4F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_37)), 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: 0x0600C5A4 RID: 50596 RVA: 0x002CA32C File Offset: 0x002C852C
|
|
[Token(Token = "0x600C5A4")]
|
|
[Address(RVA = "0x2D84180", Offset = "0x2D83180", VA = "0x182D84180")]
|
|
private AttributeX509(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
DerObjectIdentifier derObjectIdentifier;
|
|
this.attrType = derObjectIdentifier;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
Asn1Set asn1Set;
|
|
this.attrValues = asn1Set;
|
|
}
|
|
|
|
// Token: 0x0600C5A5 RID: 50597 RVA: 0x002CA364 File Offset: 0x002C8564
|
|
[Token(Token = "0x600C5A5")]
|
|
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
|
public AttributeX509(DerObjectIdentifier attrType, Asn1Set attrValues)
|
|
{
|
|
this.attrType = attrType;
|
|
this.attrValues = attrValues;
|
|
}
|
|
|
|
// Token: 0x17001E82 RID: 7810
|
|
// (get) Token: 0x0600C5A6 RID: 50598 RVA: 0x002CA388 File Offset: 0x002C8588
|
|
[Token(Token = "0x17001E82")]
|
|
public DerObjectIdentifier AttrType
|
|
{
|
|
[Token(Token = "0x600C5A6")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.attrType;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C5A7 RID: 50599 RVA: 0x002CA39C File Offset: 0x002C859C
|
|
[Token(Token = "0x600C5A7")]
|
|
[Address(RVA = "0xA1AC40", Offset = "0xA19C40", VA = "0x180A1AC40")]
|
|
public Asn1Encodable[] GetAttributeValues()
|
|
{
|
|
IEnumerator enumerator = ((IEnumerable)this.attrValues).GetEnumerator();
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001E83 RID: 7811
|
|
// (get) Token: 0x0600C5A8 RID: 50600 RVA: 0x002CA3BC File Offset: 0x002C85BC
|
|
[Token(Token = "0x17001E83")]
|
|
public Asn1Set AttrValues
|
|
{
|
|
[Token(Token = "0x600C5A8")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.attrValues;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C5A9 RID: 50601 RVA: 0x002CA3D0 File Offset: 0x002C85D0
|
|
[Token(Token = "0x600C5A9")]
|
|
[Address(RVA = "0x2D84070", Offset = "0x2D83070", VA = "0x182D84070", 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: 0x04007C14 RID: 31764
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007C14")]
|
|
private readonly DerObjectIdentifier attrType;
|
|
|
|
// Token: 0x04007C15 RID: 31765
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007C15")]
|
|
private readonly Asn1Set attrValues;
|
|
}
|
|
}
|