198 lines
8.9 KiB
C#
198 lines
8.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x0200184A RID: 6218
|
|
[Token(Token = "0x200184A")]
|
|
[StructLayout(3)]
|
|
public class V2AttributeCertificateInfoGenerator
|
|
{
|
|
// Token: 0x0600A79B RID: 42907 RVA: 0x0026FDD4 File Offset: 0x0026DFD4
|
|
[Token(Token = "0x600A79B")]
|
|
[Address(RVA = "0x27789C0", Offset = "0x27773C0", VA = "0x1827789C0")]
|
|
public V2AttributeCertificateInfoGenerator()
|
|
{
|
|
DerInteger derInteger = new DerInteger(1);
|
|
this.version = derInteger;
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
this.attributes = asn1EncodableVector;
|
|
}
|
|
|
|
// Token: 0x0600A79C RID: 42908 RVA: 0x0026FDFC File Offset: 0x0026DFFC
|
|
[Token(Token = "0x600A79C")]
|
|
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
|
public void SetHolder(Holder holder)
|
|
{
|
|
this.holder = holder;
|
|
}
|
|
|
|
// Token: 0x0600A79D RID: 42909 RVA: 0x0026FE10 File Offset: 0x0026E010
|
|
[Token(Token = "0x600A79D")]
|
|
[Address(RVA = "0x27784B0", Offset = "0x2776EB0", VA = "0x1827784B0")]
|
|
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: 0x0600A79E RID: 42910 RVA: 0x0026FE60 File Offset: 0x0026E060
|
|
[Token(Token = "0x600A79E")]
|
|
[Address(RVA = "0x27783F0", Offset = "0x2776DF0", VA = "0x1827783F0")]
|
|
public void AddAttribute(AttributeX509 attribute)
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector = this.attributes;
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
if (attribute != 0)
|
|
{
|
|
}
|
|
array[0] = attribute;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
|
|
// Token: 0x0600A79F RID: 42911 RVA: 0x0026FE94 File Offset: 0x0026E094
|
|
[Token(Token = "0x600A79F")]
|
|
[Address(RVA = "0x3C1290", Offset = "0x3BFC90", VA = "0x1803C1290")]
|
|
public void SetSerialNumber(DerInteger serialNumber)
|
|
{
|
|
this.serialNumber = serialNumber;
|
|
}
|
|
|
|
// Token: 0x0600A7A0 RID: 42912 RVA: 0x0026FEA8 File Offset: 0x0026E0A8
|
|
[Token(Token = "0x600A7A0")]
|
|
[Address(RVA = "0x3C1270", Offset = "0x3BFC70", VA = "0x1803C1270")]
|
|
public void SetSignature(AlgorithmIdentifier signature)
|
|
{
|
|
this.signature = signature;
|
|
}
|
|
|
|
// Token: 0x0600A7A1 RID: 42913 RVA: 0x0026FEBC File Offset: 0x0026E0BC
|
|
[Token(Token = "0x600A7A1")]
|
|
[Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")]
|
|
public void SetIssuer(AttCertIssuer issuer)
|
|
{
|
|
this.issuer = issuer;
|
|
}
|
|
|
|
// Token: 0x0600A7A2 RID: 42914 RVA: 0x0026FED0 File Offset: 0x0026E0D0
|
|
[Token(Token = "0x600A7A2")]
|
|
[Address(RVA = "0x462750", Offset = "0x461150", VA = "0x180462750")]
|
|
public void SetStartDate(DerGeneralizedTime startDate)
|
|
{
|
|
this.startDate = startDate;
|
|
}
|
|
|
|
// Token: 0x0600A7A3 RID: 42915 RVA: 0x0026FEE4 File Offset: 0x0026E0E4
|
|
[Token(Token = "0x600A7A3")]
|
|
[Address(RVA = "0x3EDEB0", Offset = "0x3EC8B0", VA = "0x1803EDEB0")]
|
|
public void SetEndDate(DerGeneralizedTime endDate)
|
|
{
|
|
this.endDate = endDate;
|
|
}
|
|
|
|
// Token: 0x0600A7A4 RID: 42916 RVA: 0x0026FEF8 File Offset: 0x0026E0F8
|
|
[Token(Token = "0x600A7A4")]
|
|
[Address(RVA = "0x3D3460", Offset = "0x3D1E60", VA = "0x1803D3460")]
|
|
public void SetIssuerUniqueID(DerBitString issuerUniqueID)
|
|
{
|
|
this.issuerUniqueID = issuerUniqueID;
|
|
}
|
|
|
|
// Token: 0x0600A7A5 RID: 42917 RVA: 0x0026FF0C File Offset: 0x0026E10C
|
|
[Token(Token = "0x600A7A5")]
|
|
[Address(RVA = "0x3EDED0", Offset = "0x3EC8D0", VA = "0x1803EDED0")]
|
|
public void SetExtensions(X509Extensions extensions)
|
|
{
|
|
this.extensions = extensions;
|
|
}
|
|
|
|
// Token: 0x0600A7A6 RID: 42918 RVA: 0x0026FF20 File Offset: 0x0026E120
|
|
[Token(Token = "0x600A7A6")]
|
|
[Address(RVA = "0x27785E0", Offset = "0x2776FE0", VA = "0x1827785E0")]
|
|
public AttributeCertificateInfo GenerateAttributeCertificateInfo()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A7A6)
|
|
|
|
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: 0x04006CDF RID: 27871
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006CDF")]
|
|
internal DerInteger version;
|
|
|
|
// Token: 0x04006CE0 RID: 27872
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006CE0")]
|
|
internal Holder holder;
|
|
|
|
// Token: 0x04006CE1 RID: 27873
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006CE1")]
|
|
internal AttCertIssuer issuer;
|
|
|
|
// Token: 0x04006CE2 RID: 27874
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006CE2")]
|
|
internal AlgorithmIdentifier signature;
|
|
|
|
// Token: 0x04006CE3 RID: 27875
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4006CE3")]
|
|
internal DerInteger serialNumber;
|
|
|
|
// Token: 0x04006CE4 RID: 27876
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4006CE4")]
|
|
internal Asn1EncodableVector attributes;
|
|
|
|
// Token: 0x04006CE5 RID: 27877
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4006CE5")]
|
|
internal DerBitString issuerUniqueID;
|
|
|
|
// Token: 0x04006CE6 RID: 27878
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4006CE6")]
|
|
internal X509Extensions extensions;
|
|
|
|
// Token: 0x04006CE7 RID: 27879
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4006CE7")]
|
|
internal DerGeneralizedTime startDate;
|
|
|
|
// Token: 0x04006CE8 RID: 27880
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4006CE8")]
|
|
internal DerGeneralizedTime endDate;
|
|
}
|
|
}
|