164 lines
7.0 KiB
C#
164 lines
7.0 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x0200202D RID: 8237
|
|
[Token(Token = "0x200202D")]
|
|
public class CertStatus : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CE87 RID: 52871 RVA: 0x002EF8B8 File Offset: 0x002EDAB8
|
|
[Token(Token = "0x600CE87")]
|
|
[Address(RVA = "0x2FDE920", Offset = "0x2FDD920", VA = "0x182FDE920")]
|
|
private CertStatus(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
Asn1OctetString asn1OctetString;
|
|
this.certHash = asn1OctetString;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
DerInteger derInteger;
|
|
this.certReqId = derInteger;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable > (ulong)2L)
|
|
{
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
PkiStatusInfo pkiStatusInfo;
|
|
this.statusInfo = pkiStatusInfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CE88 RID: 52872 RVA: 0x002EF904 File Offset: 0x002EDB04
|
|
[Token(Token = "0x600CE88")]
|
|
[Address(RVA = "0x2FDE880", Offset = "0x2FDD880", VA = "0x182FDE880")]
|
|
public CertStatus(byte[] certHash, BigInteger certReqId)
|
|
{
|
|
DerOctetString derOctetString = new DerOctetString(certHash);
|
|
this.certHash = derOctetString;
|
|
DerInteger derInteger = new DerInteger(certReqId);
|
|
this.certReqId = derInteger;
|
|
}
|
|
|
|
// Token: 0x0600CE89 RID: 52873 RVA: 0x002EF934 File Offset: 0x002EDB34
|
|
[Token(Token = "0x600CE89")]
|
|
[Address(RVA = "0x2FDE9E0", Offset = "0x2FDD9E0", VA = "0x182FDE9E0")]
|
|
public CertStatus(byte[] certHash, BigInteger certReqId, PkiStatusInfo statusInfo)
|
|
{
|
|
DerOctetString derOctetString = new DerOctetString(certHash);
|
|
this.certHash = derOctetString;
|
|
DerInteger derInteger = new DerInteger(certReqId);
|
|
this.certReqId = derInteger;
|
|
this.statusInfo = statusInfo;
|
|
}
|
|
|
|
// Token: 0x0600CE8A RID: 52874 RVA: 0x002EF96C File Offset: 0x002EDB6C
|
|
[Token(Token = "0x600CE8A")]
|
|
[Address(RVA = "0x2FDE440", Offset = "0x2FDD440", VA = "0x182FDE440")]
|
|
public static CertStatus GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CE8A)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertStatus BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertStatus::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: 0x170020BD RID: 8381
|
|
// (get) Token: 0x0600CE8B RID: 52875 RVA: 0x002EF9D4 File Offset: 0x002EDBD4
|
|
[Token(Token = "0x170020BD")]
|
|
public virtual Asn1OctetString CertHash
|
|
{
|
|
[Token(Token = "0x600CE8B")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.certHash;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020BE RID: 8382
|
|
// (get) Token: 0x0600CE8C RID: 52876 RVA: 0x002EF9E8 File Offset: 0x002EDBE8
|
|
[Token(Token = "0x170020BE")]
|
|
public virtual DerInteger CertReqID
|
|
{
|
|
[Token(Token = "0x600CE8C")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.certReqId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020BF RID: 8383
|
|
// (get) Token: 0x0600CE8D RID: 52877 RVA: 0x002EF9FC File Offset: 0x002EDBFC
|
|
[Token(Token = "0x170020BF")]
|
|
public virtual PkiStatusInfo StatusInfo
|
|
{
|
|
[Token(Token = "0x600CE8D")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
|
get
|
|
{
|
|
return this.statusInfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CE8E RID: 52878 RVA: 0x002EFA10 File Offset: 0x002EDC10
|
|
[Token(Token = "0x600CE8E")]
|
|
[Address(RVA = "0x2FDE6C0", Offset = "0x2FDD6C0", VA = "0x182FDE6C0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
Asn1OctetString asn1OctetString = this.certHash;
|
|
if (asn1OctetString != 0)
|
|
{
|
|
}
|
|
array[0] = asn1OctetString;
|
|
DerInteger derInteger = this.certReqId;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[1] = derInteger;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
PkiStatusInfo pkiStatusInfo = this.statusInfo;
|
|
if (pkiStatusInfo != 0)
|
|
{
|
|
}
|
|
array2[0] = pkiStatusInfo;
|
|
asn1EncodableVector.AddOptional(array2);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040082B8 RID: 33464
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40082B8")]
|
|
private readonly Asn1OctetString certHash;
|
|
|
|
// Token: 0x040082B9 RID: 33465
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40082B9")]
|
|
private readonly DerInteger certReqId;
|
|
|
|
// Token: 0x040082BA RID: 33466
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40082BA")]
|
|
private readonly PkiStatusInfo statusInfo;
|
|
}
|
|
}
|