129 lines
6.0 KiB
C#
129 lines
6.0 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: 0x02001F6B RID: 8043
|
|
[Token(Token = "0x2001F6B")]
|
|
public class RevDetails : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CB8C RID: 52108 RVA: 0x002EA130 File Offset: 0x002E8330
|
|
[Token(Token = "0x600CB8C")]
|
|
[Address(RVA = "0x2AE4520", Offset = "0x2AE3320", VA = "0x182AE4520")]
|
|
private RevDetails(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
CertTemplate certTemplate;
|
|
this.certDetails = certTemplate;
|
|
int num = 0;
|
|
this.crlEntryDetails = num;
|
|
}
|
|
|
|
// Token: 0x0600CB8D RID: 52109 RVA: 0x002EA174 File Offset: 0x002E8374
|
|
[Token(Token = "0x600CB8D")]
|
|
[Address(RVA = "0x2AE4110", Offset = "0x2AE2F10", VA = "0x182AE4110")]
|
|
public static RevDetails GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CB8D)
|
|
|
|
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: 0x0600CB8E RID: 52110 RVA: 0x002EA1D4 File Offset: 0x002E83D4
|
|
[Token(Token = "0x600CB8E")]
|
|
[Address(RVA = "0x497CE0", Offset = "0x496AE0", VA = "0x180497CE0")]
|
|
public RevDetails(CertTemplate certDetails)
|
|
{
|
|
this.certDetails = certDetails;
|
|
this.crlEntryDetails = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x0600CB8F RID: 52111 RVA: 0x002EA1F8 File Offset: 0x002E83F8
|
|
[Token(Token = "0x600CB8F")]
|
|
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
|
public RevDetails(CertTemplate certDetails, X509Extensions crlEntryDetails)
|
|
{
|
|
this.certDetails = certDetails;
|
|
this.crlEntryDetails = crlEntryDetails;
|
|
}
|
|
|
|
// Token: 0x17002058 RID: 8280
|
|
// (get) Token: 0x0600CB90 RID: 52112 RVA: 0x002EA21C File Offset: 0x002E841C
|
|
[Token(Token = "0x17002058")]
|
|
public virtual CertTemplate CertDetails
|
|
{
|
|
[Token(Token = "0x600CB90")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
|
get
|
|
{
|
|
return this.certDetails;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002059 RID: 8281
|
|
// (get) Token: 0x0600CB91 RID: 52113 RVA: 0x002EA230 File Offset: 0x002E8430
|
|
[Token(Token = "0x17002059")]
|
|
public virtual X509Extensions CrlEntryDetails
|
|
{
|
|
[Token(Token = "0x600CB91")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
|
get
|
|
{
|
|
return this.crlEntryDetails;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CB92 RID: 52114 RVA: 0x002EA244 File Offset: 0x002E8444
|
|
[Token(Token = "0x600CB92")]
|
|
[Address(RVA = "0x2AE43B0", Offset = "0x2AE31B0", VA = "0x182AE43B0", 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: 0x040081B0 RID: 33200
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40081B0")]
|
|
private readonly CertTemplate certDetails;
|
|
|
|
// Token: 0x040081B1 RID: 33201
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40081B1")]
|
|
private readonly X509Extensions crlEntryDetails;
|
|
}
|
|
}
|