160 lines
6.7 KiB
C#
160 lines
6.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02002045 RID: 8261
|
|
[Token(Token = "0x2002045")]
|
|
public class PollRepContent : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CF37 RID: 53047 RVA: 0x002F20C4 File Offset: 0x002F02C4
|
|
[Token(Token = "0x600CF37")]
|
|
[Address(RVA = "0x2FEF820", Offset = "0x2FEE820", VA = "0x182FEF820")]
|
|
private PollRepContent(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
DerInteger derInteger;
|
|
this.certReqId = derInteger;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
DerInteger derInteger2;
|
|
this.checkAfter = derInteger2;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable > (ulong)2L)
|
|
{
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
PkiFreeText pkiFreeText;
|
|
this.reason = pkiFreeText;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CF38 RID: 53048 RVA: 0x002F2110 File Offset: 0x002F0310
|
|
[Token(Token = "0x600CF38")]
|
|
[Address(RVA = "0x2FEF3E0", Offset = "0x2FEE3E0", VA = "0x182FEF3E0")]
|
|
public static PollRepContent GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CF38)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PollRepContent::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_3A:
|
|
stloc:string(var_9_40, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_10_58, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_40)), 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: 0x0600CF39 RID: 53049 RVA: 0x002F2178 File Offset: 0x002F0378
|
|
[Token(Token = "0x600CF39")]
|
|
[Address(RVA = "0x2E8C5B0", Offset = "0x2E8B5B0", VA = "0x182E8C5B0")]
|
|
public PollRepContent(DerInteger certReqId, DerInteger checkAfter)
|
|
{
|
|
this.certReqId = certReqId;
|
|
this.checkAfter = checkAfter;
|
|
this.reason = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x0600CF3A RID: 53050 RVA: 0x002F21A4 File Offset: 0x002F03A4
|
|
[Token(Token = "0x600CF3A")]
|
|
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
|
|
public PollRepContent(DerInteger certReqId, DerInteger checkAfter, PkiFreeText reason)
|
|
{
|
|
this.certReqId = certReqId;
|
|
this.checkAfter = checkAfter;
|
|
this.reason = reason;
|
|
}
|
|
|
|
// Token: 0x170020EB RID: 8427
|
|
// (get) Token: 0x0600CF3B RID: 53051 RVA: 0x002F21CC File Offset: 0x002F03CC
|
|
[Token(Token = "0x170020EB")]
|
|
public virtual DerInteger CertReqID
|
|
{
|
|
[Token(Token = "0x600CF3B")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.certReqId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020EC RID: 8428
|
|
// (get) Token: 0x0600CF3C RID: 53052 RVA: 0x002F21E0 File Offset: 0x002F03E0
|
|
[Token(Token = "0x170020EC")]
|
|
public virtual DerInteger CheckAfter
|
|
{
|
|
[Token(Token = "0x600CF3C")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.checkAfter;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020ED RID: 8429
|
|
// (get) Token: 0x0600CF3D RID: 53053 RVA: 0x002F21F4 File Offset: 0x002F03F4
|
|
[Token(Token = "0x170020ED")]
|
|
public virtual PkiFreeText Reason
|
|
{
|
|
[Token(Token = "0x600CF3D")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
|
get
|
|
{
|
|
return this.reason;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CF3E RID: 53054 RVA: 0x002F2208 File Offset: 0x002F0408
|
|
[Token(Token = "0x600CF3E")]
|
|
[Address(RVA = "0x2FEF660", Offset = "0x2FEE660", VA = "0x182FEF660", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
DerInteger derInteger = this.certReqId;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[0] = derInteger;
|
|
DerInteger derInteger2 = this.checkAfter;
|
|
if (derInteger2 != 0)
|
|
{
|
|
}
|
|
array[1] = derInteger2;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
PkiFreeText pkiFreeText = this.reason;
|
|
if (pkiFreeText != 0)
|
|
{
|
|
}
|
|
array2[0] = pkiFreeText;
|
|
asn1EncodableVector.AddOptional(array2);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400835C RID: 33628
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400835C")]
|
|
private readonly DerInteger certReqId;
|
|
|
|
// Token: 0x0400835D RID: 33629
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400835D")]
|
|
private readonly DerInteger checkAfter;
|
|
|
|
// Token: 0x0400835E RID: 33630
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400835E")]
|
|
private readonly PkiFreeText reason;
|
|
}
|
|
}
|