scripts
This commit is contained in:
+242
@@ -0,0 +1,242 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001824 RID: 6180
|
||||
[Token(Token = "0x2001824")]
|
||||
[StructLayout(3)]
|
||||
public class DistributionPoint : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600A67B RID: 42619 RVA: 0x0026B2FC File Offset: 0x002694FC
|
||||
[Token(Token = "0x600A67B")]
|
||||
[Address(RVA = "0x2B03000", Offset = "0x2B01A00", VA = "0x182B03000")]
|
||||
public static DistributionPoint GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return DistributionPoint.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600A67C RID: 42620 RVA: 0x0026B318 File Offset: 0x00269518
|
||||
[Token(Token = "0x600A67C")]
|
||||
[Address(RVA = "0x2B03020", Offset = "0x2B01A20", VA = "0x182B03020")]
|
||||
public static DistributionPoint GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A67C)
|
||||
|
||||
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: 0x0600A67D RID: 42621 RVA: 0x0026B3CC File Offset: 0x002695CC
|
||||
[Token(Token = "0x600A67D")]
|
||||
[Address(RVA = "0x2B037B0", Offset = "0x2B021B0", VA = "0x182B037B0")]
|
||||
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: 0x0600A67E RID: 42622 RVA: 0x0026B460 File Offset: 0x00269660
|
||||
[Token(Token = "0x600A67E")]
|
||||
[Address(RVA = "0xC54A80", Offset = "0xC53480", VA = "0x180C54A80")]
|
||||
public DistributionPoint(DistributionPointName distributionPointName, ReasonFlags reasons, GeneralNames crlIssuer)
|
||||
{
|
||||
this.distributionPoint = distributionPointName;
|
||||
this.reasons = reasons;
|
||||
this.cRLIssuer = crlIssuer;
|
||||
}
|
||||
|
||||
// Token: 0x17001A03 RID: 6659
|
||||
// (get) Token: 0x0600A67F RID: 42623 RVA: 0x0026B488 File Offset: 0x00269688
|
||||
[Token(Token = "0x17001A03")]
|
||||
public DistributionPointName DistributionPointName
|
||||
{
|
||||
[Token(Token = "0x600A67F")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.distributionPoint;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A04 RID: 6660
|
||||
// (get) Token: 0x0600A680 RID: 42624 RVA: 0x0026B49C File Offset: 0x0026969C
|
||||
[Token(Token = "0x17001A04")]
|
||||
public ReasonFlags Reasons
|
||||
{
|
||||
[Token(Token = "0x600A680")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.reasons;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A05 RID: 6661
|
||||
// (get) Token: 0x0600A681 RID: 42625 RVA: 0x0026B4B0 File Offset: 0x002696B0
|
||||
[Token(Token = "0x17001A05")]
|
||||
public GeneralNames CrlIssuer
|
||||
{
|
||||
[Token(Token = "0x600A681")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.cRLIssuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A682 RID: 42626 RVA: 0x0026B4C4 File Offset: 0x002696C4
|
||||
[Token(Token = "0x600A682")]
|
||||
[Address(RVA = "0x2B03350", Offset = "0x2B01D50", VA = "0x182B03350", 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: 0x0600A683 RID: 42627 RVA: 0x0026B598 File Offset: 0x00269798
|
||||
[Token(Token = "0x600A683")]
|
||||
[Address(RVA = "0x2B03610", Offset = "0x2B02010", VA = "0x182B03610", 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: 0x0600A684 RID: 42628 RVA: 0x0026B624 File Offset: 0x00269824
|
||||
[Token(Token = "0x600A684")]
|
||||
[Address(RVA = "0x2B03920", Offset = "0x2B02320", VA = "0x182B03920")]
|
||||
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: 0x04006C4B RID: 27723
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006C4B")]
|
||||
internal readonly DistributionPointName distributionPoint;
|
||||
|
||||
// Token: 0x04006C4C RID: 27724
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006C4C")]
|
||||
internal readonly ReasonFlags reasons;
|
||||
|
||||
// Token: 0x04006C4D RID: 27725
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006C4D")]
|
||||
internal readonly GeneralNames cRLIssuer;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user