222 lines
13 KiB
C#
222 lines
13 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x0200202C RID: 8236
|
|
[Token(Token = "0x200202C")]
|
|
public class CertResponse : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CE7F RID: 52863 RVA: 0x002EF660 File Offset: 0x002ED860
|
|
[Token(Token = "0x600CE7F")]
|
|
[Address(RVA = "0x2299B40", Offset = "0x2298B40", VA = "0x182299B40")]
|
|
private CertResponse(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
DerInteger derInteger;
|
|
this.certReqId = derInteger;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
PkiStatusInfo pkiStatusInfo;
|
|
this.status = pkiStatusInfo;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable != (ulong)3L)
|
|
{
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
CertifiedKeyPair certifiedKeyPair;
|
|
this.certifiedKeyPair = certifiedKeyPair;
|
|
Asn1SequenceParser parser4 = seq.Parser;
|
|
Asn1OctetString asn1OctetString;
|
|
this.rspInfo = asn1OctetString;
|
|
return;
|
|
}
|
|
Asn1SequenceParser parser5 = seq.Parser;
|
|
if (parser5 == 0 || parser5 != 0)
|
|
{
|
|
}
|
|
CertifiedKeyPair certifiedKeyPair2;
|
|
this.certifiedKeyPair = certifiedKeyPair2;
|
|
}
|
|
|
|
// Token: 0x0600CE80 RID: 52864 RVA: 0x002EF6DC File Offset: 0x002ED8DC
|
|
[Token(Token = "0x600CE80")]
|
|
[Address(RVA = "0x22996D0", Offset = "0x22986D0", VA = "0x1822996D0")]
|
|
public static CertResponse GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CE80)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::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("Invalid object: "), 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: 0x0600CE81 RID: 52865 RVA: 0x002EF72C File Offset: 0x002ED92C
|
|
[Token(Token = "0x600CE81")]
|
|
[Address(RVA = "0x2299CD0", Offset = "0x2298CD0", VA = "0x182299CD0")]
|
|
public CertResponse(DerInteger certReqId, PkiStatusInfo status)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CE81)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_38:
|
|
stloc:ArgumentNullException(var_2_42, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("status")))
|
|
}
|
|
|
|
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: 0x0600CE82 RID: 52866 RVA: 0x002EF77C File Offset: 0x002ED97C
|
|
[Token(Token = "0x600CE82")]
|
|
[Address(RVA = "0x2299DA0", Offset = "0x2298DA0", VA = "0x182299DA0")]
|
|
public CertResponse(DerInteger certReqId, PkiStatusInfo status, CertifiedKeyPair certifiedKeyPair, Asn1OctetString rspInfo)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CE82)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertResponse::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerInteger,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CertifiedKeyPair,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1OctetString)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_36:
|
|
stloc:ArgumentNullException(var_1_40, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("status")))
|
|
}
|
|
|
|
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: 0x170020BA RID: 8378
|
|
// (get) Token: 0x0600CE83 RID: 52867 RVA: 0x002EF7CC File Offset: 0x002ED9CC
|
|
[Token(Token = "0x170020BA")]
|
|
public virtual DerInteger CertReqID
|
|
{
|
|
[Token(Token = "0x600CE83")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.certReqId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020BB RID: 8379
|
|
// (get) Token: 0x0600CE84 RID: 52868 RVA: 0x002EF7E0 File Offset: 0x002ED9E0
|
|
[Token(Token = "0x170020BB")]
|
|
public virtual PkiStatusInfo Status
|
|
{
|
|
[Token(Token = "0x600CE84")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.status;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020BC RID: 8380
|
|
// (get) Token: 0x0600CE85 RID: 52869 RVA: 0x002EF7F4 File Offset: 0x002ED9F4
|
|
[Token(Token = "0x170020BC")]
|
|
public virtual CertifiedKeyPair CertifiedKeyPair
|
|
{
|
|
[Token(Token = "0x600CE85")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
|
get
|
|
{
|
|
return this.certifiedKeyPair;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CE86 RID: 52870 RVA: 0x002EF808 File Offset: 0x002EDA08
|
|
[Token(Token = "0x600CE86")]
|
|
[Address(RVA = "0x22998C0", Offset = "0x22988C0", VA = "0x1822998C0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[2];
|
|
DerInteger derInteger = this.certReqId;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[0] = derInteger;
|
|
PkiStatusInfo pkiStatusInfo = this.status;
|
|
if (pkiStatusInfo != 0)
|
|
{
|
|
}
|
|
array[1] = pkiStatusInfo;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
Asn1Encodable[] array2 = new Asn1Encodable[2];
|
|
CertifiedKeyPair certifiedKeyPair = this.certifiedKeyPair;
|
|
if (certifiedKeyPair != 0)
|
|
{
|
|
}
|
|
array2[0] = certifiedKeyPair;
|
|
Asn1OctetString asn1OctetString = this.rspInfo;
|
|
if (asn1OctetString != 0)
|
|
{
|
|
}
|
|
array2[1] = asn1OctetString;
|
|
int num = 0;
|
|
int length = array2.Length;
|
|
if (num < length)
|
|
{
|
|
if (array2[num] != 0)
|
|
{
|
|
IList v = asn1EncodableVector.v;
|
|
}
|
|
num++;
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040082B4 RID: 33460
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40082B4")]
|
|
private readonly DerInteger certReqId;
|
|
|
|
// Token: 0x040082B5 RID: 33461
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40082B5")]
|
|
private readonly PkiStatusInfo status;
|
|
|
|
// Token: 0x040082B6 RID: 33462
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40082B6")]
|
|
private readonly CertifiedKeyPair certifiedKeyPair;
|
|
|
|
// Token: 0x040082B7 RID: 33463
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x40082B7")]
|
|
private readonly Asn1OctetString rspInfo;
|
|
}
|
|
}
|