133 lines
6.1 KiB
C#
133 lines
6.1 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf
|
|
{
|
|
// Token: 0x02001FD7 RID: 8151
|
|
[Token(Token = "0x2001FD7")]
|
|
public class SignerAttribute : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CC0C RID: 52236 RVA: 0x002E5E34 File Offset: 0x002E4034
|
|
[Token(Token = "0x600CC0C")]
|
|
[Address(RVA = "0x2EBAC00", Offset = "0x2EB9C00", VA = "0x182EBAC00")]
|
|
public static SignerAttribute GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CC0C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.SignerAttribute BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.SignerAttribute::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_29:
|
|
stloc:string(var_6_2F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_7_47, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in 'SignerAttribute' factory: "), ldloc:string(var_6_2F)), 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: 0x0600CC0D RID: 52237 RVA: 0x002E5E8C File Offset: 0x002E408C
|
|
[Token(Token = "0x600CC0D")]
|
|
[Address(RVA = "0x2EBAF60", Offset = "0x2EB9F60", VA = "0x182EBAF60")]
|
|
private SignerAttribute(object obj)
|
|
{
|
|
do
|
|
{
|
|
base..ctor();
|
|
}
|
|
while (obj == 0 || obj == 0);
|
|
AttributeCertificate attributeCertificate;
|
|
this.certifiedAttributes = attributeCertificate;
|
|
}
|
|
|
|
// Token: 0x0600CC0E RID: 52238 RVA: 0x002E5ED0 File Offset: 0x002E40D0
|
|
[Token(Token = "0x600CC0E")]
|
|
[Address(RVA = "0x681CA0", Offset = "0x680CA0", VA = "0x180681CA0")]
|
|
public SignerAttribute(Asn1Sequence claimedAttributes)
|
|
{
|
|
this.claimedAttributes = claimedAttributes;
|
|
}
|
|
|
|
// Token: 0x0600CC0F RID: 52239 RVA: 0x002E5EEC File Offset: 0x002E40EC
|
|
[Token(Token = "0x600CC0F")]
|
|
[Address(RVA = "0xA1AEE0", Offset = "0xA19EE0", VA = "0x180A1AEE0")]
|
|
public SignerAttribute(AttributeCertificate certifiedAttributes)
|
|
{
|
|
this.certifiedAttributes = certifiedAttributes;
|
|
}
|
|
|
|
// Token: 0x17001FF0 RID: 8176
|
|
// (get) Token: 0x0600CC10 RID: 52240 RVA: 0x002E5F08 File Offset: 0x002E4108
|
|
[Token(Token = "0x17001FF0")]
|
|
public virtual Asn1Sequence ClaimedAttributes
|
|
{
|
|
[Token(Token = "0x600CC10")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.claimedAttributes;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001FF1 RID: 8177
|
|
// (get) Token: 0x0600CC11 RID: 52241 RVA: 0x002E5F1C File Offset: 0x002E411C
|
|
[Token(Token = "0x17001FF1")]
|
|
public virtual AttributeCertificate CertifiedAttributes
|
|
{
|
|
[Token(Token = "0x600CC11")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.certifiedAttributes;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CC12 RID: 52242 RVA: 0x002E5F30 File Offset: 0x002E4130
|
|
[Token(Token = "0x600CC12")]
|
|
[Address(RVA = "0x2EBADA0", Offset = "0x2EB9DA0", VA = "0x182EBADA0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
if (this.claimedAttributes == (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
AttributeCertificate attributeCertificate = this.certifiedAttributes;
|
|
if (new DerTaggedObject(1, attributeCertificate) != 0)
|
|
{
|
|
}
|
|
}
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Asn1Sequence asn1Sequence = this.claimedAttributes;
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(num, asn1Sequence);
|
|
num = 0;
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array2[0] = derTaggedObject;
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
asn1EncodableVector.Add(array2);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008165 RID: 33125
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008165")]
|
|
private Asn1Sequence claimedAttributes;
|
|
|
|
// Token: 0x04008166 RID: 33126
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008166")]
|
|
private AttributeCertificate certifiedAttributes;
|
|
}
|
|
}
|