scripts
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x02001334 RID: 4916
|
||||
[Token(Token = "0x2001334")]
|
||||
[StructLayout(3)]
|
||||
public interface IX509Selector : ICloneable
|
||||
{
|
||||
// Token: 0x06007BAB RID: 31659
|
||||
[Token(Token = "0x6007BAB")]
|
||||
[Address(Slot = "0")]
|
||||
bool Match(object obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x02001335 RID: 4917
|
||||
[Token(Token = "0x2001335")]
|
||||
[StructLayout(3)]
|
||||
public interface IX509Store
|
||||
{
|
||||
// Token: 0x06007BAC RID: 31660
|
||||
[Token(Token = "0x6007BAC")]
|
||||
[Address(Slot = "0")]
|
||||
ICollection GetMatches(IX509Selector selector);
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x02001336 RID: 4918
|
||||
[Token(Token = "0x2001336")]
|
||||
[StructLayout(3)]
|
||||
public interface IX509StoreParameters
|
||||
{
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x02001337 RID: 4919
|
||||
[Token(Token = "0x2001337")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class NoSuchStoreException : X509StoreException
|
||||
{
|
||||
// Token: 0x06007BAD RID: 31661 RVA: 0x0019BF78 File Offset: 0x0019A178
|
||||
[Token(Token = "0x6007BAD")]
|
||||
[Address(RVA = "0x52A500", Offset = "0x528F00", VA = "0x18052A500")]
|
||||
public NoSuchStoreException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06007BAE RID: 31662 RVA: 0x0019BF8C File Offset: 0x0019A18C
|
||||
[Token(Token = "0x6007BAE")]
|
||||
[Address(RVA = "0x52A560", Offset = "0x528F60", VA = "0x18052A560")]
|
||||
public NoSuchStoreException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06007BAF RID: 31663 RVA: 0x0019BFA0 File Offset: 0x0019A1A0
|
||||
[Token(Token = "0x6007BAF")]
|
||||
[Address(RVA = "0x52A480", Offset = "0x528E80", VA = "0x18052A480")]
|
||||
public NoSuchStoreException(string message, Exception e)
|
||||
: base(message, e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+412
@@ -0,0 +1,412 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x02001338 RID: 4920
|
||||
[Token(Token = "0x2001338")]
|
||||
[StructLayout(3)]
|
||||
public class X509AttrCertStoreSelector : IX509Selector, ICloneable
|
||||
{
|
||||
// Token: 0x06007BB0 RID: 31664 RVA: 0x0019BFB8 File Offset: 0x0019A1B8
|
||||
[Token(Token = "0x6007BB0")]
|
||||
[Address(RVA = "0x52D5C0", Offset = "0x52BFC0", VA = "0x18052D5C0")]
|
||||
public X509AttrCertStoreSelector()
|
||||
{
|
||||
HashSet hashSet = new HashSet();
|
||||
this.targetNames = hashSet;
|
||||
HashSet hashSet2 = new HashSet();
|
||||
this.targetGroups = hashSet2;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x06007BB1 RID: 31665 RVA: 0x0019BFE8 File Offset: 0x0019A1E8
|
||||
[Token(Token = "0x6007BB1")]
|
||||
[Address(RVA = "0x52D4B0", Offset = "0x52BEB0", VA = "0x18052D4B0")]
|
||||
private X509AttrCertStoreSelector(X509AttrCertStoreSelector o)
|
||||
{
|
||||
HashSet hashSet = new HashSet();
|
||||
this.targetNames = hashSet;
|
||||
HashSet hashSet2 = new HashSet();
|
||||
this.targetGroups = hashSet2;
|
||||
base..ctor();
|
||||
IX509AttributeCertificate ix509AttributeCertificate = o.attributeCert;
|
||||
this.attributeCert = ix509AttributeCertificate;
|
||||
DateTimeObject dateTimeObject = o.attributeCertificateValid;
|
||||
this.attributeCertificateValid = dateTimeObject;
|
||||
AttributeCertificateHolder attributeCertificateHolder = o.holder;
|
||||
this.holder = attributeCertificateHolder;
|
||||
AttributeCertificateIssuer attributeCertificateIssuer = o.issuer;
|
||||
this.issuer = attributeCertificateIssuer;
|
||||
BigInteger bigInteger = o.serialNumber;
|
||||
this.serialNumber = bigInteger;
|
||||
HashSet hashSet3 = new HashSet(o.targetGroups);
|
||||
this.targetGroups = hashSet3;
|
||||
HashSet hashSet4 = new HashSet(o.targetNames);
|
||||
this.targetNames = hashSet4;
|
||||
}
|
||||
|
||||
// Token: 0x06007BB2 RID: 31666 RVA: 0x0019C094 File Offset: 0x0019A294
|
||||
[Token(Token = "0x6007BB2")]
|
||||
[Address(RVA = "0x52CD00", Offset = "0x52B700", VA = "0x18052CD00", Slot = "4")]
|
||||
public bool Match(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007BB2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509AttrCertStoreSelector::Match(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_105:
|
||||
stloc:ArgumentNullException(var_24_10F, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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: 0x06007BB3 RID: 31667 RVA: 0x0019C1B4 File Offset: 0x0019A3B4
|
||||
[Token(Token = "0x6007BB3")]
|
||||
[Address(RVA = "0x52C8B0", Offset = "0x52B2B0", VA = "0x18052C8B0", Slot = "5")]
|
||||
public object Clone()
|
||||
{
|
||||
X509AttrCertStoreSelector x509AttrCertStoreSelector = new X509AttrCertStoreSelector();
|
||||
HashSet hashSet = new HashSet();
|
||||
x509AttrCertStoreSelector.targetNames = hashSet;
|
||||
HashSet hashSet2 = new HashSet();
|
||||
x509AttrCertStoreSelector.targetGroups = hashSet2;
|
||||
IX509AttributeCertificate ix509AttributeCertificate = this.attributeCert;
|
||||
x509AttrCertStoreSelector.attributeCert = ix509AttributeCertificate;
|
||||
DateTimeObject dateTimeObject = this.attributeCertificateValid;
|
||||
x509AttrCertStoreSelector.attributeCertificateValid = dateTimeObject;
|
||||
AttributeCertificateHolder attributeCertificateHolder = this.holder;
|
||||
x509AttrCertStoreSelector.holder = attributeCertificateHolder;
|
||||
AttributeCertificateIssuer attributeCertificateIssuer = this.issuer;
|
||||
x509AttrCertStoreSelector.issuer = attributeCertificateIssuer;
|
||||
BigInteger bigInteger = this.serialNumber;
|
||||
x509AttrCertStoreSelector.serialNumber = bigInteger;
|
||||
HashSet hashSet3 = new HashSet(this.targetGroups);
|
||||
x509AttrCertStoreSelector.targetGroups = hashSet3;
|
||||
HashSet hashSet4 = new HashSet(this.targetNames);
|
||||
x509AttrCertStoreSelector.targetNames = hashSet4;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001424 RID: 5156
|
||||
// (get) Token: 0x06007BB4 RID: 31668 RVA: 0x0019C260 File Offset: 0x0019A460
|
||||
// (set) Token: 0x06007BB5 RID: 31669 RVA: 0x0019C274 File Offset: 0x0019A474
|
||||
[Token(Token = "0x17001424")]
|
||||
public IX509AttributeCertificate AttributeCert
|
||||
{
|
||||
[Token(Token = "0x6007BB4")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.attributeCert;
|
||||
}
|
||||
[Token(Token = "0x6007BB5")]
|
||||
[Address(RVA = "0x3C39B0", Offset = "0x3C23B0", VA = "0x1803C39B0")]
|
||||
set
|
||||
{
|
||||
this.attributeCert = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001425 RID: 5157
|
||||
// (get) Token: 0x06007BB6 RID: 31670 RVA: 0x0019C288 File Offset: 0x0019A488
|
||||
// (set) Token: 0x06007BB7 RID: 31671 RVA: 0x0019C29C File Offset: 0x0019A49C
|
||||
[Token(Token = "0x17001425")]
|
||||
[Obsolete]
|
||||
public DateTimeObject AttribueCertificateValid
|
||||
{
|
||||
[Token(Token = "0x6007BB6")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.attributeCertificateValid;
|
||||
}
|
||||
[Token(Token = "0x6007BB7")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
||||
set
|
||||
{
|
||||
this.attributeCertificateValid = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001426 RID: 5158
|
||||
// (get) Token: 0x06007BB8 RID: 31672 RVA: 0x0019C2B0 File Offset: 0x0019A4B0
|
||||
// (set) Token: 0x06007BB9 RID: 31673 RVA: 0x0019C2C4 File Offset: 0x0019A4C4
|
||||
[Token(Token = "0x17001426")]
|
||||
public DateTimeObject AttributeCertificateValid
|
||||
{
|
||||
[Token(Token = "0x6007BB8")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.attributeCertificateValid;
|
||||
}
|
||||
[Token(Token = "0x6007BB9")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
||||
set
|
||||
{
|
||||
this.attributeCertificateValid = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001427 RID: 5159
|
||||
// (get) Token: 0x06007BBA RID: 31674 RVA: 0x0019C2D8 File Offset: 0x0019A4D8
|
||||
// (set) Token: 0x06007BBB RID: 31675 RVA: 0x0019C2EC File Offset: 0x0019A4EC
|
||||
[Token(Token = "0x17001427")]
|
||||
public AttributeCertificateHolder Holder
|
||||
{
|
||||
[Token(Token = "0x6007BBA")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.holder;
|
||||
}
|
||||
[Token(Token = "0x6007BBB")]
|
||||
[Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")]
|
||||
set
|
||||
{
|
||||
this.holder = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001428 RID: 5160
|
||||
// (get) Token: 0x06007BBC RID: 31676 RVA: 0x0019C300 File Offset: 0x0019A500
|
||||
// (set) Token: 0x06007BBD RID: 31677 RVA: 0x0019C314 File Offset: 0x0019A514
|
||||
[Token(Token = "0x17001428")]
|
||||
public AttributeCertificateIssuer Issuer
|
||||
{
|
||||
[Token(Token = "0x6007BBC")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
[Token(Token = "0x6007BBD")]
|
||||
[Address(RVA = "0x3C1270", Offset = "0x3BFC70", VA = "0x1803C1270")]
|
||||
set
|
||||
{
|
||||
this.issuer = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001429 RID: 5161
|
||||
// (get) Token: 0x06007BBE RID: 31678 RVA: 0x0019C328 File Offset: 0x0019A528
|
||||
// (set) Token: 0x06007BBF RID: 31679 RVA: 0x0019C33C File Offset: 0x0019A53C
|
||||
[Token(Token = "0x17001429")]
|
||||
public BigInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x6007BBE")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
[Token(Token = "0x6007BBF")]
|
||||
[Address(RVA = "0x3C1290", Offset = "0x3BFC90", VA = "0x1803C1290")]
|
||||
set
|
||||
{
|
||||
this.serialNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007BC0 RID: 31680 RVA: 0x0019C350 File Offset: 0x0019A550
|
||||
[Token(Token = "0x6007BC0")]
|
||||
[Address(RVA = "0x52C850", Offset = "0x52B250", VA = "0x18052C850")]
|
||||
public void AddTargetName(GeneralName name)
|
||||
{
|
||||
ISet set = this.targetNames;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06007BC1 RID: 31681 RVA: 0x0019C36C File Offset: 0x0019A56C
|
||||
[Token(Token = "0x6007BC1")]
|
||||
[Address(RVA = "0x52C7E0", Offset = "0x52B1E0", VA = "0x18052C7E0")]
|
||||
public void AddTargetName(byte[] name)
|
||||
{
|
||||
GeneralName instance = GeneralName.GetInstance(Asn1Object.FromByteArray(name));
|
||||
ISet set = this.targetNames;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06007BC2 RID: 31682 RVA: 0x0019C394 File Offset: 0x0019A594
|
||||
[Token(Token = "0x6007BC2")]
|
||||
[Address(RVA = "0x52D490", Offset = "0x52BE90", VA = "0x18052D490")]
|
||||
public void SetTargetNames(IEnumerable names)
|
||||
{
|
||||
ISet set = this.ExtractGeneralNames(names);
|
||||
this.targetNames = set;
|
||||
}
|
||||
|
||||
// Token: 0x06007BC3 RID: 31683 RVA: 0x0019C3B0 File Offset: 0x0019A5B0
|
||||
[Token(Token = "0x6007BC3")]
|
||||
[Address(RVA = "0x52CCA0", Offset = "0x52B6A0", VA = "0x18052CCA0")]
|
||||
public IEnumerable GetTargetNames()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007BC3)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerable BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509AttrCertStoreSelector::GetTargetNames()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:EnumerableProxy(var_0_0B, newobj:EnumerableProxy(EnumerableProxy::.ctor, ldfld:ISet[exp:IEnumerable](X509AttrCertStoreSelector::targetNames, ldloc:X509AttrCertStoreSelector(this))))
|
||||
}
|
||||
|
||||
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: 0x06007BC4 RID: 31684 RVA: 0x0019C3C8 File Offset: 0x0019A5C8
|
||||
[Token(Token = "0x6007BC4")]
|
||||
[Address(RVA = "0x52C780", Offset = "0x52B180", VA = "0x18052C780")]
|
||||
public void AddTargetGroup(GeneralName group)
|
||||
{
|
||||
ISet set = this.targetGroups;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06007BC5 RID: 31685 RVA: 0x0019C3E4 File Offset: 0x0019A5E4
|
||||
[Token(Token = "0x6007BC5")]
|
||||
[Address(RVA = "0x52C710", Offset = "0x52B110", VA = "0x18052C710")]
|
||||
public void AddTargetGroup(byte[] name)
|
||||
{
|
||||
GeneralName instance = GeneralName.GetInstance(Asn1Object.FromByteArray(name));
|
||||
ISet set = this.targetGroups;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06007BC6 RID: 31686 RVA: 0x0019C40C File Offset: 0x0019A60C
|
||||
[Token(Token = "0x6007BC6")]
|
||||
[Address(RVA = "0x52D470", Offset = "0x52BE70", VA = "0x18052D470")]
|
||||
public void SetTargetGroups(IEnumerable names)
|
||||
{
|
||||
ISet set = this.ExtractGeneralNames(names);
|
||||
this.targetGroups = set;
|
||||
}
|
||||
|
||||
// Token: 0x06007BC7 RID: 31687 RVA: 0x0019C428 File Offset: 0x0019A628
|
||||
[Token(Token = "0x6007BC7")]
|
||||
[Address(RVA = "0x52CC40", Offset = "0x52B640", VA = "0x18052CC40")]
|
||||
public IEnumerable GetTargetGroups()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007BC7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.IEnumerable BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509AttrCertStoreSelector::GetTargetGroups()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:EnumerableProxy(var_0_0B, newobj:EnumerableProxy(EnumerableProxy::.ctor, ldfld:ISet[exp:IEnumerable](X509AttrCertStoreSelector::targetGroups, ldloc:X509AttrCertStoreSelector(this))))
|
||||
}
|
||||
|
||||
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: 0x06007BC8 RID: 31688 RVA: 0x0019C440 File Offset: 0x0019A640
|
||||
[Token(Token = "0x6007BC8")]
|
||||
[Address(RVA = "0x52C9F0", Offset = "0x52B3F0", VA = "0x18052C9F0")]
|
||||
private ISet ExtractGeneralNames(IEnumerable names)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
HashSet hashSet = new HashSet();
|
||||
if (names == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
if (hashSet != 0)
|
||||
{
|
||||
if (num < hashSet)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
if (hashSet == 0 || hashSet != 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object;
|
||||
if (GeneralName.GetInstance(asn1Object) != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400587B RID: 22651
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400587B")]
|
||||
private IX509AttributeCertificate attributeCert;
|
||||
|
||||
// Token: 0x0400587C RID: 22652
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400587C")]
|
||||
private DateTimeObject attributeCertificateValid;
|
||||
|
||||
// Token: 0x0400587D RID: 22653
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400587D")]
|
||||
private AttributeCertificateHolder holder;
|
||||
|
||||
// Token: 0x0400587E RID: 22654
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400587E")]
|
||||
private AttributeCertificateIssuer issuer;
|
||||
|
||||
// Token: 0x0400587F RID: 22655
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400587F")]
|
||||
private BigInteger serialNumber;
|
||||
|
||||
// Token: 0x04005880 RID: 22656
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4005880")]
|
||||
private ISet targetNames;
|
||||
|
||||
// Token: 0x04005881 RID: 22657
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4005881")]
|
||||
private ISet targetGroups;
|
||||
}
|
||||
}
|
||||
+179
@@ -0,0 +1,179 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x02001339 RID: 4921
|
||||
[Token(Token = "0x2001339")]
|
||||
[StructLayout(3)]
|
||||
public class X509CertPairStoreSelector : IX509Selector, ICloneable
|
||||
{
|
||||
// Token: 0x06007BC9 RID: 31689 RVA: 0x0019C498 File Offset: 0x0019A698
|
||||
[Token(Token = "0x6007BC9")]
|
||||
[Address(RVA = "0x52E0F0", Offset = "0x52CAF0", VA = "0x18052E0F0")]
|
||||
private static X509CertStoreSelector CloneSelector(X509CertStoreSelector s)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007BC9)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CertStoreSelector BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CertPairStoreSelector::CloneSelector(BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CertStoreSelector)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_13:
|
||||
brtrue(IL_13, cne:bool(ldloc:object(var_1_0C), ldc.i4:int32[exp:object](0)))
|
||||
}
|
||||
|
||||
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: 0x06007BCA RID: 31690 RVA: 0x0019C4BC File Offset: 0x0019A6BC
|
||||
[Token(Token = "0x6007BCA")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public X509CertPairStoreSelector()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06007BCB RID: 31691 RVA: 0x0019C4D0 File Offset: 0x0019A6D0
|
||||
[Token(Token = "0x6007BCB")]
|
||||
[Address(RVA = "0x52E340", Offset = "0x52CD40", VA = "0x18052E340")]
|
||||
private X509CertPairStoreSelector(X509CertPairStoreSelector o)
|
||||
{
|
||||
X509CertificatePair x509CertificatePair = o.certPair;
|
||||
this.certPair = x509CertificatePair;
|
||||
X509CertStoreSelector x509CertStoreSelector = X509CertPairStoreSelector.CloneSelector(o.forwardSelector);
|
||||
this.forwardSelector = x509CertStoreSelector;
|
||||
X509CertStoreSelector x509CertStoreSelector2 = X509CertPairStoreSelector.CloneSelector(o.reverseSelector);
|
||||
this.reverseSelector = x509CertStoreSelector2;
|
||||
}
|
||||
|
||||
// Token: 0x1700142A RID: 5162
|
||||
// (get) Token: 0x06007BCC RID: 31692 RVA: 0x0019C520 File Offset: 0x0019A720
|
||||
// (set) Token: 0x06007BCD RID: 31693 RVA: 0x0019C534 File Offset: 0x0019A734
|
||||
[Token(Token = "0x1700142A")]
|
||||
public X509CertificatePair CertPair
|
||||
{
|
||||
[Token(Token = "0x6007BCC")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.certPair;
|
||||
}
|
||||
[Token(Token = "0x6007BCD")]
|
||||
[Address(RVA = "0x3C39B0", Offset = "0x3C23B0", VA = "0x1803C39B0")]
|
||||
set
|
||||
{
|
||||
this.certPair = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700142B RID: 5163
|
||||
// (get) Token: 0x06007BCE RID: 31694 RVA: 0x0019C548 File Offset: 0x0019A748
|
||||
// (set) Token: 0x06007BCF RID: 31695 RVA: 0x0019C560 File Offset: 0x0019A760
|
||||
[Token(Token = "0x1700142B")]
|
||||
public X509CertStoreSelector ForwardSelector
|
||||
{
|
||||
[Token(Token = "0x6007BCE")]
|
||||
[Address(RVA = "0x52E3A0", Offset = "0x52CDA0", VA = "0x18052E3A0")]
|
||||
get
|
||||
{
|
||||
return X509CertPairStoreSelector.CloneSelector(this.forwardSelector);
|
||||
}
|
||||
[Token(Token = "0x6007BCF")]
|
||||
[Address(RVA = "0x52E3C0", Offset = "0x52CDC0", VA = "0x18052E3C0")]
|
||||
set
|
||||
{
|
||||
X509CertStoreSelector x509CertStoreSelector = X509CertPairStoreSelector.CloneSelector(value);
|
||||
this.forwardSelector = x509CertStoreSelector;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700142C RID: 5164
|
||||
// (get) Token: 0x06007BD0 RID: 31696 RVA: 0x0019C57C File Offset: 0x0019A77C
|
||||
// (set) Token: 0x06007BD1 RID: 31697 RVA: 0x0019C594 File Offset: 0x0019A794
|
||||
[Token(Token = "0x1700142C")]
|
||||
public X509CertStoreSelector ReverseSelector
|
||||
{
|
||||
[Token(Token = "0x6007BD0")]
|
||||
[Address(RVA = "0x52E3B0", Offset = "0x52CDB0", VA = "0x18052E3B0")]
|
||||
get
|
||||
{
|
||||
return X509CertPairStoreSelector.CloneSelector(this.reverseSelector);
|
||||
}
|
||||
[Token(Token = "0x6007BD1")]
|
||||
[Address(RVA = "0x52E3E0", Offset = "0x52CDE0", VA = "0x18052E3E0")]
|
||||
set
|
||||
{
|
||||
X509CertStoreSelector x509CertStoreSelector = X509CertPairStoreSelector.CloneSelector(value);
|
||||
this.reverseSelector = x509CertStoreSelector;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007BD2 RID: 31698 RVA: 0x0019C5B0 File Offset: 0x0019A7B0
|
||||
[Token(Token = "0x6007BD2")]
|
||||
[Address(RVA = "0x52E210", Offset = "0x52CC10", VA = "0x18052E210", Slot = "4")]
|
||||
public bool Match(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007BD2)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Boolean BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CertPairStoreSelector::Match(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_3F:
|
||||
stloc:ArgumentNullException(var_4_49, newobj:ArgumentNullException(ArgumentNullException::.ctor, 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: 0x06007BD3 RID: 31699 RVA: 0x0019C608 File Offset: 0x0019A808
|
||||
[Token(Token = "0x6007BD3")]
|
||||
[Address(RVA = "0x52E190", Offset = "0x52CB90", VA = "0x18052E190", Slot = "5")]
|
||||
public object Clone()
|
||||
{
|
||||
X509CertPairStoreSelector x509CertPairStoreSelector = new X509CertPairStoreSelector();
|
||||
X509CertificatePair x509CertificatePair = this.certPair;
|
||||
x509CertPairStoreSelector.certPair = x509CertificatePair;
|
||||
X509CertStoreSelector x509CertStoreSelector = X509CertPairStoreSelector.CloneSelector(this.forwardSelector);
|
||||
x509CertPairStoreSelector.forwardSelector = x509CertStoreSelector;
|
||||
X509CertStoreSelector x509CertStoreSelector2 = X509CertPairStoreSelector.CloneSelector(this.reverseSelector);
|
||||
x509CertPairStoreSelector.reverseSelector = x509CertStoreSelector2;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005882 RID: 22658
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005882")]
|
||||
private X509CertificatePair certPair;
|
||||
|
||||
// Token: 0x04005883 RID: 22659
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005883")]
|
||||
private X509CertStoreSelector forwardSelector;
|
||||
|
||||
// Token: 0x04005884 RID: 22660
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005884")]
|
||||
private X509CertStoreSelector reverseSelector;
|
||||
}
|
||||
}
|
||||
+776
@@ -0,0 +1,776 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x0200133A RID: 4922
|
||||
[Token(Token = "0x200133A")]
|
||||
[StructLayout(3)]
|
||||
public class X509CertStoreSelector : IX509Selector, ICloneable
|
||||
{
|
||||
// Token: 0x06007BD4 RID: 31700 RVA: 0x0019C654 File Offset: 0x0019A854
|
||||
[Token(Token = "0x6007BD4")]
|
||||
[Address(RVA = "0x52F390", Offset = "0x52DD90", VA = "0x18052F390")]
|
||||
public X509CertStoreSelector()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06007BD5 RID: 31701 RVA: 0x0019C678 File Offset: 0x0019A878
|
||||
[Token(Token = "0x6007BD5")]
|
||||
[Address(RVA = "0x52F1B0", Offset = "0x52DBB0", VA = "0x18052F1B0")]
|
||||
public X509CertStoreSelector(X509CertStoreSelector o)
|
||||
{
|
||||
byte[] array = Arrays.Clone(o.authorityKeyIdentifier);
|
||||
this.authorityKeyIdentifier = array;
|
||||
int num = o.basicConstraints;
|
||||
this.basicConstraints = num;
|
||||
X509Certificate x509Certificate = o.certificate;
|
||||
this.certificate = x509Certificate;
|
||||
DateTimeObject dateTimeObject = o.certificateValid;
|
||||
this.certificateValid = dateTimeObject;
|
||||
ISet set = o.extendedKeyUsage;
|
||||
if (set == 0)
|
||||
{
|
||||
}
|
||||
HashSet hashSet = new HashSet(set);
|
||||
this.extendedKeyUsage = hashSet;
|
||||
bool flag = o.ignoreX509NameOrdering;
|
||||
this.ignoreX509NameOrdering = flag;
|
||||
X509Name x509Name = o.issuer;
|
||||
this.issuer = x509Name;
|
||||
bool[] array2 = X509CertStoreSelector.CopyBoolArray(o.keyUsage);
|
||||
this.keyUsage = array2;
|
||||
ISet set2 = o.policy;
|
||||
HashSet hashSet2;
|
||||
if (set2 != 0)
|
||||
{
|
||||
hashSet2 = new HashSet(set2);
|
||||
}
|
||||
this.policy = hashSet2;
|
||||
DateTimeObject dateTimeObject2 = o.privateKeyValid;
|
||||
this.privateKeyValid = dateTimeObject2;
|
||||
BigInteger bigInteger = o.serialNumber;
|
||||
this.serialNumber = bigInteger;
|
||||
X509Name x509Name2 = o.subject;
|
||||
this.subject = x509Name2;
|
||||
byte[] array3 = Arrays.Clone(o.subjectKeyIdentifier);
|
||||
this.subjectKeyIdentifier = array3;
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo = o.subjectPublicKey;
|
||||
this.subjectPublicKey = subjectPublicKeyInfo;
|
||||
DerObjectIdentifier derObjectIdentifier = o.subjectPublicKeyAlgID;
|
||||
this.subjectPublicKeyAlgID = derObjectIdentifier;
|
||||
}
|
||||
|
||||
// Token: 0x06007BD6 RID: 31702 RVA: 0x0019C7B8 File Offset: 0x0019A9B8
|
||||
[Token(Token = "0x6007BD6")]
|
||||
[Address(RVA = "0x52E400", Offset = "0x52CE00", VA = "0x18052E400", Slot = "6")]
|
||||
public virtual object Clone()
|
||||
{
|
||||
X509CertStoreSelector x509CertStoreSelector = new X509CertStoreSelector();
|
||||
x509CertStoreSelector.basicConstraints = (int)((ulong)4294967295L);
|
||||
byte[] array = Arrays.Clone(this.authorityKeyIdentifier);
|
||||
x509CertStoreSelector.authorityKeyIdentifier = array;
|
||||
int num = this.basicConstraints;
|
||||
x509CertStoreSelector.basicConstraints = num;
|
||||
X509Certificate x509Certificate = this.certificate;
|
||||
x509CertStoreSelector.certificate = x509Certificate;
|
||||
DateTimeObject dateTimeObject = this.certificateValid;
|
||||
x509CertStoreSelector.certificateValid = dateTimeObject;
|
||||
ISet set = this.extendedKeyUsage;
|
||||
if (set == 0)
|
||||
{
|
||||
}
|
||||
HashSet hashSet = new HashSet(set);
|
||||
x509CertStoreSelector.extendedKeyUsage = hashSet;
|
||||
bool flag = this.ignoreX509NameOrdering;
|
||||
x509CertStoreSelector.ignoreX509NameOrdering = flag;
|
||||
X509Name x509Name = this.issuer;
|
||||
x509CertStoreSelector.issuer = x509Name;
|
||||
bool[] array2 = X509CertStoreSelector.CopyBoolArray(this.keyUsage);
|
||||
x509CertStoreSelector.keyUsage = array2;
|
||||
ISet set2 = this.policy;
|
||||
HashSet hashSet2;
|
||||
if (set2 != 0)
|
||||
{
|
||||
hashSet2 = new HashSet(set2);
|
||||
}
|
||||
x509CertStoreSelector.policy = hashSet2;
|
||||
DateTimeObject dateTimeObject2 = this.privateKeyValid;
|
||||
x509CertStoreSelector.privateKeyValid = dateTimeObject2;
|
||||
BigInteger bigInteger = this.serialNumber;
|
||||
x509CertStoreSelector.serialNumber = bigInteger;
|
||||
X509Name x509Name2 = this.subject;
|
||||
x509CertStoreSelector.subject = x509Name2;
|
||||
byte[] array3 = Arrays.Clone(this.subjectKeyIdentifier);
|
||||
x509CertStoreSelector.subjectKeyIdentifier = array3;
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo = this.subjectPublicKey;
|
||||
x509CertStoreSelector.subjectPublicKey = subjectPublicKeyInfo;
|
||||
DerObjectIdentifier derObjectIdentifier = this.subjectPublicKeyAlgID;
|
||||
x509CertStoreSelector.subjectPublicKeyAlgID = derObjectIdentifier;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x1700142D RID: 5165
|
||||
// (get) Token: 0x06007BD7 RID: 31703 RVA: 0x0019C8F8 File Offset: 0x0019AAF8
|
||||
// (set) Token: 0x06007BD8 RID: 31704 RVA: 0x0019C910 File Offset: 0x0019AB10
|
||||
[Token(Token = "0x1700142D")]
|
||||
public byte[] AuthorityKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x6007BD7")]
|
||||
[Address(RVA = "0x52F3A0", Offset = "0x52DDA0", VA = "0x18052F3A0")]
|
||||
get
|
||||
{
|
||||
return Arrays.Clone(this.authorityKeyIdentifier);
|
||||
}
|
||||
[Token(Token = "0x6007BD8")]
|
||||
[Address(RVA = "0x52F5B0", Offset = "0x52DFB0", VA = "0x18052F5B0")]
|
||||
set
|
||||
{
|
||||
byte[] array = Arrays.Clone(value);
|
||||
this.authorityKeyIdentifier = array;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700142E RID: 5166
|
||||
// (get) Token: 0x06007BD9 RID: 31705 RVA: 0x0019C92C File Offset: 0x0019AB2C
|
||||
// (set) Token: 0x06007BDA RID: 31706 RVA: 0x0019C940 File Offset: 0x0019AB40
|
||||
[Token(Token = "0x1700142E")]
|
||||
public int BasicConstraints
|
||||
{
|
||||
[Token(Token = "0x6007BD9")]
|
||||
[Address(RVA = "0x3EE8D0", Offset = "0x3ED2D0", VA = "0x1803EE8D0")]
|
||||
get
|
||||
{
|
||||
return this.basicConstraints;
|
||||
}
|
||||
[Token(Token = "0x6007BDA")]
|
||||
[Address(RVA = "0x52F620", Offset = "0x52E020", VA = "0x18052F620")]
|
||||
set
|
||||
{
|
||||
this.basicConstraints = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700142F RID: 5167
|
||||
// (get) Token: 0x06007BDB RID: 31707 RVA: 0x0019C964 File Offset: 0x0019AB64
|
||||
// (set) Token: 0x06007BDC RID: 31708 RVA: 0x0019C978 File Offset: 0x0019AB78
|
||||
[Token(Token = "0x1700142F")]
|
||||
public X509Certificate Certificate
|
||||
{
|
||||
[Token(Token = "0x6007BDB")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.certificate;
|
||||
}
|
||||
[Token(Token = "0x6007BDC")]
|
||||
[Address(RVA = "0x3C1260", Offset = "0x3BFC60", VA = "0x1803C1260")]
|
||||
set
|
||||
{
|
||||
this.certificate = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001430 RID: 5168
|
||||
// (get) Token: 0x06007BDD RID: 31709 RVA: 0x0019C98C File Offset: 0x0019AB8C
|
||||
// (set) Token: 0x06007BDE RID: 31710 RVA: 0x0019C9A0 File Offset: 0x0019ABA0
|
||||
[Token(Token = "0x17001430")]
|
||||
public DateTimeObject CertificateValid
|
||||
{
|
||||
[Token(Token = "0x6007BDD")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.certificateValid;
|
||||
}
|
||||
[Token(Token = "0x6007BDE")]
|
||||
[Address(RVA = "0x3C1270", Offset = "0x3BFC70", VA = "0x1803C1270")]
|
||||
set
|
||||
{
|
||||
this.certificateValid = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001431 RID: 5169
|
||||
// (get) Token: 0x06007BDF RID: 31711 RVA: 0x0019C9B4 File Offset: 0x0019ABB4
|
||||
// (set) Token: 0x06007BE0 RID: 31712 RVA: 0x0019C9D4 File Offset: 0x0019ABD4
|
||||
[Token(Token = "0x17001431")]
|
||||
public ISet ExtendedKeyUsage
|
||||
{
|
||||
[Token(Token = "0x6007BDF")]
|
||||
[Address(RVA = "0x52F400", Offset = "0x52DE00", VA = "0x18052F400")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007BDF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CertStoreSelector::get_ExtendedKeyUsage()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0D:
|
||||
stloc:HashSet(var_2_13, newobj:HashSet(HashSet::.ctor, ldloc:ISet[exp:IEnumerable](var_0_06)))
|
||||
}
|
||||
|
||||
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(Token = "0x6007BE0")]
|
||||
[Address(RVA = "0x52F6A0", Offset = "0x52E0A0", VA = "0x18052F6A0")]
|
||||
set
|
||||
{
|
||||
if (value == 0)
|
||||
{
|
||||
this.extendedKeyUsage = value;
|
||||
return;
|
||||
}
|
||||
HashSet hashSet = new HashSet(value);
|
||||
this.extendedKeyUsage = hashSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001432 RID: 5170
|
||||
// (get) Token: 0x06007BE1 RID: 31713 RVA: 0x0019C9FC File Offset: 0x0019ABFC
|
||||
// (set) Token: 0x06007BE2 RID: 31714 RVA: 0x0019CA10 File Offset: 0x0019AC10
|
||||
[Token(Token = "0x17001432")]
|
||||
public bool IgnoreX509NameOrdering
|
||||
{
|
||||
[Token(Token = "0x6007BE1")]
|
||||
[Address(RVA = "0x52F470", Offset = "0x52DE70", VA = "0x18052F470")]
|
||||
get
|
||||
{
|
||||
return this.ignoreX509NameOrdering;
|
||||
}
|
||||
[Token(Token = "0x6007BE2")]
|
||||
[Address(RVA = "0x52F720", Offset = "0x52E120", VA = "0x18052F720")]
|
||||
set
|
||||
{
|
||||
this.ignoreX509NameOrdering = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001433 RID: 5171
|
||||
// (get) Token: 0x06007BE3 RID: 31715 RVA: 0x0019CA24 File Offset: 0x0019AC24
|
||||
// (set) Token: 0x06007BE4 RID: 31716 RVA: 0x0019CA38 File Offset: 0x0019AC38
|
||||
[Token(Token = "0x17001433")]
|
||||
public X509Name Issuer
|
||||
{
|
||||
[Token(Token = "0x6007BE3")]
|
||||
[Address(RVA = "0x3D32F0", Offset = "0x3D1CF0", VA = "0x1803D32F0")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
[Token(Token = "0x6007BE4")]
|
||||
[Address(RVA = "0x3D3460", Offset = "0x3D1E60", VA = "0x1803D3460")]
|
||||
set
|
||||
{
|
||||
this.issuer = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001434 RID: 5172
|
||||
// (get) Token: 0x06007BE5 RID: 31717 RVA: 0x0019CA4C File Offset: 0x0019AC4C
|
||||
[Token(Token = "0x17001434")]
|
||||
[Obsolete]
|
||||
public string IssuerAsString
|
||||
{
|
||||
[Token(Token = "0x6007BE5")]
|
||||
[Address(RVA = "0x52F480", Offset = "0x52DE80", VA = "0x18052F480")]
|
||||
get
|
||||
{
|
||||
X509Name x509Name = this.issuer;
|
||||
if (x509Name != 0)
|
||||
{
|
||||
Asn1Object asn1Object = x509Name.ToAsn1Object();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001435 RID: 5173
|
||||
// (get) Token: 0x06007BE6 RID: 31718 RVA: 0x0019CA6C File Offset: 0x0019AC6C
|
||||
// (set) Token: 0x06007BE7 RID: 31719 RVA: 0x0019CA84 File Offset: 0x0019AC84
|
||||
[Token(Token = "0x17001435")]
|
||||
public bool[] KeyUsage
|
||||
{
|
||||
[Token(Token = "0x6007BE6")]
|
||||
[Address(RVA = "0x52F4A0", Offset = "0x52DEA0", VA = "0x18052F4A0")]
|
||||
get
|
||||
{
|
||||
return X509CertStoreSelector.CopyBoolArray(this.keyUsage);
|
||||
}
|
||||
[Token(Token = "0x6007BE7")]
|
||||
[Address(RVA = "0x52F730", Offset = "0x52E130", VA = "0x18052F730")]
|
||||
set
|
||||
{
|
||||
bool[] array = X509CertStoreSelector.CopyBoolArray(value);
|
||||
this.keyUsage = array;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001436 RID: 5174
|
||||
// (get) Token: 0x06007BE8 RID: 31720 RVA: 0x0019CAA0 File Offset: 0x0019ACA0
|
||||
// (set) Token: 0x06007BE9 RID: 31721 RVA: 0x0019CAC0 File Offset: 0x0019ACC0
|
||||
[Token(Token = "0x17001436")]
|
||||
public ISet Policy
|
||||
{
|
||||
[Token(Token = "0x6007BE8")]
|
||||
[Address(RVA = "0x52F4B0", Offset = "0x52DEB0", VA = "0x18052F4B0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007BE8)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CertStoreSelector::get_Policy()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_0D:
|
||||
stloc:HashSet(var_2_13, newobj:HashSet(HashSet::.ctor, ldloc:ISet[exp:IEnumerable](var_0_06)))
|
||||
}
|
||||
|
||||
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(Token = "0x6007BE9")]
|
||||
[Address(RVA = "0x52F750", Offset = "0x52E150", VA = "0x18052F750")]
|
||||
set
|
||||
{
|
||||
if (value == 0)
|
||||
{
|
||||
this.policy = value;
|
||||
return;
|
||||
}
|
||||
HashSet hashSet = new HashSet(value);
|
||||
this.policy = hashSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001437 RID: 5175
|
||||
// (get) Token: 0x06007BEA RID: 31722 RVA: 0x0019CAE8 File Offset: 0x0019ACE8
|
||||
// (set) Token: 0x06007BEB RID: 31723 RVA: 0x0019CAFC File Offset: 0x0019ACFC
|
||||
[Token(Token = "0x17001437")]
|
||||
public DateTimeObject PrivateKeyValid
|
||||
{
|
||||
[Token(Token = "0x6007BEA")]
|
||||
[Address(RVA = "0x4B81A0", Offset = "0x4B6BA0", VA = "0x1804B81A0")]
|
||||
get
|
||||
{
|
||||
return this.privateKeyValid;
|
||||
}
|
||||
[Token(Token = "0x6007BEB")]
|
||||
[Address(RVA = "0x3EDEB0", Offset = "0x3EC8B0", VA = "0x1803EDEB0")]
|
||||
set
|
||||
{
|
||||
this.privateKeyValid = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001438 RID: 5176
|
||||
// (get) Token: 0x06007BEC RID: 31724 RVA: 0x0019CB10 File Offset: 0x0019AD10
|
||||
// (set) Token: 0x06007BED RID: 31725 RVA: 0x0019CB24 File Offset: 0x0019AD24
|
||||
[Token(Token = "0x17001438")]
|
||||
public BigInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x6007BEC")]
|
||||
[Address(RVA = "0x3EDE90", Offset = "0x3EC890", VA = "0x1803EDE90")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
[Token(Token = "0x6007BED")]
|
||||
[Address(RVA = "0x3EDEC0", Offset = "0x3EC8C0", VA = "0x1803EDEC0")]
|
||||
set
|
||||
{
|
||||
this.serialNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001439 RID: 5177
|
||||
// (get) Token: 0x06007BEE RID: 31726 RVA: 0x0019CB38 File Offset: 0x0019AD38
|
||||
// (set) Token: 0x06007BEF RID: 31727 RVA: 0x0019CB4C File Offset: 0x0019AD4C
|
||||
[Token(Token = "0x17001439")]
|
||||
public X509Name Subject
|
||||
{
|
||||
[Token(Token = "0x6007BEE")]
|
||||
[Address(RVA = "0x48F050", Offset = "0x48DA50", VA = "0x18048F050")]
|
||||
get
|
||||
{
|
||||
return this.subject;
|
||||
}
|
||||
[Token(Token = "0x6007BEF")]
|
||||
[Address(RVA = "0x52F860", Offset = "0x52E260", VA = "0x18052F860")]
|
||||
set
|
||||
{
|
||||
this.subject = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700143A RID: 5178
|
||||
// (get) Token: 0x06007BF0 RID: 31728 RVA: 0x0019CB60 File Offset: 0x0019AD60
|
||||
[Token(Token = "0x1700143A")]
|
||||
[Obsolete]
|
||||
public string SubjectAsString
|
||||
{
|
||||
[Token(Token = "0x6007BF0")]
|
||||
[Address(RVA = "0x52F520", Offset = "0x52DF20", VA = "0x18052F520")]
|
||||
get
|
||||
{
|
||||
X509Name x509Name = this.subject;
|
||||
if (x509Name != 0)
|
||||
{
|
||||
Asn1Object asn1Object = x509Name.ToAsn1Object();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700143B RID: 5179
|
||||
// (get) Token: 0x06007BF1 RID: 31729 RVA: 0x0019CB80 File Offset: 0x0019AD80
|
||||
// (set) Token: 0x06007BF2 RID: 31730 RVA: 0x0019CB98 File Offset: 0x0019AD98
|
||||
[Token(Token = "0x1700143B")]
|
||||
public byte[] SubjectKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x6007BF1")]
|
||||
[Address(RVA = "0x52F540", Offset = "0x52DF40", VA = "0x18052F540")]
|
||||
get
|
||||
{
|
||||
return Arrays.Clone(this.subjectKeyIdentifier);
|
||||
}
|
||||
[Token(Token = "0x6007BF2")]
|
||||
[Address(RVA = "0x52F7D0", Offset = "0x52E1D0", VA = "0x18052F7D0")]
|
||||
set
|
||||
{
|
||||
byte[] array = Arrays.Clone(value);
|
||||
this.subjectKeyIdentifier = array;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700143C RID: 5180
|
||||
// (get) Token: 0x06007BF3 RID: 31731 RVA: 0x0019CBB4 File Offset: 0x0019ADB4
|
||||
// (set) Token: 0x06007BF4 RID: 31732 RVA: 0x0019CBC8 File Offset: 0x0019ADC8
|
||||
[Token(Token = "0x1700143C")]
|
||||
public SubjectPublicKeyInfo SubjectPublicKey
|
||||
{
|
||||
[Token(Token = "0x6007BF3")]
|
||||
[Address(RVA = "0x501250", Offset = "0x4FFC50", VA = "0x180501250")]
|
||||
get
|
||||
{
|
||||
return this.subjectPublicKey;
|
||||
}
|
||||
[Token(Token = "0x6007BF4")]
|
||||
[Address(RVA = "0x52F850", Offset = "0x52E250", VA = "0x18052F850")]
|
||||
set
|
||||
{
|
||||
this.subjectPublicKey = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700143D RID: 5181
|
||||
// (get) Token: 0x06007BF5 RID: 31733 RVA: 0x0019CBDC File Offset: 0x0019ADDC
|
||||
// (set) Token: 0x06007BF6 RID: 31734 RVA: 0x0019CBF0 File Offset: 0x0019ADF0
|
||||
[Token(Token = "0x1700143D")]
|
||||
public DerObjectIdentifier SubjectPublicKeyAlgID
|
||||
{
|
||||
[Token(Token = "0x6007BF5")]
|
||||
[Address(RVA = "0x52F5A0", Offset = "0x52DFA0", VA = "0x18052F5A0")]
|
||||
get
|
||||
{
|
||||
return this.subjectPublicKeyAlgID;
|
||||
}
|
||||
[Token(Token = "0x6007BF6")]
|
||||
[Address(RVA = "0x52F840", Offset = "0x52E240", VA = "0x18052F840")]
|
||||
set
|
||||
{
|
||||
this.subjectPublicKeyAlgID = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007BF7 RID: 31735 RVA: 0x0019CC04 File Offset: 0x0019AE04
|
||||
[Token(Token = "0x6007BF7")]
|
||||
[Address(RVA = "0x52E830", Offset = "0x52D230", VA = "0x18052E830", Slot = "7")]
|
||||
public virtual bool Match(object obj)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
int num = 0;
|
||||
if (obj != 0 && obj != 0)
|
||||
{
|
||||
byte[] array = this.authorityKeyIdentifier;
|
||||
bool flag;
|
||||
if (!flag || (this.basicConstraints != -1 && this.basicConstraints != -2))
|
||||
{
|
||||
}
|
||||
}
|
||||
IL_2D:
|
||||
if (this.certificate != 0)
|
||||
{
|
||||
}
|
||||
if (this.certificateValid != 0)
|
||||
{
|
||||
}
|
||||
if (this.extendedKeyUsage != num)
|
||||
{
|
||||
ISet set = this.extendedKeyUsage;
|
||||
int num2 = 0;
|
||||
if (num != -1)
|
||||
{
|
||||
if (typeof(IDisposable).TypeHandle == (ulong)735L)
|
||||
{
|
||||
}
|
||||
if (typeof(IDisposable).TypeHandle == (ulong)227L)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (num2 != 0)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
}
|
||||
if (this.issuer != 0)
|
||||
{
|
||||
bool flag2 = !this.ignoreX509NameOrdering;
|
||||
bool flag3;
|
||||
while (!flag3)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (this.keyUsage != (ulong)0L)
|
||||
{
|
||||
bool[] array2 = this.keyUsage;
|
||||
num++;
|
||||
}
|
||||
if (this.policy == (ulong)0L)
|
||||
{
|
||||
goto IL_FD;
|
||||
}
|
||||
Asn1Object asn1Object;
|
||||
Asn1Sequence instance = Asn1Sequence.GetInstance(asn1Object);
|
||||
ISet set2 = this.policy;
|
||||
if (instance < (ulong)1L)
|
||||
{
|
||||
}
|
||||
IEnumerator enumerator = instance.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
ISet set3 = this.policy;
|
||||
while (enumerator == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (-1 != 0)
|
||||
{
|
||||
}
|
||||
if (18446744073709551615UL != (ulong)(-1L))
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
goto IL_2D;
|
||||
}
|
||||
while ((ulong)1L == 0UL)
|
||||
{
|
||||
}
|
||||
IL_FD:
|
||||
if (this.privateKeyValid != (ulong)0L)
|
||||
{
|
||||
Asn1Object asn1Object2;
|
||||
PrivateKeyUsagePeriod instance2 = PrivateKeyUsagePeriod.GetInstance(asn1Object2);
|
||||
DateTimeObject dateTimeObject = this.privateKeyValid;
|
||||
DateTime dateTime = instance2._notAfter.ToDateTime();
|
||||
DateTime dateTime2 = instance2._notBefore.ToDateTime();
|
||||
}
|
||||
if (this.serialNumber != 0)
|
||||
{
|
||||
}
|
||||
if (this.subject != 0)
|
||||
{
|
||||
bool flag4;
|
||||
while (!flag4)
|
||||
{
|
||||
}
|
||||
}
|
||||
byte[] array3 = this.subjectKeyIdentifier;
|
||||
bool flag5;
|
||||
while (!flag5)
|
||||
{
|
||||
}
|
||||
if (this.subjectPublicKey != 0)
|
||||
{
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
while (subjectPublicKeyInfo == 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
if (this.subjectPublicKeyAlgID != 0)
|
||||
{
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06007BF8 RID: 31736 RVA: 0x0019CD94 File Offset: 0x0019AF94
|
||||
[Token(Token = "0x6007BF8")]
|
||||
[Address(RVA = "0x52E730", Offset = "0x52D130", VA = "0x18052E730")]
|
||||
internal static bool IssuersMatch(X509Name a, X509Name b)
|
||||
{
|
||||
if (a == 0)
|
||||
{
|
||||
return b == 0;
|
||||
}
|
||||
return a.Equivalent(b, true);
|
||||
}
|
||||
|
||||
// Token: 0x06007BF9 RID: 31737 RVA: 0x0019CDB4 File Offset: 0x0019AFB4
|
||||
[Token(Token = "0x6007BF9")]
|
||||
[Address(RVA = "0x52E610", Offset = "0x52D010", VA = "0x18052E610")]
|
||||
private static bool[] CopyBoolArray(bool[] b)
|
||||
{
|
||||
while (b != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007BFA RID: 31738 RVA: 0x0019CDC8 File Offset: 0x0019AFC8
|
||||
[Token(Token = "0x6007BFA")]
|
||||
[Address(RVA = "0x52E690", Offset = "0x52D090", VA = "0x18052E690")]
|
||||
private static ISet CopySet(ISet s)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007BFA)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CertStoreSelector::CopySet(BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Collections.ISet)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_06:
|
||||
stloc:HashSet(var_1_0C, newobj:HashSet(HashSet::.ctor, ldloc:ISet[exp:IEnumerable](s)))
|
||||
}
|
||||
|
||||
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: 0x06007BFB RID: 31739 RVA: 0x0019CDE4 File Offset: 0x0019AFE4
|
||||
[Token(Token = "0x6007BFB")]
|
||||
[Address(RVA = "0x52E700", Offset = "0x52D100", VA = "0x18052E700")]
|
||||
private static SubjectPublicKeyInfo GetSubjectPublicKey(X509Certificate c)
|
||||
{
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
return subjectPublicKeyInfo;
|
||||
}
|
||||
|
||||
// Token: 0x06007BFC RID: 31740 RVA: 0x0019CDF8 File Offset: 0x0019AFF8
|
||||
[Token(Token = "0x6007BFC")]
|
||||
[Address(RVA = "0x52E750", Offset = "0x52D150", VA = "0x18052E750")]
|
||||
private static bool MatchExtension(byte[] b, X509Certificate c, DerObjectIdentifier oid)
|
||||
{
|
||||
bool flag;
|
||||
return b == 0 || c.GetCriticalExtensionOids() == 0 || flag;
|
||||
}
|
||||
|
||||
// Token: 0x04005885 RID: 22661
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005885")]
|
||||
private byte[] authorityKeyIdentifier;
|
||||
|
||||
// Token: 0x04005886 RID: 22662
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005886")]
|
||||
private int basicConstraints = (int)((ulong)4294967295L);
|
||||
|
||||
// Token: 0x04005887 RID: 22663
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005887")]
|
||||
private X509Certificate certificate;
|
||||
|
||||
// Token: 0x04005888 RID: 22664
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4005888")]
|
||||
private DateTimeObject certificateValid;
|
||||
|
||||
// Token: 0x04005889 RID: 22665
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4005889")]
|
||||
private ISet extendedKeyUsage;
|
||||
|
||||
// Token: 0x0400588A RID: 22666
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400588A")]
|
||||
private bool ignoreX509NameOrdering;
|
||||
|
||||
// Token: 0x0400588B RID: 22667
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400588B")]
|
||||
private X509Name issuer;
|
||||
|
||||
// Token: 0x0400588C RID: 22668
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400588C")]
|
||||
private bool[] keyUsage;
|
||||
|
||||
// Token: 0x0400588D RID: 22669
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400588D")]
|
||||
private ISet policy;
|
||||
|
||||
// Token: 0x0400588E RID: 22670
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400588E")]
|
||||
private DateTimeObject privateKeyValid;
|
||||
|
||||
// Token: 0x0400588F RID: 22671
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400588F")]
|
||||
private BigInteger serialNumber;
|
||||
|
||||
// Token: 0x04005890 RID: 22672
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x4005890")]
|
||||
private X509Name subject;
|
||||
|
||||
// Token: 0x04005891 RID: 22673
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x4005891")]
|
||||
private byte[] subjectKeyIdentifier;
|
||||
|
||||
// Token: 0x04005892 RID: 22674
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x4005892")]
|
||||
private SubjectPublicKeyInfo subjectPublicKey;
|
||||
|
||||
// Token: 0x04005893 RID: 22675
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x4005893")]
|
||||
private DerObjectIdentifier subjectPublicKeyAlgID;
|
||||
}
|
||||
}
|
||||
+75
@@ -0,0 +1,75 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x0200133B RID: 4923
|
||||
[Token(Token = "0x200133B")]
|
||||
[StructLayout(3)]
|
||||
internal class X509CollectionStore : IX509Store
|
||||
{
|
||||
// Token: 0x06007BFD RID: 31741 RVA: 0x0019CE1C File Offset: 0x0019B01C
|
||||
[Token(Token = "0x6007BFD")]
|
||||
[Address(RVA = "0x532E90", Offset = "0x531890", VA = "0x180532E90")]
|
||||
internal X509CollectionStore(ICollection collection)
|
||||
{
|
||||
IList list = Platform.CreateArrayList(collection);
|
||||
this._local = list;
|
||||
}
|
||||
|
||||
// Token: 0x06007BFE RID: 31742 RVA: 0x0019CE40 File Offset: 0x0019B040
|
||||
[Token(Token = "0x6007BFE")]
|
||||
[Address(RVA = "0x532BE0", Offset = "0x5315E0", VA = "0x180532BE0", Slot = "4")]
|
||||
public ICollection GetMatches(IX509Selector selector)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (selector == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IList list = Platform.CreateArrayList();
|
||||
ICollection local = this._local;
|
||||
if (list != 0)
|
||||
{
|
||||
if (num < list)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
uint num2;
|
||||
if (num < (int)num2)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
while (num == 0)
|
||||
{
|
||||
}
|
||||
num++;
|
||||
num += 19;
|
||||
num += 19;
|
||||
}
|
||||
if (num != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
IList list2 = Platform.CreateArrayList(this._local);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005894 RID: 22676
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005894")]
|
||||
private ICollection _local;
|
||||
}
|
||||
}
|
||||
+87
@@ -0,0 +1,87 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x0200133C RID: 4924
|
||||
[Token(Token = "0x200133C")]
|
||||
[StructLayout(3)]
|
||||
public class X509CollectionStoreParameters : IX509StoreParameters
|
||||
{
|
||||
// Token: 0x06007BFF RID: 31743 RVA: 0x0019CEB8 File Offset: 0x0019B0B8
|
||||
[Token(Token = "0x6007BFF")]
|
||||
[Address(RVA = "0x532B30", Offset = "0x531530", VA = "0x180532B30")]
|
||||
public X509CollectionStoreParameters(ICollection collection)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007BFF)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CollectionStoreParameters::.ctor(System.Collections.ICollection)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_19:
|
||||
stloc:ArgumentNullException(var_1_23, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("collection")))
|
||||
}
|
||||
|
||||
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: 0x06007C00 RID: 31744 RVA: 0x0019CEE8 File Offset: 0x0019B0E8
|
||||
[Token(Token = "0x6007C00")]
|
||||
[Address(RVA = "0x532A10", Offset = "0x531410", VA = "0x180532A10")]
|
||||
public ICollection GetCollection()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007C00)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ICollection BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CollectionStoreParameters::GetCollection()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:IList(var_0_0B, call:IList(Platform::CreateArrayList, ldfld:IList[exp:ICollection](X509CollectionStoreParameters::collection, ldloc:X509CollectionStoreParameters(this))))
|
||||
}
|
||||
|
||||
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: 0x06007C01 RID: 31745 RVA: 0x0019CF00 File Offset: 0x0019B100
|
||||
[Token(Token = "0x6007C01")]
|
||||
[Address(RVA = "0x532A70", Offset = "0x531470", VA = "0x180532A70", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder stringBuilder = new StringBuilder();
|
||||
StringBuilder stringBuilder2 = stringBuilder.Append("X509CollectionStoreParameters: [\n");
|
||||
string text;
|
||||
StringBuilder stringBuilder3 = stringBuilder.Append(text);
|
||||
StringBuilder stringBuilder4 = stringBuilder.Append("]");
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005895 RID: 22677
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005895")]
|
||||
private readonly IList collection;
|
||||
}
|
||||
}
|
||||
+476
@@ -0,0 +1,476 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.Date;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x0200133D RID: 4925
|
||||
[Token(Token = "0x200133D")]
|
||||
[StructLayout(3)]
|
||||
public class X509CrlStoreSelector : IX509Selector, ICloneable
|
||||
{
|
||||
// Token: 0x06007C02 RID: 31746 RVA: 0x0019CF3C File Offset: 0x0019B13C
|
||||
[Token(Token = "0x6007C02")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
public X509CrlStoreSelector()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06007C03 RID: 31747 RVA: 0x0019CF50 File Offset: 0x0019B150
|
||||
[Token(Token = "0x6007C03")]
|
||||
[Address(RVA = "0x534BB0", Offset = "0x5335B0", VA = "0x180534BB0")]
|
||||
public X509CrlStoreSelector(X509CrlStoreSelector o)
|
||||
{
|
||||
X509Certificate x509Certificate = o.certificateChecking;
|
||||
this.certificateChecking = x509Certificate;
|
||||
DateTimeObject dateTimeObject = o.dateAndTime;
|
||||
this.dateAndTime = dateTimeObject;
|
||||
IList list = Platform.CreateArrayList(o.issuers);
|
||||
this.issuers = list;
|
||||
BigInteger bigInteger = o.maxCrlNumber;
|
||||
this.maxCrlNumber = bigInteger;
|
||||
BigInteger bigInteger2 = o.minCrlNumber;
|
||||
this.minCrlNumber = bigInteger2;
|
||||
bool flag = o.deltaCrlIndicatorEnabled;
|
||||
this.deltaCrlIndicatorEnabled = flag;
|
||||
bool flag2 = o.completeCrlEnabled;
|
||||
this.completeCrlEnabled = flag2;
|
||||
BigInteger bigInteger3 = o.maxBaseCrlNumber;
|
||||
this.maxBaseCrlNumber = bigInteger3;
|
||||
IX509AttributeCertificate ix509AttributeCertificate = o.attrCertChecking;
|
||||
this.attrCertChecking = ix509AttributeCertificate;
|
||||
bool flag3 = o.issuingDistributionPointEnabled;
|
||||
this.issuingDistributionPointEnabled = flag3;
|
||||
byte[] array = Arrays.Clone(o.issuingDistributionPoint);
|
||||
this.issuingDistributionPoint = array;
|
||||
}
|
||||
|
||||
// Token: 0x06007C04 RID: 31748 RVA: 0x0019D01C File Offset: 0x0019B21C
|
||||
[Token(Token = "0x6007C04")]
|
||||
[Address(RVA = "0x5344E0", Offset = "0x532EE0", VA = "0x1805344E0", Slot = "6")]
|
||||
public virtual object Clone()
|
||||
{
|
||||
X509CrlStoreSelector x509CrlStoreSelector = new X509CrlStoreSelector();
|
||||
X509Certificate x509Certificate = this.certificateChecking;
|
||||
x509CrlStoreSelector.certificateChecking = x509Certificate;
|
||||
DateTimeObject dateTimeObject = this.dateAndTime;
|
||||
x509CrlStoreSelector.dateAndTime = dateTimeObject;
|
||||
IList list = Platform.CreateArrayList(this.issuers);
|
||||
x509CrlStoreSelector.issuers = list;
|
||||
BigInteger bigInteger = this.maxCrlNumber;
|
||||
x509CrlStoreSelector.maxCrlNumber = bigInteger;
|
||||
BigInteger bigInteger2 = this.minCrlNumber;
|
||||
x509CrlStoreSelector.minCrlNumber = bigInteger2;
|
||||
bool flag = this.deltaCrlIndicatorEnabled;
|
||||
x509CrlStoreSelector.deltaCrlIndicatorEnabled = flag;
|
||||
bool flag2 = this.completeCrlEnabled;
|
||||
x509CrlStoreSelector.completeCrlEnabled = flag2;
|
||||
BigInteger bigInteger3 = this.maxBaseCrlNumber;
|
||||
x509CrlStoreSelector.maxBaseCrlNumber = bigInteger3;
|
||||
IX509AttributeCertificate ix509AttributeCertificate = this.attrCertChecking;
|
||||
x509CrlStoreSelector.attrCertChecking = ix509AttributeCertificate;
|
||||
bool flag3 = this.issuingDistributionPointEnabled;
|
||||
x509CrlStoreSelector.issuingDistributionPointEnabled = flag3;
|
||||
byte[] array = Arrays.Clone(this.issuingDistributionPoint);
|
||||
x509CrlStoreSelector.issuingDistributionPoint = array;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x1700143E RID: 5182
|
||||
// (get) Token: 0x06007C05 RID: 31749 RVA: 0x0019D0E8 File Offset: 0x0019B2E8
|
||||
// (set) Token: 0x06007C06 RID: 31750 RVA: 0x0019D0FC File Offset: 0x0019B2FC
|
||||
[Token(Token = "0x1700143E")]
|
||||
public X509Certificate CertificateChecking
|
||||
{
|
||||
[Token(Token = "0x6007C05")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.certificateChecking;
|
||||
}
|
||||
[Token(Token = "0x6007C06")]
|
||||
[Address(RVA = "0x3C39B0", Offset = "0x3C23B0", VA = "0x1803C39B0")]
|
||||
set
|
||||
{
|
||||
this.certificateChecking = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700143F RID: 5183
|
||||
// (get) Token: 0x06007C07 RID: 31751 RVA: 0x0019D110 File Offset: 0x0019B310
|
||||
// (set) Token: 0x06007C08 RID: 31752 RVA: 0x0019D124 File Offset: 0x0019B324
|
||||
[Token(Token = "0x1700143F")]
|
||||
public DateTimeObject DateAndTime
|
||||
{
|
||||
[Token(Token = "0x6007C07")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.dateAndTime;
|
||||
}
|
||||
[Token(Token = "0x6007C08")]
|
||||
[Address(RVA = "0x3C1280", Offset = "0x3BFC80", VA = "0x1803C1280")]
|
||||
set
|
||||
{
|
||||
this.dateAndTime = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001440 RID: 5184
|
||||
// (get) Token: 0x06007C09 RID: 31753 RVA: 0x0019D138 File Offset: 0x0019B338
|
||||
// (set) Token: 0x06007C0A RID: 31754 RVA: 0x0019D150 File Offset: 0x0019B350
|
||||
[Token(Token = "0x17001440")]
|
||||
public ICollection Issuers
|
||||
{
|
||||
[Token(Token = "0x6007C09")]
|
||||
[Address(RVA = "0x534CE0", Offset = "0x5336E0", VA = "0x180534CE0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007C09)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Collections.ICollection BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509CrlStoreSelector::get_Issuers()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:IList(var_0_0B, call:IList(Platform::CreateArrayList, ldfld:ICollection(X509CrlStoreSelector::issuers, ldloc:X509CrlStoreSelector(this))))
|
||||
}
|
||||
|
||||
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(Token = "0x6007C0A")]
|
||||
[Address(RVA = "0x534DB0", Offset = "0x5337B0", VA = "0x180534DB0")]
|
||||
set
|
||||
{
|
||||
IList list = Platform.CreateArrayList(value);
|
||||
this.issuers = list;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001441 RID: 5185
|
||||
// (get) Token: 0x06007C0B RID: 31755 RVA: 0x0019D16C File Offset: 0x0019B36C
|
||||
// (set) Token: 0x06007C0C RID: 31756 RVA: 0x0019D180 File Offset: 0x0019B380
|
||||
[Token(Token = "0x17001441")]
|
||||
public BigInteger MaxCrlNumber
|
||||
{
|
||||
[Token(Token = "0x6007C0B")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230")]
|
||||
get
|
||||
{
|
||||
return this.maxCrlNumber;
|
||||
}
|
||||
[Token(Token = "0x6007C0C")]
|
||||
[Address(RVA = "0x3C1270", Offset = "0x3BFC70", VA = "0x1803C1270")]
|
||||
set
|
||||
{
|
||||
this.maxCrlNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001442 RID: 5186
|
||||
// (get) Token: 0x06007C0D RID: 31757 RVA: 0x0019D194 File Offset: 0x0019B394
|
||||
// (set) Token: 0x06007C0E RID: 31758 RVA: 0x0019D1A8 File Offset: 0x0019B3A8
|
||||
[Token(Token = "0x17001442")]
|
||||
public BigInteger MinCrlNumber
|
||||
{
|
||||
[Token(Token = "0x6007C0D")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250")]
|
||||
get
|
||||
{
|
||||
return this.minCrlNumber;
|
||||
}
|
||||
[Token(Token = "0x6007C0E")]
|
||||
[Address(RVA = "0x3C1290", Offset = "0x3BFC90", VA = "0x1803C1290")]
|
||||
set
|
||||
{
|
||||
this.minCrlNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001443 RID: 5187
|
||||
// (get) Token: 0x06007C0F RID: 31759 RVA: 0x0019D1BC File Offset: 0x0019B3BC
|
||||
// (set) Token: 0x06007C10 RID: 31760 RVA: 0x0019D1D0 File Offset: 0x0019B3D0
|
||||
[Token(Token = "0x17001443")]
|
||||
public IX509AttributeCertificate AttrCertChecking
|
||||
{
|
||||
[Token(Token = "0x6007C0F")]
|
||||
[Address(RVA = "0x3EE8E0", Offset = "0x3ED2E0", VA = "0x1803EE8E0")]
|
||||
get
|
||||
{
|
||||
return this.attrCertChecking;
|
||||
}
|
||||
[Token(Token = "0x6007C10")]
|
||||
[Address(RVA = "0x421E00", Offset = "0x420800", VA = "0x180421E00")]
|
||||
set
|
||||
{
|
||||
this.attrCertChecking = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001444 RID: 5188
|
||||
// (get) Token: 0x06007C11 RID: 31761 RVA: 0x0019D1E4 File Offset: 0x0019B3E4
|
||||
// (set) Token: 0x06007C12 RID: 31762 RVA: 0x0019D1F8 File Offset: 0x0019B3F8
|
||||
[Token(Token = "0x17001444")]
|
||||
public bool CompleteCrlEnabled
|
||||
{
|
||||
[Token(Token = "0x6007C11")]
|
||||
[Address(RVA = "0x421DE0", Offset = "0x4207E0", VA = "0x180421DE0")]
|
||||
get
|
||||
{
|
||||
return this.completeCrlEnabled;
|
||||
}
|
||||
[Token(Token = "0x6007C12")]
|
||||
[Address(RVA = "0x421DF0", Offset = "0x4207F0", VA = "0x180421DF0")]
|
||||
set
|
||||
{
|
||||
this.completeCrlEnabled = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001445 RID: 5189
|
||||
// (get) Token: 0x06007C13 RID: 31763 RVA: 0x0019D20C File Offset: 0x0019B40C
|
||||
// (set) Token: 0x06007C14 RID: 31764 RVA: 0x0019D220 File Offset: 0x0019B420
|
||||
[Token(Token = "0x17001445")]
|
||||
public bool DeltaCrlIndicatorEnabled
|
||||
{
|
||||
[Token(Token = "0x6007C13")]
|
||||
[Address(RVA = "0x534CD0", Offset = "0x5336D0", VA = "0x180534CD0")]
|
||||
get
|
||||
{
|
||||
return this.deltaCrlIndicatorEnabled;
|
||||
}
|
||||
[Token(Token = "0x6007C14")]
|
||||
[Address(RVA = "0x534DA0", Offset = "0x5337A0", VA = "0x180534DA0")]
|
||||
set
|
||||
{
|
||||
this.deltaCrlIndicatorEnabled = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001446 RID: 5190
|
||||
// (get) Token: 0x06007C15 RID: 31765 RVA: 0x0019D234 File Offset: 0x0019B434
|
||||
// (set) Token: 0x06007C16 RID: 31766 RVA: 0x0019D24C File Offset: 0x0019B44C
|
||||
[Token(Token = "0x17001446")]
|
||||
public byte[] IssuingDistributionPoint
|
||||
{
|
||||
[Token(Token = "0x6007C15")]
|
||||
[Address(RVA = "0x534D40", Offset = "0x533740", VA = "0x180534D40")]
|
||||
get
|
||||
{
|
||||
return Arrays.Clone(this.issuingDistributionPoint);
|
||||
}
|
||||
[Token(Token = "0x6007C16")]
|
||||
[Address(RVA = "0x534E30", Offset = "0x533830", VA = "0x180534E30")]
|
||||
set
|
||||
{
|
||||
byte[] array = Arrays.Clone(value);
|
||||
this.issuingDistributionPoint = array;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001447 RID: 5191
|
||||
// (get) Token: 0x06007C17 RID: 31767 RVA: 0x0019D268 File Offset: 0x0019B468
|
||||
// (set) Token: 0x06007C18 RID: 31768 RVA: 0x0019D27C File Offset: 0x0019B47C
|
||||
[Token(Token = "0x17001447")]
|
||||
public bool IssuingDistributionPointEnabled
|
||||
{
|
||||
[Token(Token = "0x6007C17")]
|
||||
[Address(RVA = "0x446CB0", Offset = "0x4456B0", VA = "0x180446CB0")]
|
||||
get
|
||||
{
|
||||
return this.issuingDistributionPointEnabled;
|
||||
}
|
||||
[Token(Token = "0x6007C18")]
|
||||
[Address(RVA = "0x534E20", Offset = "0x533820", VA = "0x180534E20")]
|
||||
set
|
||||
{
|
||||
this.issuingDistributionPointEnabled = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001448 RID: 5192
|
||||
// (get) Token: 0x06007C19 RID: 31769 RVA: 0x0019D290 File Offset: 0x0019B490
|
||||
// (set) Token: 0x06007C1A RID: 31770 RVA: 0x0019D2A4 File Offset: 0x0019B4A4
|
||||
[Token(Token = "0x17001448")]
|
||||
public BigInteger MaxBaseCrlNumber
|
||||
{
|
||||
[Token(Token = "0x6007C19")]
|
||||
[Address(RVA = "0x4B81A0", Offset = "0x4B6BA0", VA = "0x1804B81A0")]
|
||||
get
|
||||
{
|
||||
return this.maxBaseCrlNumber;
|
||||
}
|
||||
[Token(Token = "0x6007C1A")]
|
||||
[Address(RVA = "0x3EDEB0", Offset = "0x3EC8B0", VA = "0x1803EDEB0")]
|
||||
set
|
||||
{
|
||||
this.maxBaseCrlNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06007C1B RID: 31771 RVA: 0x0019D2B8 File Offset: 0x0019B4B8
|
||||
[Token(Token = "0x6007C1B")]
|
||||
[Address(RVA = "0x534630", Offset = "0x533030", VA = "0x180534630", Slot = "7")]
|
||||
public virtual bool Match(object obj)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (obj == 0 || obj == 0)
|
||||
{
|
||||
goto IL_3B;
|
||||
}
|
||||
if (this.dateAndTime != 0)
|
||||
{
|
||||
}
|
||||
if (this.issuers == num)
|
||||
{
|
||||
goto IL_3E;
|
||||
}
|
||||
ICollection collection = this.issuers;
|
||||
bool flag;
|
||||
while (!flag)
|
||||
{
|
||||
}
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
if ((ulong)1L == 0UL)
|
||||
{
|
||||
}
|
||||
IL_3B:
|
||||
IL_3E:
|
||||
if (this.maxCrlNumber != (ulong)0L || this.minCrlNumber != (ulong)0L)
|
||||
{
|
||||
DerObjectIdentifier subjectDirectoryAttributes = X509Extensions.SubjectDirectoryAttributes;
|
||||
Asn1Object asn1Object;
|
||||
BigInteger positiveValue = DerInteger.GetInstance(asn1Object).PositiveValue;
|
||||
BigInteger bigInteger = this.maxCrlNumber;
|
||||
if (bigInteger != 0)
|
||||
{
|
||||
int num2 = positiveValue.CompareTo(bigInteger);
|
||||
}
|
||||
BigInteger bigInteger2 = this.minCrlNumber;
|
||||
if (bigInteger2 != 0)
|
||||
{
|
||||
int num3 = positiveValue.CompareTo(bigInteger2);
|
||||
}
|
||||
}
|
||||
DerObjectIdentifier subjectDirectoryAttributes2 = X509Extensions.SubjectDirectoryAttributes;
|
||||
Asn1Object asn1Object2;
|
||||
DerInteger instance = DerInteger.GetInstance(asn1Object2);
|
||||
if (instance != 0)
|
||||
{
|
||||
while (this.completeCrlEnabled)
|
||||
{
|
||||
}
|
||||
if (this.maxBaseCrlNumber == (ulong)0L)
|
||||
{
|
||||
goto IL_E8;
|
||||
}
|
||||
BigInteger positiveValue2 = instance.PositiveValue;
|
||||
BigInteger bigInteger3 = this.maxBaseCrlNumber;
|
||||
if (positiveValue2.CompareTo(bigInteger3) <= 0)
|
||||
{
|
||||
goto IL_E8;
|
||||
}
|
||||
}
|
||||
while (this.deltaCrlIndicatorEnabled)
|
||||
{
|
||||
}
|
||||
IL_E8:
|
||||
if (this.issuingDistributionPointEnabled)
|
||||
{
|
||||
bool flag2;
|
||||
if (this.issuingDistributionPoint != (ulong)0L)
|
||||
{
|
||||
DerObjectIdentifier subjectDirectoryAttributes3 = X509Extensions.SubjectDirectoryAttributes;
|
||||
if (flag2)
|
||||
{
|
||||
goto IL_10D;
|
||||
}
|
||||
}
|
||||
while (flag2)
|
||||
{
|
||||
}
|
||||
}
|
||||
IL_10D:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04005896 RID: 22678
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4005896")]
|
||||
private X509Certificate certificateChecking;
|
||||
|
||||
// Token: 0x04005897 RID: 22679
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4005897")]
|
||||
private DateTimeObject dateAndTime;
|
||||
|
||||
// Token: 0x04005898 RID: 22680
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4005898")]
|
||||
private ICollection issuers;
|
||||
|
||||
// Token: 0x04005899 RID: 22681
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4005899")]
|
||||
private BigInteger maxCrlNumber;
|
||||
|
||||
// Token: 0x0400589A RID: 22682
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400589A")]
|
||||
private BigInteger minCrlNumber;
|
||||
|
||||
// Token: 0x0400589B RID: 22683
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400589B")]
|
||||
private IX509AttributeCertificate attrCertChecking;
|
||||
|
||||
// Token: 0x0400589C RID: 22684
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400589C")]
|
||||
private bool completeCrlEnabled;
|
||||
|
||||
// Token: 0x0400589D RID: 22685
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x41")]
|
||||
[Token(Token = "0x400589D")]
|
||||
private bool deltaCrlIndicatorEnabled;
|
||||
|
||||
// Token: 0x0400589E RID: 22686
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400589E")]
|
||||
private byte[] issuingDistributionPoint;
|
||||
|
||||
// Token: 0x0400589F RID: 22687
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400589F")]
|
||||
private bool issuingDistributionPointEnabled;
|
||||
|
||||
// Token: 0x040058A0 RID: 22688
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x40058A0")]
|
||||
private BigInteger maxBaseCrlNumber;
|
||||
}
|
||||
}
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x0200133E RID: 4926
|
||||
[Token(Token = "0x200133E")]
|
||||
[Serializable]
|
||||
[StructLayout(3)]
|
||||
public class X509StoreException : Exception
|
||||
{
|
||||
// Token: 0x06007C1C RID: 31772 RVA: 0x0019D3E4 File Offset: 0x0019B5E4
|
||||
[Token(Token = "0x6007C1C")]
|
||||
[Address(RVA = "0x52A500", Offset = "0x528F00", VA = "0x18052A500")]
|
||||
public X509StoreException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06007C1D RID: 31773 RVA: 0x0019D3F8 File Offset: 0x0019B5F8
|
||||
[Token(Token = "0x6007C1D")]
|
||||
[Address(RVA = "0x52A560", Offset = "0x528F60", VA = "0x18052A560")]
|
||||
public X509StoreException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06007C1E RID: 31774 RVA: 0x0019D40C File Offset: 0x0019B60C
|
||||
[Token(Token = "0x6007C1E")]
|
||||
[Address(RVA = "0x52A480", Offset = "0x528E80", VA = "0x18052A480")]
|
||||
public X509StoreException(string message, Exception e)
|
||||
: base(message, e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+82
@@ -0,0 +1,82 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x0200133F RID: 4927
|
||||
[Token(Token = "0x200133F")]
|
||||
[StructLayout(3)]
|
||||
public sealed class X509StoreFactory
|
||||
{
|
||||
// Token: 0x06007C1F RID: 31775 RVA: 0x0019D424 File Offset: 0x0019B624
|
||||
[Token(Token = "0x6007C1F")]
|
||||
[Address(RVA = "0x3C1670", Offset = "0x3C0070", VA = "0x1803C1670")]
|
||||
private X509StoreFactory()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06007C20 RID: 31776 RVA: 0x0019D438 File Offset: 0x0019B638
|
||||
[Token(Token = "0x6007C20")]
|
||||
[Address(RVA = "0x537F40", Offset = "0x536940", VA = "0x180537F40")]
|
||||
public static IX509Store Create(string type, IX509StoreParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06007C20)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.IX509Store BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.X509StoreFactory::Create(System.String,BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store.IX509StoreParameters)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_BA:
|
||||
stloc:NoSuchStoreException(var_10_CF, newobj:NoSuchStoreException(NoSuchStoreException::.ctor, call:string(string::Concat, ldstr:string("X.509 store type '"), ldloc:string(type), ldstr:string("' not available."))))
|
||||
}
|
||||
|
||||
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.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: 0x06007C21 RID: 31777 RVA: 0x0019D518 File Offset: 0x0019B718
|
||||
[Token(Token = "0x6007C21")]
|
||||
[Address(RVA = "0x538300", Offset = "0x536D00", VA = "0x180538300")]
|
||||
private static void checkCorrectType(ICollection coll, Type t)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
goto IL_13;
|
||||
}
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_13:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user