160 lines
6.7 KiB
C#
160 lines
6.7 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02001F65 RID: 8037
|
|
[Token(Token = "0x2001F65")]
|
|
public class PollRepContent : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CB69 RID: 52073 RVA: 0x002E996C File Offset: 0x002E7B6C
|
|
[Token(Token = "0x600CB69")]
|
|
[Address(RVA = "0x2AE1000", Offset = "0x2ADFE00", VA = "0x182AE1000")]
|
|
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: 0x0600CB6A RID: 52074 RVA: 0x002E99B8 File Offset: 0x002E7BB8
|
|
[Token(Token = "0x600CB6A")]
|
|
[Address(RVA = "0x2AE0B80", Offset = "0x2ADF980", VA = "0x182AE0B80")]
|
|
public static PollRepContent GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CB6A)
|
|
|
|
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: 0x0600CB6B RID: 52075 RVA: 0x002E9A20 File Offset: 0x002E7C20
|
|
[Token(Token = "0x600CB6B")]
|
|
[Address(RVA = "0x2AE0FC0", Offset = "0x2ADFDC0", VA = "0x182AE0FC0")]
|
|
public PollRepContent(DerInteger certReqId, DerInteger checkAfter)
|
|
{
|
|
this.certReqId = certReqId;
|
|
this.checkAfter = checkAfter;
|
|
this.reason = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x0600CB6C RID: 52076 RVA: 0x002E9A4C File Offset: 0x002E7C4C
|
|
[Token(Token = "0x600CB6C")]
|
|
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
|
|
public PollRepContent(DerInteger certReqId, DerInteger checkAfter, PkiFreeText reason)
|
|
{
|
|
this.certReqId = certReqId;
|
|
this.checkAfter = checkAfter;
|
|
this.reason = reason;
|
|
}
|
|
|
|
// Token: 0x1700204E RID: 8270
|
|
// (get) Token: 0x0600CB6D RID: 52077 RVA: 0x002E9A74 File Offset: 0x002E7C74
|
|
[Token(Token = "0x1700204E")]
|
|
public virtual DerInteger CertReqID
|
|
{
|
|
[Token(Token = "0x600CB6D")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
|
get
|
|
{
|
|
return this.certReqId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x1700204F RID: 8271
|
|
// (get) Token: 0x0600CB6E RID: 52078 RVA: 0x002E9A88 File Offset: 0x002E7C88
|
|
[Token(Token = "0x1700204F")]
|
|
public virtual DerInteger CheckAfter
|
|
{
|
|
[Token(Token = "0x600CB6E")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
|
get
|
|
{
|
|
return this.checkAfter;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002050 RID: 8272
|
|
// (get) Token: 0x0600CB6F RID: 52079 RVA: 0x002E9A9C File Offset: 0x002E7C9C
|
|
[Token(Token = "0x17002050")]
|
|
public virtual PkiFreeText Reason
|
|
{
|
|
[Token(Token = "0x600CB6F")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
|
get
|
|
{
|
|
return this.reason;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CB70 RID: 52080 RVA: 0x002E9AB0 File Offset: 0x002E7CB0
|
|
[Token(Token = "0x600CB70")]
|
|
[Address(RVA = "0x2AE0E00", Offset = "0x2ADFC00", VA = "0x182AE0E00", 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: 0x040081A3 RID: 33187
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40081A3")]
|
|
private readonly DerInteger certReqId;
|
|
|
|
// Token: 0x040081A4 RID: 33188
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40081A4")]
|
|
private readonly DerInteger checkAfter;
|
|
|
|
// Token: 0x040081A5 RID: 33189
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40081A5")]
|
|
private readonly PkiFreeText reason;
|
|
}
|
|
}
|