162 lines
6.3 KiB
C#
162 lines
6.3 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001E14 RID: 7700
|
|
[Token(Token = "0x2001E14")]
|
|
public class PrivateKeyUsagePeriod : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C2F0 RID: 49904 RVA: 0x002C6710 File Offset: 0x002C4910
|
|
[Token(Token = "0x600C2F0")]
|
|
[Address(RVA = "0x2B3CBE0", Offset = "0x2B3B9E0", VA = "0x182B3CBE0")]
|
|
public static PrivateKeyUsagePeriod GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C2F0)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.PrivateKeyUsagePeriod BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.PrivateKeyUsagePeriod::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_3C:
|
|
stloc:string(var_9_42, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_10_5A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in GetInstance: "), ldloc:string(var_9_42)), 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: 0x0600C2F1 RID: 49905 RVA: 0x002C6778 File Offset: 0x002C4978
|
|
[Token(Token = "0x600C2F1")]
|
|
[Address(RVA = "0x2B3D080", Offset = "0x2B3BE80", VA = "0x182B3D080")]
|
|
private PrivateKeyUsagePeriod(Asn1Sequence seq)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
base..ctor();
|
|
IEnumerator enumerator = seq.GetEnumerator();
|
|
DerGeneralizedTime instance2;
|
|
if (enumerator != 0)
|
|
{
|
|
if (num < enumerator)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
ulong num2;
|
|
num2 += (ulong)1L;
|
|
int num3 = 0;
|
|
if (num == 0)
|
|
{
|
|
goto IL_67;
|
|
}
|
|
if (num3 != 0)
|
|
{
|
|
while (num3 != 1)
|
|
{
|
|
}
|
|
int num4 = 0;
|
|
DerGeneralizedTime instance = DerGeneralizedTime.GetInstance(num, num4 != 0);
|
|
this._notAfter = instance;
|
|
}
|
|
int num5 = 0;
|
|
instance2 = DerGeneralizedTime.GetInstance(num, num5 != 0);
|
|
this._notBefore = instance2;
|
|
}
|
|
if (instance2 != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return;
|
|
IL_67:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001E29 RID: 7721
|
|
// (get) Token: 0x0600C2F2 RID: 49906 RVA: 0x002C67F8 File Offset: 0x002C49F8
|
|
[Token(Token = "0x17001E29")]
|
|
public DerGeneralizedTime NotBefore
|
|
{
|
|
[Token(Token = "0x600C2F2")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this._notBefore;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001E2A RID: 7722
|
|
// (get) Token: 0x0600C2F3 RID: 49907 RVA: 0x002C680C File Offset: 0x002C4A0C
|
|
[Token(Token = "0x17001E2A")]
|
|
public DerGeneralizedTime NotAfter
|
|
{
|
|
[Token(Token = "0x600C2F3")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this._notAfter;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C2F4 RID: 49908 RVA: 0x002C6820 File Offset: 0x002C4A20
|
|
[Token(Token = "0x600C2F4")]
|
|
[Address(RVA = "0x2B3CE70", Offset = "0x2B3BC70", VA = "0x182B3CE70", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this._notBefore != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerGeneralizedTime notBefore = this._notBefore;
|
|
int num;
|
|
int num2;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, notBefore);
|
|
num2 = 0;
|
|
num = 0;
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
if (this._notAfter != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
DerGeneralizedTime notAfter = this._notAfter;
|
|
int num3;
|
|
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num3 != 0, 1, notAfter);
|
|
num3 = 0;
|
|
if (derTaggedObject2 != 0)
|
|
{
|
|
}
|
|
array2[0] = derTaggedObject2;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007AE3 RID: 31459
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007AE3")]
|
|
private DerGeneralizedTime _notBefore;
|
|
|
|
// Token: 0x04007AE4 RID: 31460
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007AE4")]
|
|
private DerGeneralizedTime _notAfter;
|
|
}
|
|
}
|