a
This commit is contained in:
@@ -0,0 +1,163 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001F4D RID: 8013
|
||||
[Token(Token = "0x2001F4D")]
|
||||
public class CertStatus : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CAB9 RID: 51897 RVA: 0x002E70CC File Offset: 0x002E52CC
|
||||
[Token(Token = "0x600CAB9")]
|
||||
[Address(RVA = "0x2649F60", Offset = "0x2648D60", VA = "0x182649F60")]
|
||||
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: 0x0600CABA RID: 51898 RVA: 0x002E7118 File Offset: 0x002E5318
|
||||
[Token(Token = "0x600CABA")]
|
||||
[Address(RVA = "0x2649EC0", Offset = "0x2648CC0", VA = "0x182649EC0")]
|
||||
public CertStatus(byte[] certHash, BigInteger certReqId)
|
||||
{
|
||||
DerOctetString derOctetString = new DerOctetString(certHash);
|
||||
this.certHash = derOctetString;
|
||||
DerInteger derInteger = new DerInteger(certReqId);
|
||||
this.certReqId = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600CABB RID: 51899 RVA: 0x002E7148 File Offset: 0x002E5348
|
||||
[Token(Token = "0x600CABB")]
|
||||
[Address(RVA = "0x264A020", Offset = "0x2648E20", VA = "0x18264A020")]
|
||||
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: 0x0600CABC RID: 51900 RVA: 0x002E7180 File Offset: 0x002E5380
|
||||
[Token(Token = "0x600CABC")]
|
||||
[Address(RVA = "0x2649A80", Offset = "0x2648880", VA = "0x182649A80")]
|
||||
public static CertStatus GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CABC)
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x17002020 RID: 8224
|
||||
// (get) Token: 0x0600CABD RID: 51901 RVA: 0x002E71E8 File Offset: 0x002E53E8
|
||||
[Token(Token = "0x17002020")]
|
||||
public virtual Asn1OctetString CertHash
|
||||
{
|
||||
[Token(Token = "0x600CABD")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.certHash;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002021 RID: 8225
|
||||
// (get) Token: 0x0600CABE RID: 51902 RVA: 0x002E71FC File Offset: 0x002E53FC
|
||||
[Token(Token = "0x17002021")]
|
||||
public virtual DerInteger CertReqID
|
||||
{
|
||||
[Token(Token = "0x600CABE")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certReqId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002022 RID: 8226
|
||||
// (get) Token: 0x0600CABF RID: 51903 RVA: 0x002E7210 File Offset: 0x002E5410
|
||||
[Token(Token = "0x17002022")]
|
||||
public virtual PkiStatusInfo StatusInfo
|
||||
{
|
||||
[Token(Token = "0x600CABF")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.statusInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CAC0 RID: 51904 RVA: 0x002E7224 File Offset: 0x002E5424
|
||||
[Token(Token = "0x600CAC0")]
|
||||
[Address(RVA = "0x2649D00", Offset = "0x2648B00", VA = "0x182649D00", 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: 0x040080FF RID: 33023
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40080FF")]
|
||||
private readonly Asn1OctetString certHash;
|
||||
|
||||
// Token: 0x04008100 RID: 33024
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008100")]
|
||||
private readonly DerInteger certReqId;
|
||||
|
||||
// Token: 0x04008101 RID: 33025
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4008101")]
|
||||
private readonly PkiStatusInfo statusInfo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user