196 lines
8.6 KiB
C#
196 lines
8.6 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001E27 RID: 7719
|
|
[Token(Token = "0x2001E27")]
|
|
public class V2AttributeCertificateInfoGenerator
|
|
{
|
|
// Token: 0x0600C375 RID: 50037 RVA: 0x002C8328 File Offset: 0x002C6528
|
|
[Token(Token = "0x600C375")]
|
|
[Address(RVA = "0x2B447A0", Offset = "0x2B435A0", VA = "0x182B447A0")]
|
|
public V2AttributeCertificateInfoGenerator()
|
|
{
|
|
DerInteger derInteger = new DerInteger(1);
|
|
this.version = derInteger;
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
this.attributes = asn1EncodableVector;
|
|
}
|
|
|
|
// Token: 0x0600C376 RID: 50038 RVA: 0x002C8350 File Offset: 0x002C6550
|
|
[Token(Token = "0x600C376")]
|
|
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
|
|
public void SetHolder(Holder holder)
|
|
{
|
|
this.holder = holder;
|
|
}
|
|
|
|
// Token: 0x0600C377 RID: 50039 RVA: 0x002C8364 File Offset: 0x002C6564
|
|
[Token(Token = "0x600C377")]
|
|
[Address(RVA = "0x2B44290", Offset = "0x2B43090", VA = "0x182B44290")]
|
|
public void AddAttribute(string oid, Asn1Encodable value)
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector = this.attributes;
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerObjectIdentifier derObjectIdentifier = new DerObjectIdentifier(oid);
|
|
DerSet derSet = new DerSet(value);
|
|
AttributeX509 attributeX = new AttributeX509(derObjectIdentifier, derSet);
|
|
if (attributeX != 0)
|
|
{
|
|
}
|
|
array[0] = attributeX;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
|
|
// Token: 0x0600C378 RID: 50040 RVA: 0x002C83B4 File Offset: 0x002C65B4
|
|
[Token(Token = "0x600C378")]
|
|
[Address(RVA = "0x2B441D0", Offset = "0x2B42FD0", VA = "0x182B441D0")]
|
|
public void AddAttribute(AttributeX509 attribute)
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector = this.attributes;
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
if (attribute != 0)
|
|
{
|
|
}
|
|
array[0] = attribute;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
|
|
// Token: 0x0600C379 RID: 50041 RVA: 0x002C83E8 File Offset: 0x002C65E8
|
|
[Token(Token = "0x600C379")]
|
|
[Address(RVA = "0x4437E0", Offset = "0x4425E0", VA = "0x1804437E0")]
|
|
public void SetSerialNumber(DerInteger serialNumber)
|
|
{
|
|
this.serialNumber = serialNumber;
|
|
}
|
|
|
|
// Token: 0x0600C37A RID: 50042 RVA: 0x002C83FC File Offset: 0x002C65FC
|
|
[Token(Token = "0x600C37A")]
|
|
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
|
|
public void SetSignature(AlgorithmIdentifier signature)
|
|
{
|
|
this.signature = signature;
|
|
}
|
|
|
|
// Token: 0x0600C37B RID: 50043 RVA: 0x002C8410 File Offset: 0x002C6610
|
|
[Token(Token = "0x600C37B")]
|
|
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
|
public void SetIssuer(AttCertIssuer issuer)
|
|
{
|
|
this.issuer = issuer;
|
|
}
|
|
|
|
// Token: 0x0600C37C RID: 50044 RVA: 0x002C8424 File Offset: 0x002C6624
|
|
[Token(Token = "0x600C37C")]
|
|
[Address(RVA = "0x46AB00", Offset = "0x469900", VA = "0x18046AB00")]
|
|
public void SetStartDate(DerGeneralizedTime startDate)
|
|
{
|
|
this.startDate = startDate;
|
|
}
|
|
|
|
// Token: 0x0600C37D RID: 50045 RVA: 0x002C8438 File Offset: 0x002C6638
|
|
[Token(Token = "0x600C37D")]
|
|
[Address(RVA = "0x466B90", Offset = "0x465990", VA = "0x180466B90")]
|
|
public void SetEndDate(DerGeneralizedTime endDate)
|
|
{
|
|
this.endDate = endDate;
|
|
}
|
|
|
|
// Token: 0x0600C37E RID: 50046 RVA: 0x002C844C File Offset: 0x002C664C
|
|
[Token(Token = "0x600C37E")]
|
|
[Address(RVA = "0x403B30", Offset = "0x402930", VA = "0x180403B30")]
|
|
public void SetIssuerUniqueID(DerBitString issuerUniqueID)
|
|
{
|
|
this.issuerUniqueID = issuerUniqueID;
|
|
}
|
|
|
|
// Token: 0x0600C37F RID: 50047 RVA: 0x002C8460 File Offset: 0x002C6660
|
|
[Token(Token = "0x600C37F")]
|
|
[Address(RVA = "0x46AA50", Offset = "0x469850", VA = "0x18046AA50")]
|
|
public void SetExtensions(X509Extensions extensions)
|
|
{
|
|
this.extensions = extensions;
|
|
}
|
|
|
|
// Token: 0x0600C380 RID: 50048 RVA: 0x002C8474 File Offset: 0x002C6674
|
|
[Token(Token = "0x600C380")]
|
|
[Address(RVA = "0x2B443C0", Offset = "0x2B431C0", VA = "0x182B443C0")]
|
|
public AttributeCertificateInfo GenerateAttributeCertificateInfo()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C380)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeCertificateInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.V2AttributeCertificateInfoGenerator::GenerateAttributeCertificateInfo()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_1BD:
|
|
stloc:InvalidOperationException(var_17_1C7, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("not all mandatory fields set in V2 AttributeCertificateInfo generator")))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x04007B22 RID: 31522
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007B22")]
|
|
internal DerInteger version;
|
|
|
|
// Token: 0x04007B23 RID: 31523
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007B23")]
|
|
internal Holder holder;
|
|
|
|
// Token: 0x04007B24 RID: 31524
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007B24")]
|
|
internal AttCertIssuer issuer;
|
|
|
|
// Token: 0x04007B25 RID: 31525
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007B25")]
|
|
internal AlgorithmIdentifier signature;
|
|
|
|
// Token: 0x04007B26 RID: 31526
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4007B26")]
|
|
internal DerInteger serialNumber;
|
|
|
|
// Token: 0x04007B27 RID: 31527
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4007B27")]
|
|
internal Asn1EncodableVector attributes;
|
|
|
|
// Token: 0x04007B28 RID: 31528
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4007B28")]
|
|
internal DerBitString issuerUniqueID;
|
|
|
|
// Token: 0x04007B29 RID: 31529
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4007B29")]
|
|
internal X509Extensions extensions;
|
|
|
|
// Token: 0x04007B2A RID: 31530
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4007B2A")]
|
|
internal DerGeneralizedTime startDate;
|
|
|
|
// Token: 0x04007B2B RID: 31531
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4007B2B")]
|
|
internal DerGeneralizedTime endDate;
|
|
}
|
|
}
|