131 lines
6.1 KiB
C#
131 lines
6.1 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: 0x0200198E RID: 6542
|
|
[Token(Token = "0x200198E")]
|
|
[StructLayout(3)]
|
|
public class RevDetails : Asn1Encodable
|
|
{
|
|
// Token: 0x0600AFB2 RID: 44978 RVA: 0x00291BD8 File Offset: 0x0028FDD8
|
|
[Token(Token = "0x600AFB2")]
|
|
[Address(RVA = "0x28FDDA0", Offset = "0x28FC7A0", VA = "0x1828FDDA0")]
|
|
private RevDetails(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
CertTemplate certTemplate;
|
|
this.certDetails = certTemplate;
|
|
int num = 0;
|
|
this.crlEntryDetails = num;
|
|
}
|
|
|
|
// Token: 0x0600AFB3 RID: 44979 RVA: 0x00291C1C File Offset: 0x0028FE1C
|
|
[Token(Token = "0x600AFB3")]
|
|
[Address(RVA = "0x28FD990", Offset = "0x28FC390", VA = "0x1828FD990")]
|
|
public static RevDetails GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AFB3)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevDetails BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevDetails::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_31:
|
|
stloc:string(var_9_37, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_10_4F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_9_37)), 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: 0x0600AFB4 RID: 44980 RVA: 0x00291C7C File Offset: 0x0028FE7C
|
|
[Token(Token = "0x600AFB4")]
|
|
[Address(RVA = "0x937E60", Offset = "0x936860", VA = "0x180937E60")]
|
|
public RevDetails(CertTemplate certDetails)
|
|
{
|
|
this.certDetails = certDetails;
|
|
this.crlEntryDetails = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x0600AFB5 RID: 44981 RVA: 0x00291CA0 File Offset: 0x0028FEA0
|
|
[Token(Token = "0x600AFB5")]
|
|
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
|
public RevDetails(CertTemplate certDetails, X509Extensions crlEntryDetails)
|
|
{
|
|
this.certDetails = certDetails;
|
|
this.crlEntryDetails = crlEntryDetails;
|
|
}
|
|
|
|
// Token: 0x17001C57 RID: 7255
|
|
// (get) Token: 0x0600AFB6 RID: 44982 RVA: 0x00291CC4 File Offset: 0x0028FEC4
|
|
[Token(Token = "0x17001C57")]
|
|
public virtual CertTemplate CertDetails
|
|
{
|
|
[Token(Token = "0x600AFB6")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
|
get
|
|
{
|
|
return this.certDetails;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001C58 RID: 7256
|
|
// (get) Token: 0x0600AFB7 RID: 44983 RVA: 0x00291CD8 File Offset: 0x0028FED8
|
|
[Token(Token = "0x17001C58")]
|
|
public virtual X509Extensions CrlEntryDetails
|
|
{
|
|
[Token(Token = "0x600AFB7")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
|
get
|
|
{
|
|
return this.crlEntryDetails;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AFB8 RID: 44984 RVA: 0x00291CEC File Offset: 0x0028FEEC
|
|
[Token(Token = "0x600AFB8")]
|
|
[Address(RVA = "0x28FDC30", Offset = "0x28FC630", VA = "0x1828FDC30", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
CertTemplate certTemplate = this.certDetails;
|
|
if (certTemplate != 0)
|
|
{
|
|
}
|
|
array[0] = certTemplate;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
X509Extensions x509Extensions = this.crlEntryDetails;
|
|
if (x509Extensions != 0)
|
|
{
|
|
}
|
|
array2[0] = x509Extensions;
|
|
asn1EncodableVector.AddOptional(array2);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400736D RID: 29549
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400736D")]
|
|
private readonly CertTemplate certDetails;
|
|
|
|
// Token: 0x0400736E RID: 29550
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400736E")]
|
|
private readonly X509Extensions crlEntryDetails;
|
|
}
|
|
}
|