scripts
This commit is contained in:
@@ -0,0 +1,127 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001813 RID: 6163
|
||||
[Token(Token = "0x2001813")]
|
||||
[StructLayout(3)]
|
||||
public class AttributeX509 : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600A5FB RID: 42491 RVA: 0x0026948C File Offset: 0x0026768C
|
||||
[Token(Token = "0x600A5FB")]
|
||||
[Address(RVA = "0x2AFD200", Offset = "0x2AFBC00", VA = "0x182AFD200")]
|
||||
public static AttributeX509 GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A5FB)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeX509 BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.AttributeX509::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_31:
|
||||
stloc:string(var_9_37, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_10_4F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_9_37)), 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: 0x0600A5FC RID: 42492 RVA: 0x002694EC File Offset: 0x002676EC
|
||||
[Token(Token = "0x600A5FC")]
|
||||
[Address(RVA = "0x2AFD610", Offset = "0x2AFC010", VA = "0x182AFD610")]
|
||||
private AttributeX509(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
DerObjectIdentifier derObjectIdentifier;
|
||||
this.attrType = derObjectIdentifier;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
Asn1Set asn1Set;
|
||||
this.attrValues = asn1Set;
|
||||
}
|
||||
|
||||
// Token: 0x0600A5FD RID: 42493 RVA: 0x00269524 File Offset: 0x00267724
|
||||
[Token(Token = "0x600A5FD")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public AttributeX509(DerObjectIdentifier attrType, Asn1Set attrValues)
|
||||
{
|
||||
this.attrType = attrType;
|
||||
this.attrValues = attrValues;
|
||||
}
|
||||
|
||||
// Token: 0x170019E4 RID: 6628
|
||||
// (get) Token: 0x0600A5FE RID: 42494 RVA: 0x00269548 File Offset: 0x00267748
|
||||
[Token(Token = "0x170019E4")]
|
||||
public DerObjectIdentifier AttrType
|
||||
{
|
||||
[Token(Token = "0x600A5FE")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.attrType;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A5FF RID: 42495 RVA: 0x0026955C File Offset: 0x0026775C
|
||||
[Token(Token = "0x600A5FF")]
|
||||
[Address(RVA = "0x260F8A0", Offset = "0x260E2A0", VA = "0x18260F8A0")]
|
||||
public Asn1Encodable[] GetAttributeValues()
|
||||
{
|
||||
IEnumerator enumerator = ((IEnumerable)this.attrValues).GetEnumerator();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x170019E5 RID: 6629
|
||||
// (get) Token: 0x0600A600 RID: 42496 RVA: 0x0026957C File Offset: 0x0026777C
|
||||
[Token(Token = "0x170019E5")]
|
||||
public Asn1Set AttrValues
|
||||
{
|
||||
[Token(Token = "0x600A600")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.attrValues;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A601 RID: 42497 RVA: 0x00269590 File Offset: 0x00267790
|
||||
[Token(Token = "0x600A601")]
|
||||
[Address(RVA = "0x2AFD500", Offset = "0x2AFBF00", VA = "0x182AFD500", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
DerObjectIdentifier derObjectIdentifier = this.attrType;
|
||||
if (derObjectIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derObjectIdentifier;
|
||||
Asn1Set asn1Set = this.attrValues;
|
||||
if (asn1Set != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Set;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006C18 RID: 27672
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006C18")]
|
||||
private readonly DerObjectIdentifier attrType;
|
||||
|
||||
// Token: 0x04006C19 RID: 27673
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006C19")]
|
||||
private readonly Asn1Set attrValues;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user