oh dear
This commit is contained in:
+215
@@ -0,0 +1,215 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001DF6 RID: 7670
|
||||
[Token(Token = "0x2001DF6")]
|
||||
public class BasicConstraints : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C20C RID: 49676 RVA: 0x002C277C File Offset: 0x002C097C
|
||||
[Token(Token = "0x600C20C")]
|
||||
[Address(RVA = "0x27214F0", Offset = "0x27202F0", VA = "0x1827214F0")]
|
||||
public static BasicConstraints GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return BasicConstraints.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C20D RID: 49677 RVA: 0x002C2798 File Offset: 0x002C0998
|
||||
[Token(Token = "0x600C20D")]
|
||||
[Address(RVA = "0x2721510", Offset = "0x2720310", VA = "0x182721510")]
|
||||
public static BasicConstraints GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C20D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.BasicConstraints BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.BasicConstraints::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_40:
|
||||
stloc:string(var_9_46, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_5E, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_46)), 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: 0x0600C20E RID: 49678 RVA: 0x002C2804 File Offset: 0x002C0A04
|
||||
[Token(Token = "0x600C20E")]
|
||||
[Address(RVA = "0x2721BC0", Offset = "0x27209C0", VA = "0x182721BC0")]
|
||||
private BasicConstraints(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C20E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.BasicConstraints::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_66:
|
||||
stloc:ArgumentException(var_11_75, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("wrong sequence in constructor"), ldstr:string("seq")))
|
||||
}
|
||||
|
||||
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: 0x0600C20F RID: 49679 RVA: 0x002C2888 File Offset: 0x002C0A88
|
||||
[Token(Token = "0x600C20F")]
|
||||
[Address(RVA = "0x2721E20", Offset = "0x2720C20", VA = "0x182721E20")]
|
||||
public BasicConstraints(bool cA)
|
||||
{
|
||||
if (cA)
|
||||
{
|
||||
DerBoolean @true = DerBoolean.True;
|
||||
this.cA = @true;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C210 RID: 49680 RVA: 0x002C28AC File Offset: 0x002C0AAC
|
||||
[Token(Token = "0x600C210")]
|
||||
[Address(RVA = "0x2721D80", Offset = "0x2720B80", VA = "0x182721D80")]
|
||||
public BasicConstraints(int pathLenConstraint)
|
||||
{
|
||||
DerBoolean @true = DerBoolean.True;
|
||||
this.cA = @true;
|
||||
DerInteger derInteger = new DerInteger(pathLenConstraint);
|
||||
this.pathLenConstraint = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600C211 RID: 49681 RVA: 0x002C28DC File Offset: 0x002C0ADC
|
||||
[Token(Token = "0x600C211")]
|
||||
[Address(RVA = "0x27217A0", Offset = "0x27205A0", VA = "0x1827217A0")]
|
||||
public bool IsCA()
|
||||
{
|
||||
DerBoolean derBoolean = this.cA;
|
||||
if (derBoolean == 0)
|
||||
{
|
||||
}
|
||||
return derBoolean.IsTrue;
|
||||
}
|
||||
|
||||
// Token: 0x17001DF5 RID: 7669
|
||||
// (get) Token: 0x0600C212 RID: 49682 RVA: 0x002C28FC File Offset: 0x002C0AFC
|
||||
[Token(Token = "0x17001DF5")]
|
||||
public BigInteger PathLenConstraint
|
||||
{
|
||||
[Token(Token = "0x600C212")]
|
||||
[Address(RVA = "0x2721EA0", Offset = "0x2720CA0", VA = "0x182721EA0")]
|
||||
get
|
||||
{
|
||||
DerInteger derInteger = this.pathLenConstraint;
|
||||
if (derInteger == 0)
|
||||
{
|
||||
}
|
||||
return derInteger.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C213 RID: 49683 RVA: 0x002C291C File Offset: 0x002C0B1C
|
||||
[Token(Token = "0x600C213")]
|
||||
[Address(RVA = "0x27217C0", Offset = "0x27205C0", VA = "0x1827217C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
if (this.cA != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
DerBoolean derBoolean = this.cA;
|
||||
if (derBoolean != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derBoolean;
|
||||
asn1EncodableVector.Add(array);
|
||||
}
|
||||
if (this.pathLenConstraint != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerInteger derInteger = this.pathLenConstraint;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derInteger;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C214 RID: 49684 RVA: 0x002C2994 File Offset: 0x002C0B94
|
||||
[Token(Token = "0x600C214")]
|
||||
[Address(RVA = "0x2721970", Offset = "0x2720770", VA = "0x182721970", Slot = "3")]
|
||||
public override string ToString()
|
||||
{
|
||||
if (this.pathLenConstraint != (ulong)0L)
|
||||
{
|
||||
object[] array = new object[4];
|
||||
if ("BasicConstraints: isCa(" != 0)
|
||||
{
|
||||
}
|
||||
array[0] = "BasicConstraints: isCa(";
|
||||
DerBoolean derBoolean = this.cA;
|
||||
if (derBoolean == 0)
|
||||
{
|
||||
}
|
||||
bool isTrue = derBoolean.IsTrue;
|
||||
string text;
|
||||
if (text != 0)
|
||||
{
|
||||
}
|
||||
array[1] = text;
|
||||
if ("), pathLenConstraint = " != 0)
|
||||
{
|
||||
}
|
||||
array[2] = "), pathLenConstraint = ";
|
||||
BigInteger value = this.pathLenConstraint.Value;
|
||||
if (value != 0)
|
||||
{
|
||||
}
|
||||
array[3] = value;
|
||||
return string.Concat(array);
|
||||
}
|
||||
DerBoolean derBoolean2 = this.cA;
|
||||
if (derBoolean2 == 0)
|
||||
{
|
||||
}
|
||||
bool isTrue2 = derBoolean2.IsTrue;
|
||||
string text2;
|
||||
return "BasicConstraints: isCa(" + text2 + ")";
|
||||
}
|
||||
|
||||
// Token: 0x04007A6E RID: 31342
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007A6E")]
|
||||
private readonly DerBoolean cA;
|
||||
|
||||
// Token: 0x04007A6F RID: 31343
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007A6F")]
|
||||
private readonly DerInteger pathLenConstraint;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user