using System; using System.Globalization; using System.Runtime.InteropServices; using Cpp2IlInjected; namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509 { // Token: 0x02001847 RID: 6215 [Token(Token = "0x2001847")] [StructLayout(3)] public class Time : Asn1Encodable, IAsn1Choice { // Token: 0x0600A781 RID: 42881 RVA: 0x0026F7D8 File Offset: 0x0026D9D8 [Token(Token = "0x600A781")] [Address(RVA = "0x2777140", Offset = "0x2775B40", VA = "0x182777140")] public static Time GetInstance(Asn1TaggedObject obj, bool explicitly) { return Time.GetInstance(obj.GetObject()); } // Token: 0x0600A782 RID: 42882 RVA: 0x0026F7F8 File Offset: 0x0026D9F8 [Token(Token = "0x600A782")] [Address(RVA = "0x27777E0", Offset = "0x27761E0", VA = "0x1827777E0")] public Time(Asn1Object time) { /* An exception occurred when decompiling this method (0600A782) ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Time::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_29: stloc:ArgumentException(var_3_33, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("unknown object passed to Time"))) } 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: 0x0600A783 RID: 42883 RVA: 0x0026F838 File Offset: 0x0026DA38 [Token(Token = "0x600A783")] [Address(RVA = "0x2777910", Offset = "0x2776310", VA = "0x182777910")] public Time(DateTime date) { CultureInfo invariantCulture = CultureInfo.InvariantCulture; int num = 0; string text; int num2 = int.Parse(text.Substring(num, 4)); num2 += -1950; if (num2 <= 99) { DerUtcTime derUtcTime = new DerUtcTime(text.Substring(2)); this.time = derUtcTime; return; } DerGeneralizedTime derGeneralizedTime = new DerGeneralizedTime(text); this.time = derGeneralizedTime; } // Token: 0x0600A784 RID: 42884 RVA: 0x0026F8A4 File Offset: 0x0026DAA4 [Token(Token = "0x600A784")] [Address(RVA = "0x2777170", Offset = "0x2775B70", VA = "0x182777170")] public static Time GetInstance(object obj) { /* An exception occurred when decompiling this method (0600A784) ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Time BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.Time::GetInstance(System.Object) ---> System.Exception: Basic block has to end with unconditional control flow. { IL_34: stloc:string(var_8_3A, call:string(Platform::GetTypeName, ldloc:object(obj))) stloc:ArgumentException(var_9_52, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_8_3A)), 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: 0x0600A785 RID: 42885 RVA: 0x0026F904 File Offset: 0x0026DB04 [Token(Token = "0x600A785")] [Address(RVA = "0x2777400", Offset = "0x2775E00", VA = "0x182777400")] public string GetTime() { Asn1Object asn1Object; do { asn1Object = this.time; } while ((asn1Object != 0 && asn1Object != 0 && (asn1Object == 0 || asn1Object == 0)) || asn1Object == 0 || asn1Object == 0); string text; return text; } // Token: 0x0600A786 RID: 42886 RVA: 0x0026F944 File Offset: 0x0026DB44 [Token(Token = "0x600A786")] [Address(RVA = "0x27775A0", Offset = "0x2775FA0", VA = "0x1827775A0")] public DateTime ToDateTime() { Asn1Object asn1Object = this.time; if (asn1Object != 0 && asn1Object != 0 && (asn1Object == 0 || asn1Object == 0)) { throw new NullReferenceException(); } if (asn1Object != 0 && asn1Object != 0) { DateTime dateTime; return dateTime; } throw new NullReferenceException(); } // Token: 0x0600A787 RID: 42887 RVA: 0x0026F99C File Offset: 0x0026DB9C [Token(Token = "0x600A787")] [Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "5")] public override Asn1Object ToAsn1Object() { return this.time; } // Token: 0x0600A788 RID: 42888 RVA: 0x0026F9B0 File Offset: 0x0026DBB0 [Token(Token = "0x600A788")] [Address(RVA = "0x27777D0", Offset = "0x27761D0", VA = "0x1827777D0", Slot = "3")] public override string ToString() { return this.GetTime(); } // Token: 0x04006CD4 RID: 27860 [global::Cpp2IlInjected.FieldOffset(Offset = "0x10")] [Token(Token = "0x4006CD4")] private readonly Asn1Object time; } }