196 lines
8.6 KiB
C#
196 lines
8.6 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001F07 RID: 7943
|
|
[Token(Token = "0x2001F07")]
|
|
public class V2AttributeCertificateInfoGenerator
|
|
{
|
|
// Token: 0x0600C743 RID: 51011 RVA: 0x002D0BAC File Offset: 0x002CEDAC
|
|
[Token(Token = "0x600C743")]
|
|
[Address(RVA = "0x2E8BE00", Offset = "0x2E8AE00", VA = "0x182E8BE00")]
|
|
public V2AttributeCertificateInfoGenerator()
|
|
{
|
|
DerInteger derInteger = new DerInteger(1);
|
|
this.version = derInteger;
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
this.attributes = asn1EncodableVector;
|
|
}
|
|
|
|
// Token: 0x0600C744 RID: 51012 RVA: 0x002D0BD4 File Offset: 0x002CEDD4
|
|
[Token(Token = "0x600C744")]
|
|
[Address(RVA = "0x4157F0", Offset = "0x4147F0", VA = "0x1804157F0")]
|
|
public void SetHolder(Holder holder)
|
|
{
|
|
this.holder = holder;
|
|
}
|
|
|
|
// Token: 0x0600C745 RID: 51013 RVA: 0x002D0BE8 File Offset: 0x002CEDE8
|
|
[Token(Token = "0x600C745")]
|
|
[Address(RVA = "0x2E8B8F0", Offset = "0x2E8A8F0", VA = "0x182E8B8F0")]
|
|
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: 0x0600C746 RID: 51014 RVA: 0x002D0C38 File Offset: 0x002CEE38
|
|
[Token(Token = "0x600C746")]
|
|
[Address(RVA = "0x2E8B830", Offset = "0x2E8A830", VA = "0x182E8B830")]
|
|
public void AddAttribute(AttributeX509 attribute)
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector = this.attributes;
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
if (attribute != 0)
|
|
{
|
|
}
|
|
array[0] = attribute;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
|
|
// Token: 0x0600C747 RID: 51015 RVA: 0x002D0C6C File Offset: 0x002CEE6C
|
|
[Token(Token = "0x600C747")]
|
|
[Address(RVA = "0x415830", Offset = "0x414830", VA = "0x180415830")]
|
|
public void SetSerialNumber(DerInteger serialNumber)
|
|
{
|
|
this.serialNumber = serialNumber;
|
|
}
|
|
|
|
// Token: 0x0600C748 RID: 51016 RVA: 0x002D0C80 File Offset: 0x002CEE80
|
|
[Token(Token = "0x600C748")]
|
|
[Address(RVA = "0x415820", Offset = "0x414820", VA = "0x180415820")]
|
|
public void SetSignature(AlgorithmIdentifier signature)
|
|
{
|
|
this.signature = signature;
|
|
}
|
|
|
|
// Token: 0x0600C749 RID: 51017 RVA: 0x002D0C94 File Offset: 0x002CEE94
|
|
[Token(Token = "0x600C749")]
|
|
[Address(RVA = "0x415810", Offset = "0x414810", VA = "0x180415810")]
|
|
public void SetIssuer(AttCertIssuer issuer)
|
|
{
|
|
this.issuer = issuer;
|
|
}
|
|
|
|
// Token: 0x0600C74A RID: 51018 RVA: 0x002D0CA8 File Offset: 0x002CEEA8
|
|
[Token(Token = "0x600C74A")]
|
|
[Address(RVA = "0x55BCE0", Offset = "0x55ACE0", VA = "0x18055BCE0")]
|
|
public void SetStartDate(DerGeneralizedTime startDate)
|
|
{
|
|
this.startDate = startDate;
|
|
}
|
|
|
|
// Token: 0x0600C74B RID: 51019 RVA: 0x002D0CBC File Offset: 0x002CEEBC
|
|
[Token(Token = "0x600C74B")]
|
|
[Address(RVA = "0x417A10", Offset = "0x416A10", VA = "0x180417A10")]
|
|
public void SetEndDate(DerGeneralizedTime endDate)
|
|
{
|
|
this.endDate = endDate;
|
|
}
|
|
|
|
// Token: 0x0600C74C RID: 51020 RVA: 0x002D0CD0 File Offset: 0x002CEED0
|
|
[Token(Token = "0x600C74C")]
|
|
[Address(RVA = "0x417960", Offset = "0x416960", VA = "0x180417960")]
|
|
public void SetIssuerUniqueID(DerBitString issuerUniqueID)
|
|
{
|
|
this.issuerUniqueID = issuerUniqueID;
|
|
}
|
|
|
|
// Token: 0x0600C74D RID: 51021 RVA: 0x002D0CE4 File Offset: 0x002CEEE4
|
|
[Token(Token = "0x600C74D")]
|
|
[Address(RVA = "0x55BCF0", Offset = "0x55ACF0", VA = "0x18055BCF0")]
|
|
public void SetExtensions(X509Extensions extensions)
|
|
{
|
|
this.extensions = extensions;
|
|
}
|
|
|
|
// Token: 0x0600C74E RID: 51022 RVA: 0x002D0CF8 File Offset: 0x002CEEF8
|
|
[Token(Token = "0x600C74E")]
|
|
[Address(RVA = "0x2E8BA20", Offset = "0x2E8AA20", VA = "0x182E8BA20")]
|
|
public AttributeCertificateInfo GenerateAttributeCertificateInfo()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C74E)
|
|
|
|
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: 0x04007CDB RID: 31963
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007CDB")]
|
|
internal DerInteger version;
|
|
|
|
// Token: 0x04007CDC RID: 31964
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007CDC")]
|
|
internal Holder holder;
|
|
|
|
// Token: 0x04007CDD RID: 31965
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007CDD")]
|
|
internal AttCertIssuer issuer;
|
|
|
|
// Token: 0x04007CDE RID: 31966
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007CDE")]
|
|
internal AlgorithmIdentifier signature;
|
|
|
|
// Token: 0x04007CDF RID: 31967
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4007CDF")]
|
|
internal DerInteger serialNumber;
|
|
|
|
// Token: 0x04007CE0 RID: 31968
|
|
[FieldOffset(Offset = "0x38")]
|
|
[Token(Token = "0x4007CE0")]
|
|
internal Asn1EncodableVector attributes;
|
|
|
|
// Token: 0x04007CE1 RID: 31969
|
|
[FieldOffset(Offset = "0x40")]
|
|
[Token(Token = "0x4007CE1")]
|
|
internal DerBitString issuerUniqueID;
|
|
|
|
// Token: 0x04007CE2 RID: 31970
|
|
[FieldOffset(Offset = "0x48")]
|
|
[Token(Token = "0x4007CE2")]
|
|
internal X509Extensions extensions;
|
|
|
|
// Token: 0x04007CE3 RID: 31971
|
|
[FieldOffset(Offset = "0x50")]
|
|
[Token(Token = "0x4007CE3")]
|
|
internal DerGeneralizedTime startDate;
|
|
|
|
// Token: 0x04007CE4 RID: 31972
|
|
[FieldOffset(Offset = "0x58")]
|
|
[Token(Token = "0x4007CE4")]
|
|
internal DerGeneralizedTime endDate;
|
|
}
|
|
}
|