190 lines
7.6 KiB
C#
190 lines
7.6 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x0200198F RID: 6543
|
|
[Token(Token = "0x200198F")]
|
|
[StructLayout(3)]
|
|
public class RevRepContent : Asn1Encodable
|
|
{
|
|
// Token: 0x0600AFB9 RID: 44985 RVA: 0x00291D4C File Offset: 0x0028FF4C
|
|
[Token(Token = "0x600AFB9")]
|
|
[Address(RVA = "0x28FEDE0", Offset = "0x28FD7E0", VA = "0x1828FEDE0")]
|
|
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: 0x0600AFBA RID: 44986 RVA: 0x00291DA8 File Offset: 0x0028FFA8
|
|
[Token(Token = "0x600AFBA")]
|
|
[Address(RVA = "0x28FE800", Offset = "0x28FD200", VA = "0x1828FE800")]
|
|
public static RevRepContent GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AFBA)
|
|
|
|
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 1663
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0600AFBB RID: 44987 RVA: 0x00291E28 File Offset: 0x00290028
|
|
[Token(Token = "0x600AFBB")]
|
|
[Address(RVA = "0x28FEBB0", Offset = "0x28FD5B0", VA = "0x1828FEBB0", 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: 0x0600AFBC RID: 44988 RVA: 0x00291E74 File Offset: 0x00290074
|
|
[Token(Token = "0x600AFBC")]
|
|
[Address(RVA = "0x28FEA90", Offset = "0x28FD490", VA = "0x1828FEA90", 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: 0x0600AFBD RID: 44989 RVA: 0x00291EC4 File Offset: 0x002900C4
|
|
[Token(Token = "0x600AFBD")]
|
|
[Address(RVA = "0x28FE6E0", Offset = "0x28FD0E0", VA = "0x1828FE6E0", 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: 0x0600AFBE RID: 44990 RVA: 0x00291F14 File Offset: 0x00290114
|
|
[Token(Token = "0x600AFBE")]
|
|
[Address(RVA = "0x28FECC0", Offset = "0x28FD6C0", VA = "0x1828FECC0", 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: 0x0600AFBF RID: 44991 RVA: 0x00291F78 File Offset: 0x00290178
|
|
[Token(Token = "0x600AFBF")]
|
|
[Address(RVA = "0x28FE5E0", Offset = "0x28FCFE0", VA = "0x1828FE5E0")]
|
|
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: 0x0400736F RID: 29551
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400736F")]
|
|
private readonly Asn1Sequence status;
|
|
|
|
// Token: 0x04007370 RID: 29552
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007370")]
|
|
private readonly Asn1Sequence revCerts;
|
|
|
|
// Token: 0x04007371 RID: 29553
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007371")]
|
|
private readonly Asn1Sequence crls;
|
|
}
|
|
}
|