Files
Apr2020-Cpp2Il-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/X509/AttributeX509.cs
T
niko 8fc35183db a
2026-04-11 22:19:20 +02:00

126 lines
5.8 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x02001DF0 RID: 7664
[Token(Token = "0x2001DF0")]
public class AttributeX509 : Asn1Encodable
{
// Token: 0x0600C1D5 RID: 49621 RVA: 0x002C1A68 File Offset: 0x002BFC68
[Token(Token = "0x600C1D5")]
[Address(RVA = "0x271FB00", Offset = "0x271E900", VA = "0x18271FB00")]
public static AttributeX509 GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C1D5)
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 1660
*/;
}
// Token: 0x0600C1D6 RID: 49622 RVA: 0x002C1AC8 File Offset: 0x002BFCC8
[Token(Token = "0x600C1D6")]
[Address(RVA = "0x271FF10", Offset = "0x271ED10", VA = "0x18271FF10")]
private AttributeX509(Asn1Sequence seq)
{
Asn1SequenceParser parser = seq.Parser;
DerObjectIdentifier derObjectIdentifier;
this.attrType = derObjectIdentifier;
Asn1SequenceParser parser2 = seq.Parser;
Asn1Set asn1Set;
this.attrValues = asn1Set;
}
// Token: 0x0600C1D7 RID: 49623 RVA: 0x002C1B00 File Offset: 0x002BFD00
[Token(Token = "0x600C1D7")]
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
public AttributeX509(DerObjectIdentifier attrType, Asn1Set attrValues)
{
this.attrType = attrType;
this.attrValues = attrValues;
}
// Token: 0x17001DE5 RID: 7653
// (get) Token: 0x0600C1D8 RID: 49624 RVA: 0x002C1B24 File Offset: 0x002BFD24
[Token(Token = "0x17001DE5")]
public DerObjectIdentifier AttrType
{
[Token(Token = "0x600C1D8")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.attrType;
}
}
// Token: 0x0600C1D9 RID: 49625 RVA: 0x002C1B38 File Offset: 0x002BFD38
[Token(Token = "0x600C1D9")]
[Address(RVA = "0x260E070", Offset = "0x260CE70", VA = "0x18260E070")]
public Asn1Encodable[] GetAttributeValues()
{
IEnumerator enumerator = ((IEnumerable)this.attrValues).GetEnumerator();
throw new NullReferenceException();
}
// Token: 0x17001DE6 RID: 7654
// (get) Token: 0x0600C1DA RID: 49626 RVA: 0x002C1B58 File Offset: 0x002BFD58
[Token(Token = "0x17001DE6")]
public Asn1Set AttrValues
{
[Token(Token = "0x600C1DA")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.attrValues;
}
}
// Token: 0x0600C1DB RID: 49627 RVA: 0x002C1B6C File Offset: 0x002BFD6C
[Token(Token = "0x600C1DB")]
[Address(RVA = "0x271FE00", Offset = "0x271EC00", VA = "0x18271FE00", 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: 0x04007A5B RID: 31323
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007A5B")]
private readonly DerObjectIdentifier attrType;
// Token: 0x04007A5C RID: 31324
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007A5C")]
private readonly Asn1Set attrValues;
}
}