using System; using System.Collections; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509 { // Token: 0x0200184D RID: 6221 [Token(Token = "0x200184D")] [StructLayout(3)] public class V3TbsCertificateGenerator { // Token: 0x0600A7C0 RID: 42944 RVA: 0x00270820 File Offset: 0x0026EA20 [Token(Token = "0x600A7C0")] [Address(RVA = "0x277A7A0", Offset = "0x27791A0", VA = "0x18277A7A0")] public V3TbsCertificateGenerator() { DerInteger derInteger = new DerInteger(2); int num; DerTaggedObject derTaggedObject = new DerTaggedObject(num, derInteger); num = 0; this.version = derTaggedObject; base..ctor(); } // Token: 0x0600A7C1 RID: 42945 RVA: 0x0027084C File Offset: 0x0026EA4C [Token(Token = "0x600A7C1")] [Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")] public void SetSerialNumber(DerInteger serialNumber) { this.serialNumber = serialNumber; } // Token: 0x0600A7C2 RID: 42946 RVA: 0x00270860 File Offset: 0x0026EA60 [Token(Token = "0x600A7C2")] [Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")] public void SetSignature(AlgorithmIdentifier signature) { this.signature = signature; } // Token: 0x0600A7C3 RID: 42947 RVA: 0x00270874 File Offset: 0x0026EA74 [Token(Token = "0x600A7C3")] [Address(RVA = "0x3C1270", Offset = "0x3BFC70", VA = "0x1803C1270")] public void SetIssuer(X509Name issuer) { this.issuer = issuer; } // Token: 0x0600A7C4 RID: 42948 RVA: 0x00270888 File Offset: 0x0026EA88 [Token(Token = "0x600A7C4")] [Address(RVA = "0x277A730", Offset = "0x2779130", VA = "0x18277A730")] public void SetStartDate(DerUtcTime startDate) { Time time = new Time(startDate); this.startDate = time; } // Token: 0x0600A7C5 RID: 42949 RVA: 0x002708A4 File Offset: 0x0026EAA4 [Token(Token = "0x600A7C5")] [Address(RVA = "0x3C1290", Offset = "0x3BFC90", VA = "0x1803C1290")] public void SetStartDate(Time startDate) { this.startDate = startDate; } // Token: 0x0600A7C6 RID: 42950 RVA: 0x002708B8 File Offset: 0x0026EAB8 [Token(Token = "0x600A7C6")] [Address(RVA = "0x277A5A0", Offset = "0x2778FA0", VA = "0x18277A5A0")] public void SetEndDate(DerUtcTime endDate) { Time time = new Time(endDate); this.endDate = time; } // Token: 0x0600A7C7 RID: 42951 RVA: 0x002708D4 File Offset: 0x0026EAD4 [Token(Token = "0x600A7C7")] [Address(RVA = "0x421E00", Offset = "0x420800", VA = "0x180421E00")] public void SetEndDate(Time endDate) { this.endDate = endDate; } // Token: 0x0600A7C8 RID: 42952 RVA: 0x002708E8 File Offset: 0x0026EAE8 [Token(Token = "0x600A7C8")] [Address(RVA = "0x3D3460", Offset = "0x3D1E60", VA = "0x1803D3460")] public void SetSubject(X509Name subject) { this.subject = subject; } // Token: 0x0600A7C9 RID: 42953 RVA: 0x002708FC File Offset: 0x0026EAFC [Token(Token = "0x600A7C9")] [Address(RVA = "0x3EDEC0", Offset = "0x3EC8C0", VA = "0x1803EDEC0")] public void SetIssuerUniqueID(DerBitString uniqueID) { this.issuerUniqueID = uniqueID; } // Token: 0x0600A7CA RID: 42954 RVA: 0x00270910 File Offset: 0x0026EB10 [Token(Token = "0x600A7CA")] [Address(RVA = "0x52F860", Offset = "0x52E260", VA = "0x18052F860")] public void SetSubjectUniqueID(DerBitString uniqueID) { this.subjectUniqueID = uniqueID; } // Token: 0x0600A7CB RID: 42955 RVA: 0x00270924 File Offset: 0x0026EB24 [Token(Token = "0x600A7CB")] [Address(RVA = "0x3EDED0", Offset = "0x3EC8D0", VA = "0x1803EDED0")] public void SetSubjectPublicKeyInfo(SubjectPublicKeyInfo pubKeyInfo) { this.subjectPublicKeyInfo = pubKeyInfo; } // Token: 0x0600A7CC RID: 42956 RVA: 0x00270938 File Offset: 0x0026EB38 [Token(Token = "0x600A7CC")] [Address(RVA = "0x277A610", Offset = "0x2779010", VA = "0x18277A610")] public void SetExtensions(X509Extensions extensions) { this.extensions = extensions; if (extensions != 0) { IDictionary dictionary = extensions.extensions; DerObjectIdentifier subjectDirectoryAttributes = X509Extensions.SubjectDirectoryAttributes; this.altNamePresentAndCritical = true; } } // Token: 0x0600A7CD RID: 42957 RVA: 0x0027096C File Offset: 0x0026EB6C [Token(Token = "0x600A7CD")] [Address(RVA = "0x277A020", Offset = "0x2778A20", VA = "0x18277A020")] public TbsCertificateStructure GenerateTbsCertificate() { /* An exception occurred when decompiling this method (0600A7CD) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateStructure BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.V3TbsCertificateGenerator::GenerateTbsCertificate() ---> System.Exception: Basic block has to end with unconditional control flow. { IL_25F: stloc:InvalidOperationException(var_28_269, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("not all mandatory fields set in V3 TBScertificate 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: 0x04006CF3 RID: 27891 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006CF3")] internal DerTaggedObject version; // Token: 0x04006CF4 RID: 27892 [global::Cpp2IlInjected.FieldOffset(Offset = "0x18")] [Token(Token = "0x4006CF4")] internal DerInteger serialNumber; // Token: 0x04006CF5 RID: 27893 [global::Cpp2IlInjected.FieldOffset(Offset = "0x20")] [Token(Token = "0x4006CF5")] internal AlgorithmIdentifier signature; // Token: 0x04006CF6 RID: 27894 [global::Cpp2IlInjected.FieldOffset(Offset = "0x28")] [Token(Token = "0x4006CF6")] internal X509Name issuer; // Token: 0x04006CF7 RID: 27895 [global::Cpp2IlInjected.FieldOffset(Offset = "0x30")] [Token(Token = "0x4006CF7")] internal Time startDate; // Token: 0x04006CF8 RID: 27896 [global::Cpp2IlInjected.FieldOffset(Offset = "0x38")] [Token(Token = "0x4006CF8")] internal Time endDate; // Token: 0x04006CF9 RID: 27897 [global::Cpp2IlInjected.FieldOffset(Offset = "0x40")] [Token(Token = "0x4006CF9")] internal X509Name subject; // Token: 0x04006CFA RID: 27898 [global::Cpp2IlInjected.FieldOffset(Offset = "0x48")] [Token(Token = "0x4006CFA")] internal SubjectPublicKeyInfo subjectPublicKeyInfo; // Token: 0x04006CFB RID: 27899 [global::Cpp2IlInjected.FieldOffset(Offset = "0x50")] [Token(Token = "0x4006CFB")] internal X509Extensions extensions; // Token: 0x04006CFC RID: 27900 [global::Cpp2IlInjected.FieldOffset(Offset = "0x58")] [Token(Token = "0x4006CFC")] private bool altNamePresentAndCritical; // Token: 0x04006CFD RID: 27901 [global::Cpp2IlInjected.FieldOffset(Offset = "0x60")] [Token(Token = "0x4006CFD")] private DerBitString issuerUniqueID; // Token: 0x04006CFE RID: 27902 [global::Cpp2IlInjected.FieldOffset(Offset = "0x68")] [Token(Token = "0x4006CFE")] private DerBitString subjectUniqueID; } }