m
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x020019F1 RID: 6641
|
||||
[Token(Token = "0x20019F1")]
|
||||
public interface IX509Selector : ICloneable
|
||||
{
|
||||
// Token: 0x06009B53 RID: 39763
|
||||
[Token(Token = "0x6009B53")]
|
||||
[Address(Slot = "0")]
|
||||
bool Match(object obj);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x020019F2 RID: 6642
|
||||
[Token(Token = "0x20019F2")]
|
||||
public interface IX509Store
|
||||
{
|
||||
// Token: 0x06009B54 RID: 39764
|
||||
[Token(Token = "0x6009B54")]
|
||||
[Address(Slot = "0")]
|
||||
ICollection GetMatches(IX509Selector selector);
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x020019F3 RID: 6643
|
||||
[Token(Token = "0x20019F3")]
|
||||
public interface IX509StoreParameters
|
||||
{
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x020019F4 RID: 6644
|
||||
[Token(Token = "0x20019F4")]
|
||||
[Serializable]
|
||||
public class NoSuchStoreException : X509StoreException
|
||||
{
|
||||
// Token: 0x06009B55 RID: 39765 RVA: 0x001FC9F4 File Offset: 0x001FABF4
|
||||
[Token(Token = "0x6009B55")]
|
||||
[Address(RVA = "0x412430", Offset = "0x411430", VA = "0x180412430")]
|
||||
public NoSuchStoreException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009B56 RID: 39766 RVA: 0x001FCA08 File Offset: 0x001FAC08
|
||||
[Token(Token = "0x6009B56")]
|
||||
[Address(RVA = "0x412490", Offset = "0x411490", VA = "0x180412490")]
|
||||
public NoSuchStoreException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009B57 RID: 39767 RVA: 0x001FCA1C File Offset: 0x001FAC1C
|
||||
[Token(Token = "0x6009B57")]
|
||||
[Address(RVA = "0x4123B0", Offset = "0x4113B0", VA = "0x1804123B0")]
|
||||
public NoSuchStoreException(string message, Exception e)
|
||||
: base(message, e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+407
@@ -0,0 +1,407 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
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: 0x020019F5 RID: 6645
|
||||
[Token(Token = "0x20019F5")]
|
||||
public class X509AttrCertStoreSelector : IX509Selector, ICloneable
|
||||
{
|
||||
// Token: 0x06009B58 RID: 39768 RVA: 0x001FCA34 File Offset: 0x001FAC34
|
||||
[Token(Token = "0x6009B58")]
|
||||
[Address(RVA = "0x415730", Offset = "0x414730", VA = "0x180415730")]
|
||||
public X509AttrCertStoreSelector()
|
||||
{
|
||||
HashSet hashSet = new HashSet();
|
||||
this.targetNames = hashSet;
|
||||
HashSet hashSet2 = new HashSet();
|
||||
this.targetGroups = hashSet2;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x06009B59 RID: 39769 RVA: 0x001FCA64 File Offset: 0x001FAC64
|
||||
[Token(Token = "0x6009B59")]
|
||||
[Address(RVA = "0x415620", Offset = "0x414620", VA = "0x180415620")]
|
||||
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: 0x06009B5A RID: 39770 RVA: 0x001FCB10 File Offset: 0x001FAD10
|
||||
[Token(Token = "0x6009B5A")]
|
||||
[Address(RVA = "0x414E70", Offset = "0x413E70", VA = "0x180414E70", Slot = "4")]
|
||||
public bool Match(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009B5A)
|
||||
|
||||
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: 0x06009B5B RID: 39771 RVA: 0x001FCC30 File Offset: 0x001FAE30
|
||||
[Token(Token = "0x6009B5B")]
|
||||
[Address(RVA = "0x414A40", Offset = "0x413A40", VA = "0x180414A40", 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: 0x170018C2 RID: 6338
|
||||
// (get) Token: 0x06009B5C RID: 39772 RVA: 0x001FCCDC File Offset: 0x001FAEDC
|
||||
// (set) Token: 0x06009B5D RID: 39773 RVA: 0x001FCCF0 File Offset: 0x001FAEF0
|
||||
[Token(Token = "0x170018C2")]
|
||||
public IX509AttributeCertificate AttributeCert
|
||||
{
|
||||
[Token(Token = "0x6009B5C")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.attributeCert;
|
||||
}
|
||||
[Token(Token = "0x6009B5D")]
|
||||
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
|
||||
set
|
||||
{
|
||||
this.attributeCert = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018C3 RID: 6339
|
||||
// (get) Token: 0x06009B5E RID: 39774 RVA: 0x001FCD04 File Offset: 0x001FAF04
|
||||
// (set) Token: 0x06009B5F RID: 39775 RVA: 0x001FCD18 File Offset: 0x001FAF18
|
||||
[Token(Token = "0x170018C3")]
|
||||
[Obsolete]
|
||||
public DateTimeObject AttribueCertificateValid
|
||||
{
|
||||
[Token(Token = "0x6009B5E")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.attributeCertificateValid;
|
||||
}
|
||||
[Token(Token = "0x6009B5F")]
|
||||
[Address(RVA = "0x4157F0", Offset = "0x4147F0", VA = "0x1804157F0")]
|
||||
set
|
||||
{
|
||||
this.attributeCertificateValid = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018C4 RID: 6340
|
||||
// (get) Token: 0x06009B60 RID: 39776 RVA: 0x001FCD2C File Offset: 0x001FAF2C
|
||||
// (set) Token: 0x06009B61 RID: 39777 RVA: 0x001FCD40 File Offset: 0x001FAF40
|
||||
[Token(Token = "0x170018C4")]
|
||||
public DateTimeObject AttributeCertificateValid
|
||||
{
|
||||
[Token(Token = "0x6009B60")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.attributeCertificateValid;
|
||||
}
|
||||
[Token(Token = "0x6009B61")]
|
||||
[Address(RVA = "0x4157F0", Offset = "0x4147F0", VA = "0x1804157F0")]
|
||||
set
|
||||
{
|
||||
this.attributeCertificateValid = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018C5 RID: 6341
|
||||
// (get) Token: 0x06009B62 RID: 39778 RVA: 0x001FCD54 File Offset: 0x001FAF54
|
||||
// (set) Token: 0x06009B63 RID: 39779 RVA: 0x001FCD68 File Offset: 0x001FAF68
|
||||
[Token(Token = "0x170018C5")]
|
||||
public AttributeCertificateHolder Holder
|
||||
{
|
||||
[Token(Token = "0x6009B62")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.holder;
|
||||
}
|
||||
[Token(Token = "0x6009B63")]
|
||||
[Address(RVA = "0x415810", Offset = "0x414810", VA = "0x180415810")]
|
||||
set
|
||||
{
|
||||
this.holder = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018C6 RID: 6342
|
||||
// (get) Token: 0x06009B64 RID: 39780 RVA: 0x001FCD7C File Offset: 0x001FAF7C
|
||||
// (set) Token: 0x06009B65 RID: 39781 RVA: 0x001FCD90 File Offset: 0x001FAF90
|
||||
[Token(Token = "0x170018C6")]
|
||||
public AttributeCertificateIssuer Issuer
|
||||
{
|
||||
[Token(Token = "0x6009B64")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
[Token(Token = "0x6009B65")]
|
||||
[Address(RVA = "0x415820", Offset = "0x414820", VA = "0x180415820")]
|
||||
set
|
||||
{
|
||||
this.issuer = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018C7 RID: 6343
|
||||
// (get) Token: 0x06009B66 RID: 39782 RVA: 0x001FCDA4 File Offset: 0x001FAFA4
|
||||
// (set) Token: 0x06009B67 RID: 39783 RVA: 0x001FCDB8 File Offset: 0x001FAFB8
|
||||
[Token(Token = "0x170018C7")]
|
||||
public BigInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x6009B66")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
[Token(Token = "0x6009B67")]
|
||||
[Address(RVA = "0x415830", Offset = "0x414830", VA = "0x180415830")]
|
||||
set
|
||||
{
|
||||
this.serialNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009B68 RID: 39784 RVA: 0x001FCDCC File Offset: 0x001FAFCC
|
||||
[Token(Token = "0x6009B68")]
|
||||
[Address(RVA = "0x4149E0", Offset = "0x4139E0", VA = "0x1804149E0")]
|
||||
public void AddTargetName(GeneralName name)
|
||||
{
|
||||
ISet set = this.targetNames;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009B69 RID: 39785 RVA: 0x001FCDE8 File Offset: 0x001FAFE8
|
||||
[Token(Token = "0x6009B69")]
|
||||
[Address(RVA = "0x414970", Offset = "0x413970", VA = "0x180414970")]
|
||||
public void AddTargetName(byte[] name)
|
||||
{
|
||||
GeneralName instance = GeneralName.GetInstance(Asn1Object.FromByteArray(name));
|
||||
ISet set = this.targetNames;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009B6A RID: 39786 RVA: 0x001FCE10 File Offset: 0x001FB010
|
||||
[Token(Token = "0x6009B6A")]
|
||||
[Address(RVA = "0x415600", Offset = "0x414600", VA = "0x180415600")]
|
||||
public void SetTargetNames(IEnumerable names)
|
||||
{
|
||||
ISet set = this.ExtractGeneralNames(names);
|
||||
this.targetNames = set;
|
||||
}
|
||||
|
||||
// Token: 0x06009B6B RID: 39787 RVA: 0x001FCE2C File Offset: 0x001FB02C
|
||||
[Token(Token = "0x6009B6B")]
|
||||
[Address(RVA = "0x414E10", Offset = "0x413E10", VA = "0x180414E10")]
|
||||
public IEnumerable GetTargetNames()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009B6B)
|
||||
|
||||
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: 0x06009B6C RID: 39788 RVA: 0x001FCE44 File Offset: 0x001FB044
|
||||
[Token(Token = "0x6009B6C")]
|
||||
[Address(RVA = "0x414910", Offset = "0x413910", VA = "0x180414910")]
|
||||
public void AddTargetGroup(GeneralName group)
|
||||
{
|
||||
ISet set = this.targetGroups;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009B6D RID: 39789 RVA: 0x001FCE60 File Offset: 0x001FB060
|
||||
[Token(Token = "0x6009B6D")]
|
||||
[Address(RVA = "0x4148A0", Offset = "0x4138A0", VA = "0x1804148A0")]
|
||||
public void AddTargetGroup(byte[] name)
|
||||
{
|
||||
GeneralName instance = GeneralName.GetInstance(Asn1Object.FromByteArray(name));
|
||||
ISet set = this.targetGroups;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x06009B6E RID: 39790 RVA: 0x001FCE88 File Offset: 0x001FB088
|
||||
[Token(Token = "0x6009B6E")]
|
||||
[Address(RVA = "0x4155E0", Offset = "0x4145E0", VA = "0x1804155E0")]
|
||||
public void SetTargetGroups(IEnumerable names)
|
||||
{
|
||||
ISet set = this.ExtractGeneralNames(names);
|
||||
this.targetGroups = set;
|
||||
}
|
||||
|
||||
// Token: 0x06009B6F RID: 39791 RVA: 0x001FCEA4 File Offset: 0x001FB0A4
|
||||
[Token(Token = "0x6009B6F")]
|
||||
[Address(RVA = "0x414DB0", Offset = "0x413DB0", VA = "0x180414DB0")]
|
||||
public IEnumerable GetTargetGroups()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009B6F)
|
||||
|
||||
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: 0x06009B70 RID: 39792 RVA: 0x001FCEBC File Offset: 0x001FB0BC
|
||||
[Token(Token = "0x6009B70")]
|
||||
[Address(RVA = "0x414B80", Offset = "0x413B80", VA = "0x180414B80")]
|
||||
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 (num == 0 || num != 0)
|
||||
{
|
||||
}
|
||||
Asn1Object asn1Object;
|
||||
if (GeneralName.GetInstance(asn1Object) != 0)
|
||||
{
|
||||
}
|
||||
if (num == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006877 RID: 26743
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006877")]
|
||||
private IX509AttributeCertificate attributeCert;
|
||||
|
||||
// Token: 0x04006878 RID: 26744
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006878")]
|
||||
private DateTimeObject attributeCertificateValid;
|
||||
|
||||
// Token: 0x04006879 RID: 26745
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006879")]
|
||||
private AttributeCertificateHolder holder;
|
||||
|
||||
// Token: 0x0400687A RID: 26746
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400687A")]
|
||||
private AttributeCertificateIssuer issuer;
|
||||
|
||||
// Token: 0x0400687B RID: 26747
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400687B")]
|
||||
private BigInteger serialNumber;
|
||||
|
||||
// Token: 0x0400687C RID: 26748
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x400687C")]
|
||||
private ISet targetNames;
|
||||
|
||||
// Token: 0x0400687D RID: 26749
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x400687D")]
|
||||
private ISet targetGroups;
|
||||
}
|
||||
}
|
||||
+177
@@ -0,0 +1,177 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x020019F6 RID: 6646
|
||||
[Token(Token = "0x20019F6")]
|
||||
public class X509CertPairStoreSelector : IX509Selector, ICloneable
|
||||
{
|
||||
// Token: 0x06009B71 RID: 39793 RVA: 0x001FCF10 File Offset: 0x001FB110
|
||||
[Token(Token = "0x6009B71")]
|
||||
[Address(RVA = "0x4162F0", Offset = "0x4152F0", VA = "0x1804162F0")]
|
||||
private static X509CertStoreSelector CloneSelector(X509CertStoreSelector s)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009B71)
|
||||
|
||||
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: 0x06009B72 RID: 39794 RVA: 0x001FCF34 File Offset: 0x001FB134
|
||||
[Token(Token = "0x6009B72")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public X509CertPairStoreSelector()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009B73 RID: 39795 RVA: 0x001FCF48 File Offset: 0x001FB148
|
||||
[Token(Token = "0x6009B73")]
|
||||
[Address(RVA = "0x416540", Offset = "0x415540", VA = "0x180416540")]
|
||||
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: 0x170018C8 RID: 6344
|
||||
// (get) Token: 0x06009B74 RID: 39796 RVA: 0x001FCF98 File Offset: 0x001FB198
|
||||
// (set) Token: 0x06009B75 RID: 39797 RVA: 0x001FCFAC File Offset: 0x001FB1AC
|
||||
[Token(Token = "0x170018C8")]
|
||||
public X509CertificatePair CertPair
|
||||
{
|
||||
[Token(Token = "0x6009B74")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.certPair;
|
||||
}
|
||||
[Token(Token = "0x6009B75")]
|
||||
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
|
||||
set
|
||||
{
|
||||
this.certPair = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018C9 RID: 6345
|
||||
// (get) Token: 0x06009B76 RID: 39798 RVA: 0x001FCFC0 File Offset: 0x001FB1C0
|
||||
// (set) Token: 0x06009B77 RID: 39799 RVA: 0x001FCFD8 File Offset: 0x001FB1D8
|
||||
[Token(Token = "0x170018C9")]
|
||||
public X509CertStoreSelector ForwardSelector
|
||||
{
|
||||
[Token(Token = "0x6009B76")]
|
||||
[Address(RVA = "0x4165A0", Offset = "0x4155A0", VA = "0x1804165A0")]
|
||||
get
|
||||
{
|
||||
return X509CertPairStoreSelector.CloneSelector(this.forwardSelector);
|
||||
}
|
||||
[Token(Token = "0x6009B77")]
|
||||
[Address(RVA = "0x4165C0", Offset = "0x4155C0", VA = "0x1804165C0")]
|
||||
set
|
||||
{
|
||||
X509CertStoreSelector x509CertStoreSelector = X509CertPairStoreSelector.CloneSelector(value);
|
||||
this.forwardSelector = x509CertStoreSelector;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018CA RID: 6346
|
||||
// (get) Token: 0x06009B78 RID: 39800 RVA: 0x001FCFF4 File Offset: 0x001FB1F4
|
||||
// (set) Token: 0x06009B79 RID: 39801 RVA: 0x001FD00C File Offset: 0x001FB20C
|
||||
[Token(Token = "0x170018CA")]
|
||||
public X509CertStoreSelector ReverseSelector
|
||||
{
|
||||
[Token(Token = "0x6009B78")]
|
||||
[Address(RVA = "0x4165B0", Offset = "0x4155B0", VA = "0x1804165B0")]
|
||||
get
|
||||
{
|
||||
return X509CertPairStoreSelector.CloneSelector(this.reverseSelector);
|
||||
}
|
||||
[Token(Token = "0x6009B79")]
|
||||
[Address(RVA = "0x4165E0", Offset = "0x4155E0", VA = "0x1804165E0")]
|
||||
set
|
||||
{
|
||||
X509CertStoreSelector x509CertStoreSelector = X509CertPairStoreSelector.CloneSelector(value);
|
||||
this.reverseSelector = x509CertStoreSelector;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009B7A RID: 39802 RVA: 0x001FD028 File Offset: 0x001FB228
|
||||
[Token(Token = "0x6009B7A")]
|
||||
[Address(RVA = "0x416410", Offset = "0x415410", VA = "0x180416410", Slot = "4")]
|
||||
public bool Match(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009B7A)
|
||||
|
||||
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: 0x06009B7B RID: 39803 RVA: 0x001FD080 File Offset: 0x001FB280
|
||||
[Token(Token = "0x6009B7B")]
|
||||
[Address(RVA = "0x416390", Offset = "0x415390", VA = "0x180416390", 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: 0x0400687E RID: 26750
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400687E")]
|
||||
private X509CertificatePair certPair;
|
||||
|
||||
// Token: 0x0400687F RID: 26751
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400687F")]
|
||||
private X509CertStoreSelector forwardSelector;
|
||||
|
||||
// Token: 0x04006880 RID: 26752
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006880")]
|
||||
private X509CertStoreSelector reverseSelector;
|
||||
}
|
||||
}
|
||||
+766
@@ -0,0 +1,766 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
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: 0x020019F7 RID: 6647
|
||||
[Token(Token = "0x20019F7")]
|
||||
public class X509CertStoreSelector : IX509Selector, ICloneable
|
||||
{
|
||||
// Token: 0x06009B7C RID: 39804 RVA: 0x001FD0CC File Offset: 0x001FB2CC
|
||||
[Token(Token = "0x6009B7C")]
|
||||
[Address(RVA = "0x417570", Offset = "0x416570", VA = "0x180417570")]
|
||||
public X509CertStoreSelector()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009B7D RID: 39805 RVA: 0x001FD0F0 File Offset: 0x001FB2F0
|
||||
[Token(Token = "0x6009B7D")]
|
||||
[Address(RVA = "0x417390", Offset = "0x416390", VA = "0x180417390")]
|
||||
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: 0x06009B7E RID: 39806 RVA: 0x001FD230 File Offset: 0x001FB430
|
||||
[Token(Token = "0x6009B7E")]
|
||||
[Address(RVA = "0x416600", Offset = "0x415600", VA = "0x180416600", 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: 0x170018CB RID: 6347
|
||||
// (get) Token: 0x06009B7F RID: 39807 RVA: 0x001FD370 File Offset: 0x001FB570
|
||||
// (set) Token: 0x06009B80 RID: 39808 RVA: 0x001FD388 File Offset: 0x001FB588
|
||||
[Token(Token = "0x170018CB")]
|
||||
public byte[] AuthorityKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x6009B7F")]
|
||||
[Address(RVA = "0x417580", Offset = "0x416580", VA = "0x180417580")]
|
||||
get
|
||||
{
|
||||
return Arrays.Clone(this.authorityKeyIdentifier);
|
||||
}
|
||||
[Token(Token = "0x6009B80")]
|
||||
[Address(RVA = "0x4177E0", Offset = "0x4167E0", VA = "0x1804177E0")]
|
||||
set
|
||||
{
|
||||
byte[] array = Arrays.Clone(value);
|
||||
this.authorityKeyIdentifier = array;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018CC RID: 6348
|
||||
// (get) Token: 0x06009B81 RID: 39809 RVA: 0x001FD3A4 File Offset: 0x001FB5A4
|
||||
// (set) Token: 0x06009B82 RID: 39810 RVA: 0x001FD3B8 File Offset: 0x001FB5B8
|
||||
[Token(Token = "0x170018CC")]
|
||||
public int BasicConstraints
|
||||
{
|
||||
[Token(Token = "0x6009B81")]
|
||||
[Address(RVA = "0x411540", Offset = "0x410540", VA = "0x180411540")]
|
||||
get
|
||||
{
|
||||
return this.basicConstraints;
|
||||
}
|
||||
[Token(Token = "0x6009B82")]
|
||||
[Address(RVA = "0x417850", Offset = "0x416850", VA = "0x180417850")]
|
||||
set
|
||||
{
|
||||
this.basicConstraints = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018CD RID: 6349
|
||||
// (get) Token: 0x06009B83 RID: 39811 RVA: 0x001FD3DC File Offset: 0x001FB5DC
|
||||
// (set) Token: 0x06009B84 RID: 39812 RVA: 0x001FD3F0 File Offset: 0x001FB5F0
|
||||
[Token(Token = "0x170018CD")]
|
||||
public X509Certificate Certificate
|
||||
{
|
||||
[Token(Token = "0x6009B83")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.certificate;
|
||||
}
|
||||
[Token(Token = "0x6009B84")]
|
||||
[Address(RVA = "0x415810", Offset = "0x414810", VA = "0x180415810")]
|
||||
set
|
||||
{
|
||||
this.certificate = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018CE RID: 6350
|
||||
// (get) Token: 0x06009B85 RID: 39813 RVA: 0x001FD404 File Offset: 0x001FB604
|
||||
// (set) Token: 0x06009B86 RID: 39814 RVA: 0x001FD418 File Offset: 0x001FB618
|
||||
[Token(Token = "0x170018CE")]
|
||||
public DateTimeObject CertificateValid
|
||||
{
|
||||
[Token(Token = "0x6009B85")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.certificateValid;
|
||||
}
|
||||
[Token(Token = "0x6009B86")]
|
||||
[Address(RVA = "0x415820", Offset = "0x414820", VA = "0x180415820")]
|
||||
set
|
||||
{
|
||||
this.certificateValid = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018CF RID: 6351
|
||||
// (get) Token: 0x06009B87 RID: 39815 RVA: 0x001FD42C File Offset: 0x001FB62C
|
||||
// (set) Token: 0x06009B88 RID: 39816 RVA: 0x001FD44C File Offset: 0x001FB64C
|
||||
[Token(Token = "0x170018CF")]
|
||||
public ISet ExtendedKeyUsage
|
||||
{
|
||||
[Token(Token = "0x6009B87")]
|
||||
[Address(RVA = "0x4175E0", Offset = "0x4165E0", VA = "0x1804175E0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009B87)
|
||||
|
||||
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 = "0x6009B88")]
|
||||
[Address(RVA = "0x4178D0", Offset = "0x4168D0", VA = "0x1804178D0")]
|
||||
set
|
||||
{
|
||||
if (value == 0)
|
||||
{
|
||||
this.extendedKeyUsage = value;
|
||||
return;
|
||||
}
|
||||
HashSet hashSet = new HashSet(value);
|
||||
this.extendedKeyUsage = hashSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018D0 RID: 6352
|
||||
// (get) Token: 0x06009B89 RID: 39817 RVA: 0x001FD474 File Offset: 0x001FB674
|
||||
// (set) Token: 0x06009B8A RID: 39818 RVA: 0x001FD488 File Offset: 0x001FB688
|
||||
[Token(Token = "0x170018D0")]
|
||||
public bool IgnoreX509NameOrdering
|
||||
{
|
||||
[Token(Token = "0x6009B89")]
|
||||
[Address(RVA = "0x417650", Offset = "0x416650", VA = "0x180417650")]
|
||||
get
|
||||
{
|
||||
return this.ignoreX509NameOrdering;
|
||||
}
|
||||
[Token(Token = "0x6009B8A")]
|
||||
[Address(RVA = "0x417950", Offset = "0x416950", VA = "0x180417950")]
|
||||
set
|
||||
{
|
||||
this.ignoreX509NameOrdering = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018D1 RID: 6353
|
||||
// (get) Token: 0x06009B8B RID: 39819 RVA: 0x001FD49C File Offset: 0x001FB69C
|
||||
// (set) Token: 0x06009B8C RID: 39820 RVA: 0x001FD4B0 File Offset: 0x001FB6B0
|
||||
[Token(Token = "0x170018D1")]
|
||||
public X509Name Issuer
|
||||
{
|
||||
[Token(Token = "0x6009B8B")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
[Token(Token = "0x6009B8C")]
|
||||
[Address(RVA = "0x417960", Offset = "0x416960", VA = "0x180417960")]
|
||||
set
|
||||
{
|
||||
this.issuer = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018D2 RID: 6354
|
||||
// (get) Token: 0x06009B8D RID: 39821 RVA: 0x001FD4C4 File Offset: 0x001FB6C4
|
||||
[Token(Token = "0x170018D2")]
|
||||
[Obsolete]
|
||||
public string IssuerAsString
|
||||
{
|
||||
[Token(Token = "0x6009B8D")]
|
||||
[Address(RVA = "0x417660", Offset = "0x416660", VA = "0x180417660")]
|
||||
get
|
||||
{
|
||||
X509Name x509Name = this.issuer;
|
||||
if (x509Name != 0)
|
||||
{
|
||||
Asn1Object asn1Object = x509Name.ToAsn1Object();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018D3 RID: 6355
|
||||
// (get) Token: 0x06009B8E RID: 39822 RVA: 0x001FD4E4 File Offset: 0x001FB6E4
|
||||
// (set) Token: 0x06009B8F RID: 39823 RVA: 0x001FD4FC File Offset: 0x001FB6FC
|
||||
[Token(Token = "0x170018D3")]
|
||||
public bool[] KeyUsage
|
||||
{
|
||||
[Token(Token = "0x6009B8E")]
|
||||
[Address(RVA = "0x417690", Offset = "0x416690", VA = "0x180417690")]
|
||||
get
|
||||
{
|
||||
return X509CertStoreSelector.CopyBoolArray(this.keyUsage);
|
||||
}
|
||||
[Token(Token = "0x6009B8F")]
|
||||
[Address(RVA = "0x417970", Offset = "0x416970", VA = "0x180417970")]
|
||||
set
|
||||
{
|
||||
bool[] array = X509CertStoreSelector.CopyBoolArray(value);
|
||||
this.keyUsage = array;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018D4 RID: 6356
|
||||
// (get) Token: 0x06009B90 RID: 39824 RVA: 0x001FD518 File Offset: 0x001FB718
|
||||
// (set) Token: 0x06009B91 RID: 39825 RVA: 0x001FD538 File Offset: 0x001FB738
|
||||
[Token(Token = "0x170018D4")]
|
||||
public ISet Policy
|
||||
{
|
||||
[Token(Token = "0x6009B90")]
|
||||
[Address(RVA = "0x4176A0", Offset = "0x4166A0", VA = "0x1804176A0")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009B90)
|
||||
|
||||
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 = "0x6009B91")]
|
||||
[Address(RVA = "0x417990", Offset = "0x416990", VA = "0x180417990")]
|
||||
set
|
||||
{
|
||||
if (value == 0)
|
||||
{
|
||||
this.policy = value;
|
||||
return;
|
||||
}
|
||||
HashSet hashSet = new HashSet(value);
|
||||
this.policy = hashSet;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018D5 RID: 6357
|
||||
// (get) Token: 0x06009B92 RID: 39826 RVA: 0x001FD560 File Offset: 0x001FB760
|
||||
// (set) Token: 0x06009B93 RID: 39827 RVA: 0x001FD574 File Offset: 0x001FB774
|
||||
[Token(Token = "0x170018D5")]
|
||||
public DateTimeObject PrivateKeyValid
|
||||
{
|
||||
[Token(Token = "0x6009B92")]
|
||||
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710")]
|
||||
get
|
||||
{
|
||||
return this.privateKeyValid;
|
||||
}
|
||||
[Token(Token = "0x6009B93")]
|
||||
[Address(RVA = "0x417A10", Offset = "0x416A10", VA = "0x180417A10")]
|
||||
set
|
||||
{
|
||||
this.privateKeyValid = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018D6 RID: 6358
|
||||
// (get) Token: 0x06009B94 RID: 39828 RVA: 0x001FD588 File Offset: 0x001FB788
|
||||
// (set) Token: 0x06009B95 RID: 39829 RVA: 0x001FD59C File Offset: 0x001FB79C
|
||||
[Token(Token = "0x170018D6")]
|
||||
public BigInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x6009B94")]
|
||||
[Address(RVA = "0x417720", Offset = "0x416720", VA = "0x180417720")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
[Token(Token = "0x6009B95")]
|
||||
[Address(RVA = "0x417A20", Offset = "0x416A20", VA = "0x180417A20")]
|
||||
set
|
||||
{
|
||||
this.serialNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018D7 RID: 6359
|
||||
// (get) Token: 0x06009B96 RID: 39830 RVA: 0x001FD5B0 File Offset: 0x001FB7B0
|
||||
// (set) Token: 0x06009B97 RID: 39831 RVA: 0x001FD5C4 File Offset: 0x001FB7C4
|
||||
[Token(Token = "0x170018D7")]
|
||||
public X509Name Subject
|
||||
{
|
||||
[Token(Token = "0x6009B96")]
|
||||
[Address(RVA = "0x4177D0", Offset = "0x4167D0", VA = "0x1804177D0")]
|
||||
get
|
||||
{
|
||||
return this.subject;
|
||||
}
|
||||
[Token(Token = "0x6009B97")]
|
||||
[Address(RVA = "0x417AC0", Offset = "0x416AC0", VA = "0x180417AC0")]
|
||||
set
|
||||
{
|
||||
this.subject = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018D8 RID: 6360
|
||||
// (get) Token: 0x06009B98 RID: 39832 RVA: 0x001FD5D8 File Offset: 0x001FB7D8
|
||||
[Token(Token = "0x170018D8")]
|
||||
[Obsolete]
|
||||
public string SubjectAsString
|
||||
{
|
||||
[Token(Token = "0x6009B98")]
|
||||
[Address(RVA = "0x417730", Offset = "0x416730", VA = "0x180417730")]
|
||||
get
|
||||
{
|
||||
X509Name x509Name = this.subject;
|
||||
if (x509Name != 0)
|
||||
{
|
||||
Asn1Object asn1Object = x509Name.ToAsn1Object();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018D9 RID: 6361
|
||||
// (get) Token: 0x06009B99 RID: 39833 RVA: 0x001FD5F8 File Offset: 0x001FB7F8
|
||||
// (set) Token: 0x06009B9A RID: 39834 RVA: 0x001FD610 File Offset: 0x001FB810
|
||||
[Token(Token = "0x170018D9")]
|
||||
public byte[] SubjectKeyIdentifier
|
||||
{
|
||||
[Token(Token = "0x6009B99")]
|
||||
[Address(RVA = "0x417750", Offset = "0x416750", VA = "0x180417750")]
|
||||
get
|
||||
{
|
||||
return Arrays.Clone(this.subjectKeyIdentifier);
|
||||
}
|
||||
[Token(Token = "0x6009B9A")]
|
||||
[Address(RVA = "0x417A30", Offset = "0x416A30", VA = "0x180417A30")]
|
||||
set
|
||||
{
|
||||
byte[] array = Arrays.Clone(value);
|
||||
this.subjectKeyIdentifier = array;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018DA RID: 6362
|
||||
// (get) Token: 0x06009B9B RID: 39835 RVA: 0x001FD62C File Offset: 0x001FB82C
|
||||
// (set) Token: 0x06009B9C RID: 39836 RVA: 0x001FD640 File Offset: 0x001FB840
|
||||
[Token(Token = "0x170018DA")]
|
||||
public SubjectPublicKeyInfo SubjectPublicKey
|
||||
{
|
||||
[Token(Token = "0x6009B9B")]
|
||||
[Address(RVA = "0x4177C0", Offset = "0x4167C0", VA = "0x1804177C0")]
|
||||
get
|
||||
{
|
||||
return this.subjectPublicKey;
|
||||
}
|
||||
[Token(Token = "0x6009B9C")]
|
||||
[Address(RVA = "0x417AB0", Offset = "0x416AB0", VA = "0x180417AB0")]
|
||||
set
|
||||
{
|
||||
this.subjectPublicKey = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018DB RID: 6363
|
||||
// (get) Token: 0x06009B9D RID: 39837 RVA: 0x001FD654 File Offset: 0x001FB854
|
||||
// (set) Token: 0x06009B9E RID: 39838 RVA: 0x001FD668 File Offset: 0x001FB868
|
||||
[Token(Token = "0x170018DB")]
|
||||
public DerObjectIdentifier SubjectPublicKeyAlgID
|
||||
{
|
||||
[Token(Token = "0x6009B9D")]
|
||||
[Address(RVA = "0x4177B0", Offset = "0x4167B0", VA = "0x1804177B0")]
|
||||
get
|
||||
{
|
||||
return this.subjectPublicKeyAlgID;
|
||||
}
|
||||
[Token(Token = "0x6009B9E")]
|
||||
[Address(RVA = "0x417AA0", Offset = "0x416AA0", VA = "0x180417AA0")]
|
||||
set
|
||||
{
|
||||
this.subjectPublicKeyAlgID = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009B9F RID: 39839 RVA: 0x001FD67C File Offset: 0x001FB87C
|
||||
[Token(Token = "0x6009B9F")]
|
||||
[Address(RVA = "0x416A30", Offset = "0x415A30", VA = "0x180416A30", 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;
|
||||
if (num != -1)
|
||||
{
|
||||
if (typeof(IDisposable).TypeHandle == (ulong)735L)
|
||||
{
|
||||
}
|
||||
if (typeof(IDisposable).TypeHandle == (ulong)227L)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
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_EF;
|
||||
}
|
||||
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 (-1 == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
continue;
|
||||
goto IL_2D;
|
||||
}
|
||||
while ((ulong)1L == 0UL)
|
||||
{
|
||||
}
|
||||
IL_EF:
|
||||
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: 0x06009BA0 RID: 39840 RVA: 0x001FD7FC File Offset: 0x001FB9FC
|
||||
[Token(Token = "0x6009BA0")]
|
||||
[Address(RVA = "0x416930", Offset = "0x415930", VA = "0x180416930")]
|
||||
internal static bool IssuersMatch(X509Name a, X509Name b)
|
||||
{
|
||||
if (a == 0)
|
||||
{
|
||||
return b == 0;
|
||||
}
|
||||
return a.Equivalent(b, true);
|
||||
}
|
||||
|
||||
// Token: 0x06009BA1 RID: 39841 RVA: 0x001FD81C File Offset: 0x001FBA1C
|
||||
[Token(Token = "0x6009BA1")]
|
||||
[Address(RVA = "0x416810", Offset = "0x415810", VA = "0x180416810")]
|
||||
private static bool[] CopyBoolArray(bool[] b)
|
||||
{
|
||||
while (b != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009BA2 RID: 39842 RVA: 0x001FD830 File Offset: 0x001FBA30
|
||||
[Token(Token = "0x6009BA2")]
|
||||
[Address(RVA = "0x416890", Offset = "0x415890", VA = "0x180416890")]
|
||||
private static ISet CopySet(ISet s)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009BA2)
|
||||
|
||||
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: 0x06009BA3 RID: 39843 RVA: 0x001FD84C File Offset: 0x001FBA4C
|
||||
[Token(Token = "0x6009BA3")]
|
||||
[Address(RVA = "0x416900", Offset = "0x415900", VA = "0x180416900")]
|
||||
private static SubjectPublicKeyInfo GetSubjectPublicKey(X509Certificate c)
|
||||
{
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
return subjectPublicKeyInfo;
|
||||
}
|
||||
|
||||
// Token: 0x06009BA4 RID: 39844 RVA: 0x001FD860 File Offset: 0x001FBA60
|
||||
[Token(Token = "0x6009BA4")]
|
||||
[Address(RVA = "0x416950", Offset = "0x415950", VA = "0x180416950")]
|
||||
private static bool MatchExtension(byte[] b, X509Certificate c, DerObjectIdentifier oid)
|
||||
{
|
||||
bool flag;
|
||||
return b == 0 || c.GetCriticalExtensionOids() == 0 || flag;
|
||||
}
|
||||
|
||||
// Token: 0x04006881 RID: 26753
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006881")]
|
||||
private byte[] authorityKeyIdentifier;
|
||||
|
||||
// Token: 0x04006882 RID: 26754
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006882")]
|
||||
private int basicConstraints = (int)((ulong)4294967295L);
|
||||
|
||||
// Token: 0x04006883 RID: 26755
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006883")]
|
||||
private X509Certificate certificate;
|
||||
|
||||
// Token: 0x04006884 RID: 26756
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006884")]
|
||||
private DateTimeObject certificateValid;
|
||||
|
||||
// Token: 0x04006885 RID: 26757
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006885")]
|
||||
private ISet extendedKeyUsage;
|
||||
|
||||
// Token: 0x04006886 RID: 26758
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006886")]
|
||||
private bool ignoreX509NameOrdering;
|
||||
|
||||
// Token: 0x04006887 RID: 26759
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4006887")]
|
||||
private X509Name issuer;
|
||||
|
||||
// Token: 0x04006888 RID: 26760
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4006888")]
|
||||
private bool[] keyUsage;
|
||||
|
||||
// Token: 0x04006889 RID: 26761
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x4006889")]
|
||||
private ISet policy;
|
||||
|
||||
// Token: 0x0400688A RID: 26762
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400688A")]
|
||||
private DateTimeObject privateKeyValid;
|
||||
|
||||
// Token: 0x0400688B RID: 26763
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x400688B")]
|
||||
private BigInteger serialNumber;
|
||||
|
||||
// Token: 0x0400688C RID: 26764
|
||||
[FieldOffset(Offset = "0x68")]
|
||||
[Token(Token = "0x400688C")]
|
||||
private X509Name subject;
|
||||
|
||||
// Token: 0x0400688D RID: 26765
|
||||
[FieldOffset(Offset = "0x70")]
|
||||
[Token(Token = "0x400688D")]
|
||||
private byte[] subjectKeyIdentifier;
|
||||
|
||||
// Token: 0x0400688E RID: 26766
|
||||
[FieldOffset(Offset = "0x78")]
|
||||
[Token(Token = "0x400688E")]
|
||||
private SubjectPublicKeyInfo subjectPublicKey;
|
||||
|
||||
// Token: 0x0400688F RID: 26767
|
||||
[FieldOffset(Offset = "0x80")]
|
||||
[Token(Token = "0x400688F")]
|
||||
private DerObjectIdentifier subjectPublicKeyAlgID;
|
||||
}
|
||||
}
|
||||
+70
@@ -0,0 +1,70 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x020019F8 RID: 6648
|
||||
[Token(Token = "0x20019F8")]
|
||||
internal class X509CollectionStore : IX509Store
|
||||
{
|
||||
// Token: 0x06009BA5 RID: 39845 RVA: 0x001FD884 File Offset: 0x001FBA84
|
||||
[Token(Token = "0x6009BA5")]
|
||||
[Address(RVA = "0x41B0E0", Offset = "0x41A0E0", VA = "0x18041B0E0")]
|
||||
internal X509CollectionStore(ICollection collection)
|
||||
{
|
||||
IList list = Platform.CreateArrayList(collection);
|
||||
this._local = list;
|
||||
}
|
||||
|
||||
// Token: 0x06009BA6 RID: 39846 RVA: 0x001FD8A8 File Offset: 0x001FBAA8
|
||||
[Token(Token = "0x6009BA6")]
|
||||
[Address(RVA = "0x41AE60", Offset = "0x419E60", VA = "0x18041AE60", 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)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
IList list2 = Platform.CreateArrayList(this._local);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006890 RID: 26768
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006890")]
|
||||
private ICollection _local;
|
||||
}
|
||||
}
|
||||
+85
@@ -0,0 +1,85 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Text;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x020019F9 RID: 6649
|
||||
[Token(Token = "0x20019F9")]
|
||||
public class X509CollectionStoreParameters : IX509StoreParameters
|
||||
{
|
||||
// Token: 0x06009BA7 RID: 39847 RVA: 0x001FD91C File Offset: 0x001FBB1C
|
||||
[Token(Token = "0x6009BA7")]
|
||||
[Address(RVA = "0x41ADB0", Offset = "0x419DB0", VA = "0x18041ADB0")]
|
||||
public X509CollectionStoreParameters(ICollection collection)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009BA7)
|
||||
|
||||
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: 0x06009BA8 RID: 39848 RVA: 0x001FD94C File Offset: 0x001FBB4C
|
||||
[Token(Token = "0x6009BA8")]
|
||||
[Address(RVA = "0x41AC90", Offset = "0x419C90", VA = "0x18041AC90")]
|
||||
public ICollection GetCollection()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009BA8)
|
||||
|
||||
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: 0x06009BA9 RID: 39849 RVA: 0x001FD964 File Offset: 0x001FBB64
|
||||
[Token(Token = "0x6009BA9")]
|
||||
[Address(RVA = "0x41ACF0", Offset = "0x419CF0", VA = "0x18041ACF0", 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: 0x04006891 RID: 26769
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006891")]
|
||||
private readonly IList collection;
|
||||
}
|
||||
}
|
||||
+471
@@ -0,0 +1,471 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
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: 0x020019FA RID: 6650
|
||||
[Token(Token = "0x20019FA")]
|
||||
public class X509CrlStoreSelector : IX509Selector, ICloneable
|
||||
{
|
||||
// Token: 0x06009BAA RID: 39850 RVA: 0x001FD9A0 File Offset: 0x001FBBA0
|
||||
[Token(Token = "0x6009BAA")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
public X509CrlStoreSelector()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009BAB RID: 39851 RVA: 0x001FD9B4 File Offset: 0x001FBBB4
|
||||
[Token(Token = "0x6009BAB")]
|
||||
[Address(RVA = "0x41CDD0", Offset = "0x41BDD0", VA = "0x18041CDD0")]
|
||||
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: 0x06009BAC RID: 39852 RVA: 0x001FDA80 File Offset: 0x001FBC80
|
||||
[Token(Token = "0x6009BAC")]
|
||||
[Address(RVA = "0x41C730", Offset = "0x41B730", VA = "0x18041C730", 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: 0x170018DC RID: 6364
|
||||
// (get) Token: 0x06009BAD RID: 39853 RVA: 0x001FDB4C File Offset: 0x001FBD4C
|
||||
// (set) Token: 0x06009BAE RID: 39854 RVA: 0x001FDB60 File Offset: 0x001FBD60
|
||||
[Token(Token = "0x170018DC")]
|
||||
public X509Certificate CertificateChecking
|
||||
{
|
||||
[Token(Token = "0x6009BAD")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.certificateChecking;
|
||||
}
|
||||
[Token(Token = "0x6009BAE")]
|
||||
[Address(RVA = "0x415800", Offset = "0x414800", VA = "0x180415800")]
|
||||
set
|
||||
{
|
||||
this.certificateChecking = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018DD RID: 6365
|
||||
// (get) Token: 0x06009BAF RID: 39855 RVA: 0x001FDB74 File Offset: 0x001FBD74
|
||||
// (set) Token: 0x06009BB0 RID: 39856 RVA: 0x001FDB88 File Offset: 0x001FBD88
|
||||
[Token(Token = "0x170018DD")]
|
||||
public DateTimeObject DateAndTime
|
||||
{
|
||||
[Token(Token = "0x6009BAF")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.dateAndTime;
|
||||
}
|
||||
[Token(Token = "0x6009BB0")]
|
||||
[Address(RVA = "0x4157F0", Offset = "0x4147F0", VA = "0x1804157F0")]
|
||||
set
|
||||
{
|
||||
this.dateAndTime = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018DE RID: 6366
|
||||
// (get) Token: 0x06009BB1 RID: 39857 RVA: 0x001FDB9C File Offset: 0x001FBD9C
|
||||
// (set) Token: 0x06009BB2 RID: 39858 RVA: 0x001FDBB4 File Offset: 0x001FBDB4
|
||||
[Token(Token = "0x170018DE")]
|
||||
public ICollection Issuers
|
||||
{
|
||||
[Token(Token = "0x6009BB1")]
|
||||
[Address(RVA = "0x41CF20", Offset = "0x41BF20", VA = "0x18041CF20")]
|
||||
get
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009BB1)
|
||||
|
||||
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 = "0x6009BB2")]
|
||||
[Address(RVA = "0x41D020", Offset = "0x41C020", VA = "0x18041D020")]
|
||||
set
|
||||
{
|
||||
IList list = Platform.CreateArrayList(value);
|
||||
this.issuers = list;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018DF RID: 6367
|
||||
// (get) Token: 0x06009BB3 RID: 39859 RVA: 0x001FDBD0 File Offset: 0x001FBDD0
|
||||
// (set) Token: 0x06009BB4 RID: 39860 RVA: 0x001FDBE4 File Offset: 0x001FBDE4
|
||||
[Token(Token = "0x170018DF")]
|
||||
public BigInteger MaxCrlNumber
|
||||
{
|
||||
[Token(Token = "0x6009BB3")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.maxCrlNumber;
|
||||
}
|
||||
[Token(Token = "0x6009BB4")]
|
||||
[Address(RVA = "0x415820", Offset = "0x414820", VA = "0x180415820")]
|
||||
set
|
||||
{
|
||||
this.maxCrlNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018E0 RID: 6368
|
||||
// (get) Token: 0x06009BB5 RID: 39861 RVA: 0x001FDBF8 File Offset: 0x001FBDF8
|
||||
// (set) Token: 0x06009BB6 RID: 39862 RVA: 0x001FDC0C File Offset: 0x001FBE0C
|
||||
[Token(Token = "0x170018E0")]
|
||||
public BigInteger MinCrlNumber
|
||||
{
|
||||
[Token(Token = "0x6009BB5")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0")]
|
||||
get
|
||||
{
|
||||
return this.minCrlNumber;
|
||||
}
|
||||
[Token(Token = "0x6009BB6")]
|
||||
[Address(RVA = "0x415830", Offset = "0x414830", VA = "0x180415830")]
|
||||
set
|
||||
{
|
||||
this.minCrlNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018E1 RID: 6369
|
||||
// (get) Token: 0x06009BB7 RID: 39863 RVA: 0x001FDC20 File Offset: 0x001FBE20
|
||||
// (set) Token: 0x06009BB8 RID: 39864 RVA: 0x001FDC34 File Offset: 0x001FBE34
|
||||
[Token(Token = "0x170018E1")]
|
||||
public IX509AttributeCertificate AttrCertChecking
|
||||
{
|
||||
[Token(Token = "0x6009BB7")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0")]
|
||||
get
|
||||
{
|
||||
return this.attrCertChecking;
|
||||
}
|
||||
[Token(Token = "0x6009BB8")]
|
||||
[Address(RVA = "0x41CFF0", Offset = "0x41BFF0", VA = "0x18041CFF0")]
|
||||
set
|
||||
{
|
||||
this.attrCertChecking = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018E2 RID: 6370
|
||||
// (get) Token: 0x06009BB9 RID: 39865 RVA: 0x001FDC48 File Offset: 0x001FBE48
|
||||
// (set) Token: 0x06009BBA RID: 39866 RVA: 0x001FDC5C File Offset: 0x001FBE5C
|
||||
[Token(Token = "0x170018E2")]
|
||||
public bool CompleteCrlEnabled
|
||||
{
|
||||
[Token(Token = "0x6009BB9")]
|
||||
[Address(RVA = "0x41CF00", Offset = "0x41BF00", VA = "0x18041CF00")]
|
||||
get
|
||||
{
|
||||
return this.completeCrlEnabled;
|
||||
}
|
||||
[Token(Token = "0x6009BBA")]
|
||||
[Address(RVA = "0x41D000", Offset = "0x41C000", VA = "0x18041D000")]
|
||||
set
|
||||
{
|
||||
this.completeCrlEnabled = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018E3 RID: 6371
|
||||
// (get) Token: 0x06009BBB RID: 39867 RVA: 0x001FDC70 File Offset: 0x001FBE70
|
||||
// (set) Token: 0x06009BBC RID: 39868 RVA: 0x001FDC84 File Offset: 0x001FBE84
|
||||
[Token(Token = "0x170018E3")]
|
||||
public bool DeltaCrlIndicatorEnabled
|
||||
{
|
||||
[Token(Token = "0x6009BBB")]
|
||||
[Address(RVA = "0x41CF10", Offset = "0x41BF10", VA = "0x18041CF10")]
|
||||
get
|
||||
{
|
||||
return this.deltaCrlIndicatorEnabled;
|
||||
}
|
||||
[Token(Token = "0x6009BBC")]
|
||||
[Address(RVA = "0x41D010", Offset = "0x41C010", VA = "0x18041D010")]
|
||||
set
|
||||
{
|
||||
this.deltaCrlIndicatorEnabled = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018E4 RID: 6372
|
||||
// (get) Token: 0x06009BBD RID: 39869 RVA: 0x001FDC98 File Offset: 0x001FBE98
|
||||
// (set) Token: 0x06009BBE RID: 39870 RVA: 0x001FDCB0 File Offset: 0x001FBEB0
|
||||
[Token(Token = "0x170018E4")]
|
||||
public byte[] IssuingDistributionPoint
|
||||
{
|
||||
[Token(Token = "0x6009BBD")]
|
||||
[Address(RVA = "0x41CF90", Offset = "0x41BF90", VA = "0x18041CF90")]
|
||||
get
|
||||
{
|
||||
return Arrays.Clone(this.issuingDistributionPoint);
|
||||
}
|
||||
[Token(Token = "0x6009BBE")]
|
||||
[Address(RVA = "0x41D0A0", Offset = "0x41C0A0", VA = "0x18041D0A0")]
|
||||
set
|
||||
{
|
||||
byte[] array = Arrays.Clone(value);
|
||||
this.issuingDistributionPoint = array;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018E5 RID: 6373
|
||||
// (get) Token: 0x06009BBF RID: 39871 RVA: 0x001FDCCC File Offset: 0x001FBECC
|
||||
// (set) Token: 0x06009BC0 RID: 39872 RVA: 0x001FDCE0 File Offset: 0x001FBEE0
|
||||
[Token(Token = "0x170018E5")]
|
||||
public bool IssuingDistributionPointEnabled
|
||||
{
|
||||
[Token(Token = "0x6009BBF")]
|
||||
[Address(RVA = "0x41CF80", Offset = "0x41BF80", VA = "0x18041CF80")]
|
||||
get
|
||||
{
|
||||
return this.issuingDistributionPointEnabled;
|
||||
}
|
||||
[Token(Token = "0x6009BC0")]
|
||||
[Address(RVA = "0x41D090", Offset = "0x41C090", VA = "0x18041D090")]
|
||||
set
|
||||
{
|
||||
this.issuingDistributionPointEnabled = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x170018E6 RID: 6374
|
||||
// (get) Token: 0x06009BC1 RID: 39873 RVA: 0x001FDCF4 File Offset: 0x001FBEF4
|
||||
// (set) Token: 0x06009BC2 RID: 39874 RVA: 0x001FDD08 File Offset: 0x001FBF08
|
||||
[Token(Token = "0x170018E6")]
|
||||
public BigInteger MaxBaseCrlNumber
|
||||
{
|
||||
[Token(Token = "0x6009BC1")]
|
||||
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710")]
|
||||
get
|
||||
{
|
||||
return this.maxBaseCrlNumber;
|
||||
}
|
||||
[Token(Token = "0x6009BC2")]
|
||||
[Address(RVA = "0x417A10", Offset = "0x416A10", VA = "0x180417A10")]
|
||||
set
|
||||
{
|
||||
this.maxBaseCrlNumber = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x06009BC3 RID: 39875 RVA: 0x001FDD1C File Offset: 0x001FBF1C
|
||||
[Token(Token = "0x6009BC3")]
|
||||
[Address(RVA = "0x41C880", Offset = "0x41B880", VA = "0x18041C880", Slot = "7")]
|
||||
public virtual bool Match(object obj)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (obj == 0 || obj == 0)
|
||||
{
|
||||
goto IL_3A;
|
||||
}
|
||||
if (this.dateAndTime != 0)
|
||||
{
|
||||
}
|
||||
if (this.issuers == num)
|
||||
{
|
||||
goto IL_3D;
|
||||
}
|
||||
ICollection collection = this.issuers;
|
||||
bool flag;
|
||||
while (!flag)
|
||||
{
|
||||
}
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
if ((ulong)1L == 0UL)
|
||||
{
|
||||
}
|
||||
IL_3A:
|
||||
IL_3D:
|
||||
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_E7;
|
||||
}
|
||||
BigInteger positiveValue2 = instance.PositiveValue;
|
||||
BigInteger bigInteger3 = this.maxBaseCrlNumber;
|
||||
if (positiveValue2.CompareTo(bigInteger3) <= 0)
|
||||
{
|
||||
goto IL_E7;
|
||||
}
|
||||
}
|
||||
while (this.deltaCrlIndicatorEnabled)
|
||||
{
|
||||
}
|
||||
IL_E7:
|
||||
if (this.issuingDistributionPointEnabled)
|
||||
{
|
||||
bool flag2;
|
||||
if (this.issuingDistributionPoint != (ulong)0L)
|
||||
{
|
||||
DerObjectIdentifier subjectDirectoryAttributes3 = X509Extensions.SubjectDirectoryAttributes;
|
||||
if (flag2)
|
||||
{
|
||||
goto IL_10C;
|
||||
}
|
||||
}
|
||||
while (flag2)
|
||||
{
|
||||
}
|
||||
}
|
||||
IL_10C:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006892 RID: 26770
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006892")]
|
||||
private X509Certificate certificateChecking;
|
||||
|
||||
// Token: 0x04006893 RID: 26771
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006893")]
|
||||
private DateTimeObject dateAndTime;
|
||||
|
||||
// Token: 0x04006894 RID: 26772
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006894")]
|
||||
private ICollection issuers;
|
||||
|
||||
// Token: 0x04006895 RID: 26773
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4006895")]
|
||||
private BigInteger maxCrlNumber;
|
||||
|
||||
// Token: 0x04006896 RID: 26774
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4006896")]
|
||||
private BigInteger minCrlNumber;
|
||||
|
||||
// Token: 0x04006897 RID: 26775
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4006897")]
|
||||
private IX509AttributeCertificate attrCertChecking;
|
||||
|
||||
// Token: 0x04006898 RID: 26776
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4006898")]
|
||||
private bool completeCrlEnabled;
|
||||
|
||||
// Token: 0x04006899 RID: 26777
|
||||
[FieldOffset(Offset = "0x41")]
|
||||
[Token(Token = "0x4006899")]
|
||||
private bool deltaCrlIndicatorEnabled;
|
||||
|
||||
// Token: 0x0400689A RID: 26778
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x400689A")]
|
||||
private byte[] issuingDistributionPoint;
|
||||
|
||||
// Token: 0x0400689B RID: 26779
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x400689B")]
|
||||
private bool issuingDistributionPointEnabled;
|
||||
|
||||
// Token: 0x0400689C RID: 26780
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x400689C")]
|
||||
private BigInteger maxBaseCrlNumber;
|
||||
}
|
||||
}
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x020019FB RID: 6651
|
||||
[Token(Token = "0x20019FB")]
|
||||
[Serializable]
|
||||
public class X509StoreException : Exception
|
||||
{
|
||||
// Token: 0x06009BC4 RID: 39876 RVA: 0x001FDE48 File Offset: 0x001FC048
|
||||
[Token(Token = "0x6009BC4")]
|
||||
[Address(RVA = "0x412430", Offset = "0x411430", VA = "0x180412430")]
|
||||
public X509StoreException()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009BC5 RID: 39877 RVA: 0x001FDE5C File Offset: 0x001FC05C
|
||||
[Token(Token = "0x6009BC5")]
|
||||
[Address(RVA = "0x412490", Offset = "0x411490", VA = "0x180412490")]
|
||||
public X509StoreException(string message)
|
||||
: base(message)
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009BC6 RID: 39878 RVA: 0x001FDE70 File Offset: 0x001FC070
|
||||
[Token(Token = "0x6009BC6")]
|
||||
[Address(RVA = "0x4123B0", Offset = "0x4113B0", VA = "0x1804123B0")]
|
||||
public X509StoreException(string message, Exception e)
|
||||
: base(message, e)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
+77
@@ -0,0 +1,77 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509.Store
|
||||
{
|
||||
// Token: 0x020019FC RID: 6652
|
||||
[Token(Token = "0x20019FC")]
|
||||
public sealed class X509StoreFactory
|
||||
{
|
||||
// Token: 0x06009BC7 RID: 39879 RVA: 0x001FDE88 File Offset: 0x001FC088
|
||||
[Token(Token = "0x6009BC7")]
|
||||
[Address(RVA = "0x412370", Offset = "0x411370", VA = "0x180412370")]
|
||||
private X509StoreFactory()
|
||||
{
|
||||
}
|
||||
|
||||
// Token: 0x06009BC8 RID: 39880 RVA: 0x001FDE9C File Offset: 0x001FC09C
|
||||
[Token(Token = "0x6009BC8")]
|
||||
[Address(RVA = "0x4200F0", Offset = "0x41F0F0", VA = "0x1804200F0")]
|
||||
public static IX509Store Create(string type, IX509StoreParameters parameters)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009BC8)
|
||||
|
||||
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: 0x06009BC9 RID: 39881 RVA: 0x001FDF7C File Offset: 0x001FC17C
|
||||
[Token(Token = "0x6009BC9")]
|
||||
[Address(RVA = "0x4204B0", Offset = "0x41F4B0", VA = "0x1804204B0")]
|
||||
private static void checkCorrectType(ICollection coll, Type t)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
bool flag;
|
||||
if (!flag)
|
||||
{
|
||||
goto IL_0F;
|
||||
}
|
||||
if (flag)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_0F:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user