193 lines
7.7 KiB
C#
193 lines
7.7 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02002043 RID: 8259
|
|
[Token(Token = "0x2002043")]
|
|
public class PkiStatusInfo : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CF24 RID: 53028 RVA: 0x002F1C94 File Offset: 0x002EFE94
|
|
[Token(Token = "0x600CF24")]
|
|
[Address(RVA = "0x2FEEC70", Offset = "0x2FEDC70", VA = "0x182FEEC70")]
|
|
public static PkiStatusInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return PkiStatusInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600CF25 RID: 53029 RVA: 0x002F1CB0 File Offset: 0x002EFEB0
|
|
[Token(Token = "0x600CF25")]
|
|
[Address(RVA = "0x2FEEC90", Offset = "0x2FEDC90", VA = "0x182FEEC90")]
|
|
public static PkiStatusInfo GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CF25)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_22:
|
|
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_28)), 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: 0x0600CF26 RID: 53030 RVA: 0x002F1D00 File Offset: 0x002EFF00
|
|
[Token(Token = "0x600CF26")]
|
|
[Address(RVA = "0x2FEF1A0", Offset = "0x2FEE1A0", VA = "0x182FEF1A0")]
|
|
public PkiStatusInfo(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
DerInteger derInteger;
|
|
this.status = derInteger;
|
|
int num = 0;
|
|
this.statusString = num;
|
|
this.failInfo = num;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable > (ulong)1L)
|
|
{
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
if (parser2 == 0 || parser2 == 0)
|
|
{
|
|
PkiFreeText pkiFreeText;
|
|
this.statusString = pkiFreeText;
|
|
return;
|
|
}
|
|
DerBitString derBitString;
|
|
this.failInfo = derBitString;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CF27 RID: 53031 RVA: 0x002F1D6C File Offset: 0x002EFF6C
|
|
[Token(Token = "0x600CF27")]
|
|
[Address(RVA = "0x2FEF370", Offset = "0x2FEE370", VA = "0x182FEF370")]
|
|
public PkiStatusInfo(int status)
|
|
{
|
|
DerInteger derInteger = new DerInteger(status);
|
|
this.status = derInteger;
|
|
}
|
|
|
|
// Token: 0x0600CF28 RID: 53032 RVA: 0x002F1D90 File Offset: 0x002EFF90
|
|
[Token(Token = "0x600CF28")]
|
|
[Address(RVA = "0x2FEF090", Offset = "0x2FEE090", VA = "0x182FEF090")]
|
|
public PkiStatusInfo(int status, PkiFreeText statusString)
|
|
{
|
|
DerInteger derInteger = new DerInteger(status);
|
|
this.status = derInteger;
|
|
this.statusString = statusString;
|
|
}
|
|
|
|
// Token: 0x0600CF29 RID: 53033 RVA: 0x002F1DB8 File Offset: 0x002EFFB8
|
|
[Token(Token = "0x600CF29")]
|
|
[Address(RVA = "0x2FEF110", Offset = "0x2FEE110", VA = "0x182FEF110")]
|
|
public PkiStatusInfo(int status, PkiFreeText statusString, PkiFailureInfo failInfo)
|
|
{
|
|
DerInteger derInteger = new DerInteger(status);
|
|
this.status = derInteger;
|
|
this.statusString = statusString;
|
|
this.failInfo = failInfo;
|
|
}
|
|
|
|
// Token: 0x170020E4 RID: 8420
|
|
// (get) Token: 0x0600CF2A RID: 53034 RVA: 0x002F1DE8 File Offset: 0x002EFFE8
|
|
[Token(Token = "0x170020E4")]
|
|
public BigInteger Status
|
|
{
|
|
[Token(Token = "0x600CF2A")]
|
|
[Address(RVA = "0x2EAFE00", Offset = "0x2EAEE00", VA = "0x182EAFE00")]
|
|
get
|
|
{
|
|
return this.status.Value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020E5 RID: 8421
|
|
// (get) Token: 0x0600CF2B RID: 53035 RVA: 0x002F1E08 File Offset: 0x002F0008
|
|
[Token(Token = "0x170020E5")]
|
|
public PkiFreeText StatusString
|
|
{
|
|
[Token(Token = "0x600CF2B")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.statusString;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020E6 RID: 8422
|
|
// (get) Token: 0x0600CF2C RID: 53036 RVA: 0x002F1E1C File Offset: 0x002F001C
|
|
[Token(Token = "0x170020E6")]
|
|
public DerBitString FailInfo
|
|
{
|
|
[Token(Token = "0x600CF2C")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.failInfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CF2D RID: 53037 RVA: 0x002F1E30 File Offset: 0x002F0030
|
|
[Token(Token = "0x600CF2D")]
|
|
[Address(RVA = "0x2FEEE80", Offset = "0x2FEDE80", VA = "0x182FEEE80", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerInteger derInteger = this.status;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[0] = derInteger;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
if (this.statusString != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
PkiFreeText pkiFreeText = this.statusString;
|
|
if (pkiFreeText != 0)
|
|
{
|
|
}
|
|
array2[0] = pkiFreeText;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
if (this.failInfo != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
DerBitString derBitString = this.failInfo;
|
|
if (derBitString != 0)
|
|
{
|
|
}
|
|
array3[0] = derBitString;
|
|
asn1EncodableVector.Add(array3);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008355 RID: 33621
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008355")]
|
|
private DerInteger status;
|
|
|
|
// Token: 0x04008356 RID: 33622
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008356")]
|
|
private PkiFreeText statusString;
|
|
|
|
// Token: 0x04008357 RID: 33623
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008357")]
|
|
private DerBitString failInfo;
|
|
}
|
|
}
|