Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

241 lines
9.5 KiB
C#

using System;
using System.Text;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x02001EE1 RID: 7905
[Token(Token = "0x2001EE1")]
public class DistributionPoint : Asn1Encodable
{
// Token: 0x0600C623 RID: 50723 RVA: 0x002CC13C File Offset: 0x002CA33C
[Token(Token = "0x600C623")]
[Address(RVA = "0x2D8B540", Offset = "0x2D8A540", VA = "0x182D8B540")]
public static DistributionPoint GetInstance(Asn1TaggedObject obj, bool explicitly)
{
return DistributionPoint.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
}
// Token: 0x0600C624 RID: 50724 RVA: 0x002CC158 File Offset: 0x002CA358
[Token(Token = "0x600C624")]
[Address(RVA = "0x2D8B560", Offset = "0x2D8A560", VA = "0x182D8B560")]
public static DistributionPoint GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C624)
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_90:
stloc:ArgumentException(var_16_A1, 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: 0x0600C625 RID: 50725 RVA: 0x002CC208 File Offset: 0x002CA408
[Token(Token = "0x600C625")]
[Address(RVA = "0x2D8BCD0", Offset = "0x2D8ACD0", VA = "0x182D8BCD0")]
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_78;
}
int num2 = 0;
GeneralNames instance = GeneralNames.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_78:
num++;
}
}
// Token: 0x0600C626 RID: 50726 RVA: 0x002CC298 File Offset: 0x002CA498
[Token(Token = "0x600C626")]
[Address(RVA = "0xED6DA0", Offset = "0xED5DA0", VA = "0x180ED6DA0")]
public DistributionPoint(DistributionPointName distributionPointName, ReasonFlags reasons, GeneralNames crlIssuer)
{
this.distributionPoint = distributionPointName;
this.reasons = reasons;
this.cRLIssuer = crlIssuer;
}
// Token: 0x17001EA1 RID: 7841
// (get) Token: 0x0600C627 RID: 50727 RVA: 0x002CC2C0 File Offset: 0x002CA4C0
[Token(Token = "0x17001EA1")]
public DistributionPointName DistributionPointName
{
[Token(Token = "0x600C627")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
get
{
return this.distributionPoint;
}
}
// Token: 0x17001EA2 RID: 7842
// (get) Token: 0x0600C628 RID: 50728 RVA: 0x002CC2D4 File Offset: 0x002CA4D4
[Token(Token = "0x17001EA2")]
public ReasonFlags Reasons
{
[Token(Token = "0x600C628")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
get
{
return this.reasons;
}
}
// Token: 0x17001EA3 RID: 7843
// (get) Token: 0x0600C629 RID: 50729 RVA: 0x002CC2E8 File Offset: 0x002CA4E8
[Token(Token = "0x17001EA3")]
public GeneralNames CrlIssuer
{
[Token(Token = "0x600C629")]
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
get
{
return this.cRLIssuer;
}
}
// Token: 0x0600C62A RID: 50730 RVA: 0x002CC2FC File Offset: 0x002CA4FC
[Token(Token = "0x600C62A")]
[Address(RVA = "0x2D8B870", Offset = "0x2D8A870", VA = "0x182D8B870", 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: 0x0600C62B RID: 50731 RVA: 0x002CC3D0 File Offset: 0x002CA5D0
[Token(Token = "0x600C62B")]
[Address(RVA = "0x2D8BB30", Offset = "0x2D8AB30", VA = "0x182D8BB30", 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: 0x0600C62C RID: 50732 RVA: 0x002CC45C File Offset: 0x002CA65C
[Token(Token = "0x600C62C")]
[Address(RVA = "0x2D8BE40", Offset = "0x2D8AE40", VA = "0x182D8BE40")]
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: 0x04007C47 RID: 31815
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007C47")]
internal readonly DistributionPointName distributionPoint;
// Token: 0x04007C48 RID: 31816
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007C48")]
internal readonly ReasonFlags reasons;
// Token: 0x04007C49 RID: 31817
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4007C49")]
internal readonly GeneralNames cRLIssuer;
}
}