m
This commit is contained in:
@@ -0,0 +1,176 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp
|
||||
{
|
||||
// Token: 0x02001F83 RID: 8067
|
||||
[Token(Token = "0x2001F83")]
|
||||
public class CertStatus : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600CA19 RID: 51737 RVA: 0x002DD488 File Offset: 0x002DB688
|
||||
[Token(Token = "0x600CA19")]
|
||||
[Address(RVA = "0x2F7D1D0", Offset = "0x2F7C1D0", VA = "0x182F7D1D0")]
|
||||
public CertStatus()
|
||||
{
|
||||
this.tagNo = (int)((ulong)0L);
|
||||
DerNull instance = DerNull.Instance;
|
||||
this.value = instance;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA1A RID: 51738 RVA: 0x002DD4B4 File Offset: 0x002DB6B4
|
||||
[Token(Token = "0x600CA1A")]
|
||||
[Address(RVA = "0x23B91E0", Offset = "0x23B81E0", VA = "0x1823B91E0")]
|
||||
public CertStatus(RevokedInfo info)
|
||||
{
|
||||
this.tagNo = (int)((ulong)1L);
|
||||
this.value = info;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA1B RID: 51739 RVA: 0x002DD4D8 File Offset: 0x002DB6D8
|
||||
[Token(Token = "0x600CA1B")]
|
||||
[Address(RVA = "0xA3B760", Offset = "0xA3A760", VA = "0x180A3B760")]
|
||||
public CertStatus(int tagNo, Asn1Encodable value)
|
||||
{
|
||||
this.tagNo = tagNo;
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA1C RID: 51740 RVA: 0x002DD4FC File Offset: 0x002DB6FC
|
||||
[Token(Token = "0x600CA1C")]
|
||||
[Address(RVA = "0x2F7D250", Offset = "0x2F7C250", VA = "0x182F7D250")]
|
||||
public CertStatus(Asn1TaggedObject choice)
|
||||
{
|
||||
int num = choice.tagNo;
|
||||
this.tagNo = num;
|
||||
int num2 = choice.tagNo;
|
||||
if (num2 == 0)
|
||||
{
|
||||
DerNull instance = DerNull.Instance;
|
||||
this.value = instance;
|
||||
return;
|
||||
}
|
||||
if (num2 == 0 || num2 == 1)
|
||||
{
|
||||
int num3 = 0;
|
||||
RevokedInfo instance2 = RevokedInfo.GetInstance(Asn1Sequence.GetInstance(choice, num3 != 0));
|
||||
this.value = instance2;
|
||||
return;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CA1D RID: 51741 RVA: 0x002DD580 File Offset: 0x002DB780
|
||||
[Token(Token = "0x600CA1D")]
|
||||
[Address(RVA = "0x2F7CE80", Offset = "0x2F7BE80", VA = "0x182F7CE80")]
|
||||
public static CertStatus GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
if (obj == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
CertStatus certStatus = new CertStatus();
|
||||
int num = 0;
|
||||
if (obj != 0)
|
||||
{
|
||||
certStatus.tagNo = num;
|
||||
if (certStatus != 0)
|
||||
{
|
||||
if (certStatus != 0 && certStatus != (ulong)1L)
|
||||
{
|
||||
IL_81:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
RevokedInfo instance = RevokedInfo.GetInstance(asn1Sequence);
|
||||
}
|
||||
DerNull instance2 = DerNull.Instance;
|
||||
certStatus.value = instance2;
|
||||
return certStatus;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (obj == 0 || obj != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
string typeName = Platform.GetTypeName(obj);
|
||||
string text = "unknown object in factory: " + typeName;
|
||||
ArgumentException ex = new ArgumentException(text, "obj");
|
||||
goto IL_81;
|
||||
}
|
||||
|
||||
// Token: 0x17001F83 RID: 8067
|
||||
// (get) Token: 0x0600CA1E RID: 51742 RVA: 0x002DD630 File Offset: 0x002DB830
|
||||
[Token(Token = "0x17001F83")]
|
||||
public int TagNo
|
||||
{
|
||||
[Token(Token = "0x600CA1E")]
|
||||
[Address(RVA = "0x40F000", Offset = "0x40E000", VA = "0x18040F000")]
|
||||
get
|
||||
{
|
||||
return this.tagNo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F84 RID: 8068
|
||||
// (get) Token: 0x0600CA1F RID: 51743 RVA: 0x002DD644 File Offset: 0x002DB844
|
||||
[Token(Token = "0x17001F84")]
|
||||
public Asn1Encodable Status
|
||||
{
|
||||
[Token(Token = "0x600CA1F")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA20 RID: 51744 RVA: 0x002DD658 File Offset: 0x002DB858
|
||||
[Token(Token = "0x600CA20")]
|
||||
[Address(RVA = "0x2F7D160", Offset = "0x2F7C160", VA = "0x182F7D160", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA20)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.CertStatus::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:int32(var_0_06, ldfld:int32(CertStatus::tagNo, ldloc:CertStatus(this)))
|
||||
stloc:Asn1Encodable(var_1_0D, ldfld:Asn1Encodable(CertStatus::value, ldloc:CertStatus(this)))
|
||||
stloc:DerTaggedObject(var_2_17, newobj:DerTaggedObject(DerTaggedObject::.ctor, ldloc:int32[exp:bool](var_4), ldloc:int32(var_0_06), ldloc:Asn1Encodable(var_1_0D)))
|
||||
stloc:int32(var_4, ldc.i4:int32(0))
|
||||
}
|
||||
|
||||
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: 0x04007FAA RID: 32682
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007FAA")]
|
||||
private readonly int tagNo;
|
||||
|
||||
// Token: 0x04007FAB RID: 32683
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007FAB")]
|
||||
private readonly Asn1Encodable value;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user