190 lines
10 KiB
C#
190 lines
10 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp
|
|
{
|
|
// Token: 0x02001F82 RID: 8066
|
|
[Token(Token = "0x2001F82")]
|
|
public class CertID : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CA10 RID: 51728 RVA: 0x002DD284 File Offset: 0x002DB484
|
|
[Token(Token = "0x600CA10")]
|
|
[Address(RVA = "0x2F7CB60", Offset = "0x2F7BB60", VA = "0x182F7CB60")]
|
|
public static CertID GetInstance(Asn1TaggedObject obj, bool explicitly)
|
|
{
|
|
return CertID.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
|
}
|
|
|
|
// Token: 0x0600CA11 RID: 51729 RVA: 0x002DD2A0 File Offset: 0x002DB4A0
|
|
[Token(Token = "0x600CA11")]
|
|
[Address(RVA = "0x2F7C860", Offset = "0x2F7B860", VA = "0x182F7C860")]
|
|
public static CertID GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CA11)
|
|
|
|
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: 0x0600CA12 RID: 51730 RVA: 0x002DD328 File Offset: 0x002DB528
|
|
[Token(Token = "0x600CA12")]
|
|
[Address(RVA = "0xC5DB60", Offset = "0xC5CB60", VA = "0x180C5DB60")]
|
|
public CertID(AlgorithmIdentifier hashAlgorithm, Asn1OctetString issuerNameHash, Asn1OctetString issuerKeyHash, DerInteger serialNumber)
|
|
{
|
|
this.hashAlgorithm = hashAlgorithm;
|
|
this.issuerKeyHash = issuerKeyHash;
|
|
this.serialNumber = 0;
|
|
this.issuerNameHash = issuerNameHash;
|
|
}
|
|
|
|
// Token: 0x0600CA13 RID: 51731 RVA: 0x002DD358 File Offset: 0x002DB558
|
|
[Token(Token = "0x600CA13")]
|
|
[Address(RVA = "0x2F7CD40", Offset = "0x2F7BD40", VA = "0x182F7CD40")]
|
|
private CertID(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CA13)
|
|
|
|
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: 0x17001F7F RID: 8063
|
|
// (get) Token: 0x0600CA14 RID: 51732 RVA: 0x002DD3C8 File Offset: 0x002DB5C8
|
|
[Token(Token = "0x17001F7F")]
|
|
public AlgorithmIdentifier HashAlgorithm
|
|
{
|
|
[Token(Token = "0x600CA14")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.hashAlgorithm;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F80 RID: 8064
|
|
// (get) Token: 0x0600CA15 RID: 51733 RVA: 0x002DD3DC File Offset: 0x002DB5DC
|
|
[Token(Token = "0x17001F80")]
|
|
public Asn1OctetString IssuerNameHash
|
|
{
|
|
[Token(Token = "0x600CA15")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.issuerNameHash;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F81 RID: 8065
|
|
// (get) Token: 0x0600CA16 RID: 51734 RVA: 0x002DD3F0 File Offset: 0x002DB5F0
|
|
[Token(Token = "0x17001F81")]
|
|
public Asn1OctetString IssuerKeyHash
|
|
{
|
|
[Token(Token = "0x600CA16")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.issuerKeyHash;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F82 RID: 8066
|
|
// (get) Token: 0x0600CA17 RID: 51735 RVA: 0x002DD404 File Offset: 0x002DB604
|
|
[Token(Token = "0x17001F82")]
|
|
public DerInteger SerialNumber
|
|
{
|
|
[Token(Token = "0x600CA17")]
|
|
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
|
get
|
|
{
|
|
return this.serialNumber;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CA18 RID: 51736 RVA: 0x002DD418 File Offset: 0x002DB618
|
|
[Token(Token = "0x600CA18")]
|
|
[Address(RVA = "0x2F7CB80", Offset = "0x2F7BB80", VA = "0x182F7CB80", 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: 0x04007FA6 RID: 32678
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007FA6")]
|
|
private readonly AlgorithmIdentifier hashAlgorithm;
|
|
|
|
// Token: 0x04007FA7 RID: 32679
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007FA7")]
|
|
private readonly Asn1OctetString issuerNameHash;
|
|
|
|
// Token: 0x04007FA8 RID: 32680
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007FA8")]
|
|
private readonly Asn1OctetString issuerKeyHash;
|
|
|
|
// Token: 0x04007FA9 RID: 32681
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007FA9")]
|
|
private readonly DerInteger serialNumber;
|
|
}
|
|
}
|