144 lines
10 KiB
C#
144 lines
10 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02002030 RID: 8240
|
|
[Token(Token = "0x2002030")]
|
|
public class CmpCertificate : Asn1Encodable, IAsn1Choice
|
|
{
|
|
// Token: 0x0600CE9B RID: 52891 RVA: 0x002EFE28 File Offset: 0x002EE028
|
|
[Token(Token = "0x600CE9B")]
|
|
[Address(RVA = "0xA1AEE0", Offset = "0xA19EE0", VA = "0x180A1AEE0")]
|
|
public CmpCertificate(AttributeCertificate x509v2AttrCert)
|
|
{
|
|
this.x509v2AttrCert = x509v2AttrCert;
|
|
}
|
|
|
|
// Token: 0x0600CE9C RID: 52892 RVA: 0x002EFE44 File Offset: 0x002EE044
|
|
[Token(Token = "0x600CE9C")]
|
|
[Address(RVA = "0x2FDFA40", Offset = "0x2FDEA40", VA = "0x182FDFA40")]
|
|
public CmpCertificate(X509CertificateStructure x509v3PKCert)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CE9C)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509CertificateStructure)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_1D:
|
|
stloc:ArgumentException(var_0_2C, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("only version 3 certificates allowed"), ldstr:string("x509v3PKCert")))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x0600CE9D RID: 52893 RVA: 0x002EFE80 File Offset: 0x002EE080
|
|
[Token(Token = "0x600CE9D")]
|
|
[Address(RVA = "0x2FDF6B0", Offset = "0x2FDE6B0", VA = "0x182FDF6B0")]
|
|
public static CmpCertificate GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CE9D)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.CmpCertificate::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_7B:
|
|
stloc:ArgumentException(var_12_8A, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("only version 3 certificates allowed"), ldstr:string("x509v3PKCert")))
|
|
}
|
|
|
|
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
|
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
|
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: 0x170020C4 RID: 8388
|
|
// (get) Token: 0x0600CE9E RID: 52894 RVA: 0x0000220F File Offset: 0x0000040F
|
|
[Token(Token = "0x170020C4")]
|
|
public virtual bool IsX509v3PKCert
|
|
{
|
|
[Token(Token = "0x600CE9E")]
|
|
[Address(RVA = "0x979820", Offset = "0x978820", VA = "0x180979820", Slot = "6")]
|
|
get
|
|
{
|
|
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020C5 RID: 8389
|
|
// (get) Token: 0x0600CE9F RID: 52895 RVA: 0x002EFF18 File Offset: 0x002EE118
|
|
[Token(Token = "0x170020C5")]
|
|
public virtual X509CertificateStructure X509v3PKCert
|
|
{
|
|
[Token(Token = "0x600CE9F")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "7")]
|
|
get
|
|
{
|
|
return this.x509v3PKCert;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020C6 RID: 8390
|
|
// (get) Token: 0x0600CEA0 RID: 52896 RVA: 0x002EFF2C File Offset: 0x002EE12C
|
|
[Token(Token = "0x170020C6")]
|
|
public virtual AttributeCertificate X509v2AttrCert
|
|
{
|
|
[Token(Token = "0x600CEA0")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "8")]
|
|
get
|
|
{
|
|
return this.x509v2AttrCert;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CEA1 RID: 52897 RVA: 0x002EFF40 File Offset: 0x002EE140
|
|
[Token(Token = "0x600CEA1")]
|
|
[Address(RVA = "0x2FDF9A0", Offset = "0x2FDE9A0", VA = "0x182FDF9A0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
AttributeCertificate attributeCertificate = this.x509v2AttrCert;
|
|
if (attributeCertificate == 0)
|
|
{
|
|
return this.x509v3PKCert.ToAsn1Object();
|
|
}
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(16777216 != 0, 16777216, attributeCertificate);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040082C1 RID: 33473
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40082C1")]
|
|
private readonly X509CertificateStructure x509v3PKCert;
|
|
|
|
// Token: 0x040082C2 RID: 33474
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40082C2")]
|
|
private readonly AttributeCertificate x509v2AttrCert;
|
|
}
|
|
}
|