188 lines
7.5 KiB
C#
188 lines
7.5 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02001F6C RID: 8044
|
|
[Token(Token = "0x2001F6C")]
|
|
public class RevRepContent : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CB93 RID: 52115 RVA: 0x002EA2A4 File Offset: 0x002E84A4
|
|
[Token(Token = "0x600CB93")]
|
|
[Address(RVA = "0x2AE5560", Offset = "0x2AE4360", VA = "0x182AE5560")]
|
|
private RevRepContent(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
Asn1Sequence asn1Sequence;
|
|
this.status = asn1Sequence;
|
|
Asn1Encodable asn1Encodable;
|
|
if ((uint)1 < asn1Encodable)
|
|
{
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
Asn1TaggedObject asn1TaggedObject;
|
|
int tagNo = asn1TaggedObject.tagNo;
|
|
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1TaggedObject, true);
|
|
if (tagNo != 0)
|
|
{
|
|
this.crls = instance;
|
|
}
|
|
this.revCerts = instance;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CB94 RID: 52116 RVA: 0x002EA300 File Offset: 0x002E8500
|
|
[Token(Token = "0x600CB94")]
|
|
[Address(RVA = "0x2AE4F80", Offset = "0x2AE3D80", VA = "0x182AE4F80")]
|
|
public static RevRepContent GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CB94)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevRepContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevRepContent::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_53:
|
|
stloc:string(var_10_59, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_11_71, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_10_59)), 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: 0x0600CB95 RID: 52117 RVA: 0x002EA380 File Offset: 0x002E8580
|
|
[Token(Token = "0x600CB95")]
|
|
[Address(RVA = "0x2AE5330", Offset = "0x2AE4130", VA = "0x182AE5330", Slot = "6")]
|
|
public virtual PkiStatusInfo[] GetStatus()
|
|
{
|
|
Asn1Sequence asn1Sequence = this.status;
|
|
Asn1Encodable asn1Encodable;
|
|
PkiStatusInfo[] array = new PkiStatusInfo[asn1Encodable];
|
|
int num = 0;
|
|
if (num != array.Length)
|
|
{
|
|
Asn1SequenceParser parser = this.status.Parser;
|
|
PkiStatusInfo pkiStatusInfo;
|
|
if (pkiStatusInfo != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = pkiStatusInfo;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x0600CB96 RID: 52118 RVA: 0x002EA3CC File Offset: 0x002E85CC
|
|
[Token(Token = "0x600CB96")]
|
|
[Address(RVA = "0x2AE5210", Offset = "0x2AE4010", VA = "0x182AE5210", Slot = "7")]
|
|
public virtual CertId[] GetRevCerts()
|
|
{
|
|
if (this.revCerts != 0)
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
CertId[] array = new CertId[asn1Encodable];
|
|
int num = 0;
|
|
if (num != array.Length)
|
|
{
|
|
Asn1SequenceParser parser = this.revCerts.Parser;
|
|
CertId certId;
|
|
if (certId != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = certId;
|
|
}
|
|
return array;
|
|
}
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
|
|
// Token: 0x0600CB97 RID: 52119 RVA: 0x002EA41C File Offset: 0x002E861C
|
|
[Token(Token = "0x600CB97")]
|
|
[Address(RVA = "0x2AE4E60", Offset = "0x2AE3C60", VA = "0x182AE4E60", Slot = "8")]
|
|
public virtual CertificateList[] GetCrls()
|
|
{
|
|
if (this.crls != 0)
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
CertificateList[] array = new CertificateList[asn1Encodable];
|
|
int num = 0;
|
|
if (num != array.Length)
|
|
{
|
|
Asn1SequenceParser parser = this.crls.Parser;
|
|
CertificateList certificateList;
|
|
if (certificateList != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = certificateList;
|
|
}
|
|
return array;
|
|
}
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
|
|
// Token: 0x0600CB98 RID: 52120 RVA: 0x002EA46C File Offset: 0x002E866C
|
|
[Token(Token = "0x600CB98")]
|
|
[Address(RVA = "0x2AE5440", Offset = "0x2AE4240", VA = "0x182AE5440", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
Asn1Sequence asn1Sequence = this.status;
|
|
if (asn1Sequence != 0)
|
|
{
|
|
}
|
|
array[0] = asn1Sequence;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
Asn1Sequence asn1Sequence2 = this.revCerts;
|
|
int num = 0;
|
|
this.AddOptional(asn1EncodableVector, num, asn1Sequence2);
|
|
Asn1Sequence asn1Sequence3 = this.crls;
|
|
this.AddOptional(asn1EncodableVector, 1, asn1Sequence3);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CB99 RID: 52121 RVA: 0x002EA4D0 File Offset: 0x002E86D0
|
|
[Token(Token = "0x600CB99")]
|
|
[Address(RVA = "0x2AE4D60", Offset = "0x2AE3B60", VA = "0x182AE4D60")]
|
|
private void AddOptional(Asn1EncodableVector v, int tagNo, Asn1Encodable obj)
|
|
{
|
|
if (obj != 0)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(true, tagNo, obj);
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
v.Add(array);
|
|
}
|
|
}
|
|
|
|
// Token: 0x040081B2 RID: 33202
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40081B2")]
|
|
private readonly Asn1Sequence status;
|
|
|
|
// Token: 0x040081B3 RID: 33203
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40081B3")]
|
|
private readonly Asn1Sequence revCerts;
|
|
|
|
// Token: 0x040081B4 RID: 33204
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40081B4")]
|
|
private readonly Asn1Sequence crls;
|
|
}
|
|
}
|