Files
27Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Cms/Attributes.cs
T
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

103 lines
4.7 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
{
// Token: 0x02001FFA RID: 8186
[Token(Token = "0x2001FFA")]
public class Attributes : Asn1Encodable
{
// Token: 0x0600CD03 RID: 52483 RVA: 0x002E9D8C File Offset: 0x002E7F8C
[Token(Token = "0x600CD03")]
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
private Attributes(Asn1Set attributes)
{
this.attributes = attributes;
}
// Token: 0x0600CD04 RID: 52484 RVA: 0x002E9DA8 File Offset: 0x002E7FA8
[Token(Token = "0x600CD04")]
[Address(RVA = "0x2FDB830", Offset = "0x2FDA830", VA = "0x182FDB830")]
public Attributes(Asn1EncodableVector v)
{
BerSet berSet = new BerSet(v);
this.attributes = berSet;
}
// Token: 0x0600CD05 RID: 52485 RVA: 0x002E9DCC File Offset: 0x002E7FCC
[Token(Token = "0x600CD05")]
[Address(RVA = "0x2FDB730", Offset = "0x2FDA730", VA = "0x182FDB730")]
public static Attributes GetInstance(object obj)
{
while (obj != 0)
{
Attributes attributes;
if (obj == 0)
{
Asn1Set instance = Asn1Set.GetInstance(obj);
attributes.attributes = instance;
return attributes;
}
if (attributes != 0)
{
return attributes;
}
}
}
// Token: 0x0600CD06 RID: 52486 RVA: 0x002E9E00 File Offset: 0x002E8000
[Token(Token = "0x600CD06")]
[Address(RVA = "0x2FDB620", Offset = "0x2FDA620", VA = "0x182FDB620", Slot = "6")]
public virtual Attribute[] GetAttributes()
{
Asn1Set asn1Set = this.attributes;
Asn1Encodable asn1Encodable;
Attribute[] array = new Attribute[asn1Encodable];
int num = 0;
if (num != array.Length)
{
IEnumerator enumerator = this.attributes.GetEnumerator();
Attribute attribute;
if (attribute != 0)
{
}
num++;
array[0] = attribute;
}
return array;
}
// Token: 0x0600CD07 RID: 52487 RVA: 0x002E9E4C File Offset: 0x002E804C
[Token(Token = "0x600CD07")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600CD07)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.Attributes::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Asn1Set(var_0_06, ldfld:Asn1Set(Attributes::attributes, ldloc:Attributes(this)))
}
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: 0x0400820A RID: 33290
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x400820A")]
private readonly Asn1Set attributes;
}
}