m
This commit is contained in:
+161
@@ -0,0 +1,161 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001EF4 RID: 7924
|
||||
[Token(Token = "0x2001EF4")]
|
||||
public class PrivateKeyUsagePeriod : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C6BE RID: 50878 RVA: 0x002CEF74 File Offset: 0x002CD174
|
||||
[Token(Token = "0x600C6BE")]
|
||||
[Address(RVA = "0x2E84220", Offset = "0x2E83220", VA = "0x182E84220")]
|
||||
public static PrivateKeyUsagePeriod GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C6BE)
|
||||
|
||||
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: 0x0600C6BF RID: 50879 RVA: 0x002CEFDC File Offset: 0x002CD1DC
|
||||
[Token(Token = "0x600C6BF")]
|
||||
[Address(RVA = "0x2E846C0", Offset = "0x2E836C0", VA = "0x182E846C0")]
|
||||
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: 0x17001EC6 RID: 7878
|
||||
// (get) Token: 0x0600C6C0 RID: 50880 RVA: 0x002CF05C File Offset: 0x002CD25C
|
||||
[Token(Token = "0x17001EC6")]
|
||||
public DerGeneralizedTime NotBefore
|
||||
{
|
||||
[Token(Token = "0x600C6C0")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this._notBefore;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001EC7 RID: 7879
|
||||
// (get) Token: 0x0600C6C1 RID: 50881 RVA: 0x002CF070 File Offset: 0x002CD270
|
||||
[Token(Token = "0x17001EC7")]
|
||||
public DerGeneralizedTime NotAfter
|
||||
{
|
||||
[Token(Token = "0x600C6C1")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this._notAfter;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C6C2 RID: 50882 RVA: 0x002CF084 File Offset: 0x002CD284
|
||||
[Token(Token = "0x600C6C2")]
|
||||
[Address(RVA = "0x2E844B0", Offset = "0x2E834B0", VA = "0x182E844B0", 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: 0x04007C9C RID: 31900
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007C9C")]
|
||||
private DerGeneralizedTime _notBefore;
|
||||
|
||||
// Token: 0x04007C9D RID: 31901
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007C9D")]
|
||||
private DerGeneralizedTime _notAfter;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user