192 lines
10 KiB
C#
192 lines
10 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp
|
|
{
|
|
// Token: 0x020018C5 RID: 6341
|
|
[Token(Token = "0x20018C5")]
|
|
[StructLayout(3)]
|
|
public class CertID : Asn1Encodable
|
|
{
|
|
// Token: 0x0600AA68 RID: 43624 RVA: 0x0027C504 File Offset: 0x0027A704
|
|
[Token(Token = "0x600AA68")]
|
|
[Address(RVA = "0x27CA7E0", Offset = "0x27C91E0", VA = "0x1827CA7E0")]
|
|
public static CertID GetInstance(Asn1TaggedObject obj, bool explicitly)
|
|
{
|
|
return CertID.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
|
}
|
|
|
|
// Token: 0x0600AA69 RID: 43625 RVA: 0x0027C520 File Offset: 0x0027A720
|
|
[Token(Token = "0x600AA69")]
|
|
[Address(RVA = "0x27CA4E0", Offset = "0x27C8EE0", VA = "0x1827CA4E0")]
|
|
public static CertID GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AA69)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.CertID BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.CertID::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_49:
|
|
stloc:string(var_11_4F, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_12_67, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_11_4F)), ldstr:string("obj")))
|
|
stloc:ArgumentException(var_13_78, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
|
}
|
|
|
|
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: 0x0600AA6A RID: 43626 RVA: 0x0027C5A8 File Offset: 0x0027A7A8
|
|
[Token(Token = "0x600AA6A")]
|
|
[Address(RVA = "0x9BCAC0", Offset = "0x9BB4C0", VA = "0x1809BCAC0")]
|
|
public CertID(AlgorithmIdentifier hashAlgorithm, Asn1OctetString issuerNameHash, Asn1OctetString issuerKeyHash, DerInteger serialNumber)
|
|
{
|
|
this.hashAlgorithm = hashAlgorithm;
|
|
this.issuerKeyHash = issuerKeyHash;
|
|
this.serialNumber = 0;
|
|
this.issuerNameHash = issuerNameHash;
|
|
}
|
|
|
|
// Token: 0x0600AA6B RID: 43627 RVA: 0x0027C5D8 File Offset: 0x0027A7D8
|
|
[Token(Token = "0x600AA6B")]
|
|
[Address(RVA = "0x27CA9C0", Offset = "0x27C93C0", VA = "0x1827CA9C0")]
|
|
private CertID(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AA6B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.CertID::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_50:
|
|
stloc:ArgumentException(var_9_5F, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Wrong number of elements in sequence"), ldstr:string("seq")))
|
|
}
|
|
|
|
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: 0x17001AE1 RID: 6881
|
|
// (get) Token: 0x0600AA6C RID: 43628 RVA: 0x0027C648 File Offset: 0x0027A848
|
|
[Token(Token = "0x17001AE1")]
|
|
public AlgorithmIdentifier HashAlgorithm
|
|
{
|
|
[Token(Token = "0x600AA6C")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.hashAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001AE2 RID: 6882
|
|
// (get) Token: 0x0600AA6D RID: 43629 RVA: 0x0027C65C File Offset: 0x0027A85C
|
|
[Token(Token = "0x17001AE2")]
|
|
public Asn1OctetString IssuerNameHash
|
|
{
|
|
[Token(Token = "0x600AA6D")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.issuerNameHash;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001AE3 RID: 6883
|
|
// (get) Token: 0x0600AA6E RID: 43630 RVA: 0x0027C670 File Offset: 0x0027A870
|
|
[Token(Token = "0x17001AE3")]
|
|
public Asn1OctetString IssuerKeyHash
|
|
{
|
|
[Token(Token = "0x600AA6E")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
|
get
|
|
{
|
|
return this.issuerKeyHash;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001AE4 RID: 6884
|
|
// (get) Token: 0x0600AA6F RID: 43631 RVA: 0x0027C684 File Offset: 0x0027A884
|
|
[Token(Token = "0x17001AE4")]
|
|
public DerInteger SerialNumber
|
|
{
|
|
[Token(Token = "0x600AA6F")]
|
|
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
|
get
|
|
{
|
|
return this.serialNumber;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AA70 RID: 43632 RVA: 0x0027C698 File Offset: 0x0027A898
|
|
[Token(Token = "0x600AA70")]
|
|
[Address(RVA = "0x27CA800", Offset = "0x27C9200", VA = "0x1827CA800", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[4];
|
|
AlgorithmIdentifier algorithmIdentifier = this.hashAlgorithm;
|
|
if (algorithmIdentifier != 0)
|
|
{
|
|
}
|
|
array[0] = algorithmIdentifier;
|
|
Asn1OctetString asn1OctetString = this.issuerNameHash;
|
|
if (asn1OctetString != 0)
|
|
{
|
|
}
|
|
array[1] = asn1OctetString;
|
|
Asn1OctetString asn1OctetString2 = this.issuerKeyHash;
|
|
if (asn1OctetString2 != 0)
|
|
{
|
|
}
|
|
array[2] = asn1OctetString2;
|
|
DerInteger derInteger = this.serialNumber;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[3] = derInteger;
|
|
DerSequence derSequence = new DerSequence(array);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04006FAA RID: 28586
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006FAA")]
|
|
private readonly AlgorithmIdentifier hashAlgorithm;
|
|
|
|
// Token: 0x04006FAB RID: 28587
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006FAB")]
|
|
private readonly Asn1OctetString issuerNameHash;
|
|
|
|
// Token: 0x04006FAC RID: 28588
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006FAC")]
|
|
private readonly Asn1OctetString issuerKeyHash;
|
|
|
|
// Token: 0x04006FAD RID: 28589
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4006FAD")]
|
|
private readonly DerInteger serialNumber;
|
|
}
|
|
}
|