m
This commit is contained in:
@@ -0,0 +1,303 @@
|
||||
using System;
|
||||
using System.Globalization;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1
|
||||
{
|
||||
// Token: 0x02001E96 RID: 7830
|
||||
[Token(Token = "0x2001E96")]
|
||||
public class DerUtcTime : Asn1Object
|
||||
{
|
||||
// Token: 0x0600C482 RID: 50306 RVA: 0x002C64A4 File Offset: 0x002C46A4
|
||||
[Token(Token = "0x600C482")]
|
||||
[Address(RVA = "0x23B1F80", Offset = "0x23B0F80", VA = "0x1823B1F80")]
|
||||
public static DerUtcTime GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C482)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerUtcTime BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerUtcTime::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_16:
|
||||
stloc:string(var_3_1C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_4_2D, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("illegal object in GetInstance: "), ldloc:string(var_3_1C))))
|
||||
}
|
||||
|
||||
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: 0x0600C483 RID: 50307 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600C483")]
|
||||
[Address(RVA = "0x23B20B0", Offset = "0x23B10B0", VA = "0x1823B20B0")]
|
||||
public static DerUtcTime GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x0600C484 RID: 50308 RVA: 0x002C64E0 File Offset: 0x002C46E0
|
||||
[Token(Token = "0x600C484")]
|
||||
[Address(RVA = "0x23B2500", Offset = "0x23B1500", VA = "0x1823B2500")]
|
||||
public DerUtcTime(string time)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C484)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerUtcTime::.ctor(System.String)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:ArgumentNullException(var_4_3D, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("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.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: 0x0600C485 RID: 50309 RVA: 0x002C652C File Offset: 0x002C472C
|
||||
[Token(Token = "0x600C485")]
|
||||
[Address(RVA = "0x23B2630", Offset = "0x23B1630", VA = "0x1823B2630")]
|
||||
public DerUtcTime(DateTime time)
|
||||
{
|
||||
CultureInfo invariantCulture = CultureInfo.InvariantCulture;
|
||||
string text2;
|
||||
string text = text2 + "Z";
|
||||
this.time = text;
|
||||
}
|
||||
|
||||
// Token: 0x0600C486 RID: 50310 RVA: 0x002C655C File Offset: 0x002C475C
|
||||
[Token(Token = "0x600C486")]
|
||||
[Address(RVA = "0x23AAFA0", Offset = "0x23A9FA0", VA = "0x1823AAFA0")]
|
||||
internal DerUtcTime(byte[] bytes)
|
||||
{
|
||||
string text = Strings.FromAsciiByteArray(bytes);
|
||||
this.time = text;
|
||||
}
|
||||
|
||||
// Token: 0x0600C487 RID: 50311 RVA: 0x002C6580 File Offset: 0x002C4780
|
||||
[Token(Token = "0x600C487")]
|
||||
[Address(RVA = "0x23B24B0", Offset = "0x23B14B0", VA = "0x1823B24B0")]
|
||||
public DateTime ToDateTime()
|
||||
{
|
||||
string timeString = this.TimeString;
|
||||
return this.ParseDateString(timeString, "yyMMddHHmmss'GMT'zzz");
|
||||
}
|
||||
|
||||
// Token: 0x0600C488 RID: 50312 RVA: 0x002C65A0 File Offset: 0x002C47A0
|
||||
[Token(Token = "0x600C488")]
|
||||
[Address(RVA = "0x23B2400", Offset = "0x23B1400", VA = "0x1823B2400")]
|
||||
public DateTime ToAdjustedDateTime()
|
||||
{
|
||||
string timeString = this.TimeString;
|
||||
int num = 0;
|
||||
char c = timeString[num];
|
||||
string text = timeString + timeString;
|
||||
return this.ParseDateString(text, "yyyyMMddHHmmss'GMT'zzz");
|
||||
}
|
||||
|
||||
// Token: 0x0600C489 RID: 50313 RVA: 0x002C65D8 File Offset: 0x002C47D8
|
||||
[Token(Token = "0x600C489")]
|
||||
[Address(RVA = "0x23B2340", Offset = "0x23B1340", VA = "0x1823B2340")]
|
||||
private DateTime ParseDateString(string dateStr, string formatStr)
|
||||
{
|
||||
DateTimeFormatInfo invariantInfo = DateTimeFormatInfo.InvariantInfo;
|
||||
DateTime dateTime = DateTime.ParseExact(dateStr, formatStr, invariantInfo);
|
||||
DateTime dateTime2;
|
||||
return dateTime2;
|
||||
}
|
||||
|
||||
// Token: 0x17001E52 RID: 7762
|
||||
// (get) Token: 0x0600C48A RID: 50314 RVA: 0x002C65F8 File Offset: 0x002C47F8
|
||||
[Token(Token = "0x17001E52")]
|
||||
public string TimeString
|
||||
{
|
||||
[Token(Token = "0x600C48A")]
|
||||
[Address(RVA = "0x23B2730", Offset = "0x23B1730", VA = "0x1823B2730")]
|
||||
get
|
||||
{
|
||||
uint num2;
|
||||
int num = this.time.IndexOf((char)num2);
|
||||
uint num4;
|
||||
int num3 = this.time.IndexOf((char)num4);
|
||||
string text = this.time;
|
||||
if (text.m_stringLength != 11)
|
||||
{
|
||||
int num5 = 0;
|
||||
return text.Substring(num5, 12) + "GMT+00:00";
|
||||
}
|
||||
int num6 = 0;
|
||||
string text2 = text.Substring(num6, 10);
|
||||
uint num8;
|
||||
int num7 = this.time.IndexOf((char)num8);
|
||||
uint num9;
|
||||
num7 = this.time.IndexOf((char)num9);
|
||||
string text3 = this.time;
|
||||
int stringLength = text3.m_stringLength;
|
||||
string text4;
|
||||
if (num7 == stringLength)
|
||||
{
|
||||
text4 = text3 + "00";
|
||||
}
|
||||
string[] array = new string[5];
|
||||
string text7;
|
||||
if (num7 != 10)
|
||||
{
|
||||
int num10 = 0;
|
||||
string text5 = text4.Substring(num10, 12);
|
||||
if (text5 != 0)
|
||||
{
|
||||
}
|
||||
array[0] = text5;
|
||||
if ("GMT" != 0)
|
||||
{
|
||||
}
|
||||
array[1] = "GMT";
|
||||
string text6 = text4.Substring(12, 3);
|
||||
if (text6 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = text6;
|
||||
if (":" != 0)
|
||||
{
|
||||
}
|
||||
array[3] = ":";
|
||||
text7 = text4.Substring(15, 2);
|
||||
if (text7 != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
int num11 = 0;
|
||||
string text8 = text7.Substring(num11, 10);
|
||||
if (text8 != 0)
|
||||
{
|
||||
}
|
||||
array[0] = text8;
|
||||
if ("00GMT" != 0)
|
||||
{
|
||||
}
|
||||
array[1] = "00GMT";
|
||||
string text9 = text7.Substring(10, 3);
|
||||
if (text9 != 0)
|
||||
{
|
||||
}
|
||||
array[2] = text9;
|
||||
if (":" != 0)
|
||||
{
|
||||
}
|
||||
array[3] = ":";
|
||||
string text10 = text7.Substring(13, 2);
|
||||
if (text10 != 0)
|
||||
{
|
||||
}
|
||||
array[4] = text10;
|
||||
return string.Concat(array);
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E53 RID: 7763
|
||||
// (get) Token: 0x0600C48B RID: 50315 RVA: 0x002C67B0 File Offset: 0x002C49B0
|
||||
[Token(Token = "0x17001E53")]
|
||||
[Obsolete]
|
||||
public string AdjustedTime
|
||||
{
|
||||
[Token(Token = "0x600C48B")]
|
||||
[Address(RVA = "0x23B26C0", Offset = "0x23B16C0", VA = "0x1823B26C0")]
|
||||
get
|
||||
{
|
||||
string timeString = this.TimeString;
|
||||
int num = 0;
|
||||
char c = timeString[num];
|
||||
return timeString + timeString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E54 RID: 7764
|
||||
// (get) Token: 0x0600C48C RID: 50316 RVA: 0x002C67DC File Offset: 0x002C49DC
|
||||
[Token(Token = "0x17001E54")]
|
||||
public string AdjustedTimeString
|
||||
{
|
||||
[Token(Token = "0x600C48C")]
|
||||
[Address(RVA = "0x23B26C0", Offset = "0x23B16C0", VA = "0x1823B26C0")]
|
||||
get
|
||||
{
|
||||
string timeString = this.TimeString;
|
||||
int num = 0;
|
||||
char c = timeString[num];
|
||||
return timeString + timeString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C48D RID: 50317 RVA: 0x002C6808 File Offset: 0x002C4A08
|
||||
[Token(Token = "0x600C48D")]
|
||||
[Address(RVA = "0x23A9C50", Offset = "0x23A8C50", VA = "0x1823A9C50")]
|
||||
private byte[] GetOctets()
|
||||
{
|
||||
return Strings.ToAsciiByteArray(this.time);
|
||||
}
|
||||
|
||||
// Token: 0x0600C48E RID: 50318 RVA: 0x002C6820 File Offset: 0x002C4A20
|
||||
[Token(Token = "0x600C48E")]
|
||||
[Address(RVA = "0x23B1F00", Offset = "0x23B0F00", VA = "0x1823B1F00", Slot = "6")]
|
||||
internal override void Encode(DerOutputStream derOut)
|
||||
{
|
||||
int length = Strings.ToAsciiByteArray(this.time).Length;
|
||||
derOut.WriteLength(length);
|
||||
int num = derOut.ReadByte();
|
||||
}
|
||||
|
||||
// Token: 0x0600C48F RID: 50319 RVA: 0x002C6854 File Offset: 0x002C4A54
|
||||
[Token(Token = "0x600C48F")]
|
||||
[Address(RVA = "0x23B1E60", Offset = "0x23B0E60", VA = "0x1823B1E60", Slot = "7")]
|
||||
protected override bool Asn1Equals(Asn1Object asn1Object)
|
||||
{
|
||||
if (asn1Object != 0 && asn1Object != 0)
|
||||
{
|
||||
string text = this.time;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C490 RID: 50320 RVA: 0x002C687C File Offset: 0x002C4A7C
|
||||
[Token(Token = "0x600C490")]
|
||||
[Address(RVA = "0x40F2B0", Offset = "0x40E2B0", VA = "0x18040F2B0", Slot = "8")]
|
||||
protected override int Asn1GetHashCode()
|
||||
{
|
||||
object obj = ((ICloneable)this.time).Clone();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C491 RID: 50321 RVA: 0x002C689C File Offset: 0x002C4A9C
|
||||
[Token(Token = "0x600C491")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
return this.time;
|
||||
}
|
||||
|
||||
// Token: 0x04007B82 RID: 31618
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B82")]
|
||||
private readonly string time;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user