Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/X509/DistributionPoint.cs
T
2026-04-10 22:50:51 +02:00

241 lines
9.6 KiB
C#

using System;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x02001E01 RID: 7681
[Token(Token = "0x2001E01")]
public class DistributionPoint : Asn1Encodable
{
// Token: 0x0600C255 RID: 49749 RVA: 0x002C38E0 File Offset: 0x002C1AE0
[Token(Token = "0x600C255")]
[Address(RVA = "0x27272F0", Offset = "0x27260F0", VA = "0x1827272F0")]
public static DistributionPoint GetInstance(Asn1TaggedObject obj, bool explicitly)
{
return DistributionPoint.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
}
// Token: 0x0600C256 RID: 49750 RVA: 0x002C38FC File Offset: 0x002C1AFC
[Token(Token = "0x600C256")]
[Address(RVA = "0x2727310", Offset = "0x2726110", VA = "0x182727310")]
public static DistributionPoint GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C256)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPoint BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DistributionPoint::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_95:
stloc:ArgumentException(var_16_A6, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid DistributionPoint: "), ldloc:string(var_15))))
}
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: 0x0600C257 RID: 49751 RVA: 0x002C39B0 File Offset: 0x002C1BB0
[Token(Token = "0x600C257")]
[Address(RVA = "0x2727AA0", Offset = "0x27268A0", VA = "0x182727AA0")]
private DistributionPoint(Asn1Sequence seq)
{
int num = 0;
Asn1Encodable asn1Encodable;
if (num != asn1Encodable)
{
Asn1SequenceParser parser = seq.Parser;
Asn1TaggedObject asn1TaggedObject;
int tagNo = asn1TaggedObject.tagNo;
if (tagNo != 0)
{
if (tagNo != 0)
{
if (tagNo != 1)
{
goto IL_7D;
}
int num2 = 0;
GeneralNames instance = GeneralNames.GetInstance(Asn1Sequence.GetInstance(asn1TaggedObject, num2 != 0));
num++;
this.cRLIssuer = instance;
}
int num3 = 0;
ReasonFlags reasonFlags = new ReasonFlags(DerBitString.GetInstance(asn1TaggedObject, num3 != 0));
num++;
this.reasons = reasonFlags;
}
ulong num4;
DistributionPointName instance2 = DistributionPointName.GetInstance(Asn1TaggedObject.GetInstance(asn1TaggedObject, num4 != 0UL));
this.distributionPoint = instance2;
IL_7D:
num++;
}
}
// Token: 0x0600C258 RID: 49752 RVA: 0x002C3A44 File Offset: 0x002C1C44
[Token(Token = "0x600C258")]
[Address(RVA = "0xECF220", Offset = "0xECE020", VA = "0x180ECF220")]
public DistributionPoint(DistributionPointName distributionPointName, ReasonFlags reasons, GeneralNames crlIssuer)
{
this.distributionPoint = distributionPointName;
this.reasons = reasons;
this.cRLIssuer = crlIssuer;
}
// Token: 0x17001E04 RID: 7684
// (get) Token: 0x0600C259 RID: 49753 RVA: 0x002C3A6C File Offset: 0x002C1C6C
[Token(Token = "0x17001E04")]
public DistributionPointName DistributionPointName
{
[Token(Token = "0x600C259")]
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
get
{
return this.distributionPoint;
}
}
// Token: 0x17001E05 RID: 7685
// (get) Token: 0x0600C25A RID: 49754 RVA: 0x002C3A80 File Offset: 0x002C1C80
[Token(Token = "0x17001E05")]
public ReasonFlags Reasons
{
[Token(Token = "0x600C25A")]
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
get
{
return this.reasons;
}
}
// Token: 0x17001E06 RID: 7686
// (get) Token: 0x0600C25B RID: 49755 RVA: 0x002C3A94 File Offset: 0x002C1C94
[Token(Token = "0x17001E06")]
public GeneralNames CrlIssuer
{
[Token(Token = "0x600C25B")]
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
get
{
return this.cRLIssuer;
}
}
// Token: 0x0600C25C RID: 49756 RVA: 0x002C3AA8 File Offset: 0x002C1CA8
[Token(Token = "0x600C25C")]
[Address(RVA = "0x2727640", Offset = "0x2726440", VA = "0x182727640", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
Asn1EncodableVector asn1EncodableVector;
if (this.distributionPoint != (ulong)0L)
{
Asn1Encodable[] array = new Asn1Encodable[1];
DistributionPointName distributionPointName = this.distributionPoint;
int num;
DerTaggedObject derTaggedObject = new DerTaggedObject(num, distributionPointName);
num = 0;
if (derTaggedObject != 0)
{
}
array[0] = derTaggedObject;
asn1EncodableVector.Add(array);
}
if (this.reasons != (ulong)0L)
{
Asn1Encodable[] array2 = new Asn1Encodable[1];
ReasonFlags reasonFlags = this.reasons;
int num2;
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num2 != 0, 1, reasonFlags);
num2 = 0;
if (derTaggedObject2 != 0)
{
}
array2[0] = derTaggedObject2;
asn1EncodableVector.Add(array2);
}
if (this.cRLIssuer != (ulong)0L)
{
Asn1Encodable[] array3 = new Asn1Encodable[1];
GeneralNames generalNames = this.cRLIssuer;
int num3;
DerTaggedObject derTaggedObject3 = new DerTaggedObject(num3 != 0, 2, generalNames);
num3 = 0;
if (derTaggedObject3 != 0)
{
}
array3[0] = derTaggedObject3;
asn1EncodableVector.Add(array3);
}
DerSequence derSequence = new DerSequence(asn1EncodableVector);
throw new NullReferenceException();
}
// Token: 0x0600C25D RID: 49757 RVA: 0x002C3B7C File Offset: 0x002C1D7C
[Token(Token = "0x600C25D")]
[Address(RVA = "0x2727900", Offset = "0x2726700", VA = "0x182727900", Slot = "3")]
public override string ToString()
{
string newLine = Platform.NewLine;
StringBuilder stringBuilder = new StringBuilder();
StringBuilder stringBuilder2 = stringBuilder.Append("DistributionPoint: [");
StringBuilder stringBuilder3 = stringBuilder.Append(newLine);
DistributionPointName distributionPointName = this.distributionPoint;
if (distributionPointName != 0)
{
int hashCode = distributionPointName.GetHashCode();
}
ReasonFlags reasonFlags = this.reasons;
if (reasonFlags != 0)
{
int hashCode2 = reasonFlags.GetHashCode();
}
GeneralNames generalNames = this.cRLIssuer;
if (generalNames != 0)
{
int hashCode3 = generalNames.GetHashCode();
}
StringBuilder stringBuilder4 = stringBuilder.Append("]");
StringBuilder stringBuilder5 = stringBuilder.Append(newLine);
throw new NullReferenceException();
}
// Token: 0x0600C25E RID: 49758 RVA: 0x002C3C08 File Offset: 0x002C1E08
[Token(Token = "0x600C25E")]
[Address(RVA = "0x2727C10", Offset = "0x2726A10", VA = "0x182727C10")]
private void appendObject(StringBuilder buf, string sep, string name, string val)
{
StringBuilder stringBuilder = buf.Append(" ");
StringBuilder stringBuilder2 = buf.Append(name);
StringBuilder stringBuilder3 = buf.Append(":");
StringBuilder stringBuilder4 = buf.Append(sep);
StringBuilder stringBuilder5 = buf.Append(" ");
StringBuilder stringBuilder6 = buf.Append(" ");
StringBuilder stringBuilder7 = buf.Append(sep);
}
// Token: 0x04007A8E RID: 31374
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007A8E")]
internal readonly DistributionPointName distributionPoint;
// Token: 0x04007A8F RID: 31375
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007A8F")]
internal readonly ReasonFlags reasons;
// Token: 0x04007A90 RID: 31376
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007A90")]
internal readonly GeneralNames cRLIssuer;
}
}