Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/Cms/Attributes.cs
T
2026-04-10 22:50:51 +02:00

103 lines
4.7 KiB
C#

using System;
using System.Collections;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
{
// Token: 0x02001F1A RID: 7962
[Token(Token = "0x2001F1A")]
public class Attributes : Asn1Encodable
{
// Token: 0x0600C935 RID: 51509 RVA: 0x002E1598 File Offset: 0x002DF798
[Token(Token = "0x600C935")]
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
private Attributes(Asn1Set attributes)
{
this.attributes = attributes;
}
// Token: 0x0600C936 RID: 51510 RVA: 0x002E15B4 File Offset: 0x002DF7B4
[Token(Token = "0x600C936")]
[Address(RVA = "0x2AD0B20", Offset = "0x2ACF920", VA = "0x182AD0B20")]
public Attributes(Asn1EncodableVector v)
{
BerSet berSet = new BerSet(v);
this.attributes = berSet;
}
// Token: 0x0600C937 RID: 51511 RVA: 0x002E15D8 File Offset: 0x002DF7D8
[Token(Token = "0x600C937")]
[Address(RVA = "0x2AD0A20", Offset = "0x2ACF820", VA = "0x182AD0A20")]
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: 0x0600C938 RID: 51512 RVA: 0x002E160C File Offset: 0x002DF80C
[Token(Token = "0x600C938")]
[Address(RVA = "0x2AD0910", Offset = "0x2ACF710", VA = "0x182AD0910", 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: 0x0600C939 RID: 51513 RVA: 0x002E1658 File Offset: 0x002DF858
[Token(Token = "0x600C939")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600C939)
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: 0x04008051 RID: 32849
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4008051")]
private readonly Asn1Set attributes;
}
}