105 lines
4.8 KiB
C#
105 lines
4.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x0200193D RID: 6461
|
|
[Token(Token = "0x200193D")]
|
|
[StructLayout(3)]
|
|
public class Attributes : Asn1Encodable
|
|
{
|
|
// Token: 0x0600AD5B RID: 44379 RVA: 0x002890C8 File Offset: 0x002872C8
|
|
[Token(Token = "0x600AD5B")]
|
|
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
|
private Attributes(Asn1Set attributes)
|
|
{
|
|
this.attributes = attributes;
|
|
}
|
|
|
|
// Token: 0x0600AD5C RID: 44380 RVA: 0x002890E4 File Offset: 0x002872E4
|
|
[Token(Token = "0x600AD5C")]
|
|
[Address(RVA = "0x28E9A10", Offset = "0x28E8410", VA = "0x1828E9A10")]
|
|
public Attributes(Asn1EncodableVector v)
|
|
{
|
|
BerSet berSet = new BerSet(v);
|
|
this.attributes = berSet;
|
|
}
|
|
|
|
// Token: 0x0600AD5D RID: 44381 RVA: 0x00289108 File Offset: 0x00287308
|
|
[Token(Token = "0x600AD5D")]
|
|
[Address(RVA = "0x28E9910", Offset = "0x28E8310", VA = "0x1828E9910")]
|
|
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: 0x0600AD5E RID: 44382 RVA: 0x0028913C File Offset: 0x0028733C
|
|
[Token(Token = "0x600AD5E")]
|
|
[Address(RVA = "0x28E9800", Offset = "0x28E8200", VA = "0x1828E9800", 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: 0x0600AD5F RID: 44383 RVA: 0x00289188 File Offset: 0x00287388
|
|
[Token(Token = "0x600AD5F")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AD5F)
|
|
|
|
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: 0x0400720E RID: 29198
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400720E")]
|
|
private readonly Asn1Set attributes;
|
|
}
|
|
}
|