scripts
This commit is contained in:
+204
@@ -0,0 +1,204 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI
|
||||
{
|
||||
// Token: 0x02001858 RID: 6232
|
||||
[Token(Token = "0x2001858")]
|
||||
[StructLayout(3)]
|
||||
public class NameOrPseudonym : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600A82D RID: 43053 RVA: 0x00273110 File Offset: 0x00271310
|
||||
[Token(Token = "0x600A82D")]
|
||||
[Address(RVA = "0x2B0C340", Offset = "0x2B0AD40", VA = "0x182B0C340")]
|
||||
public static NameOrPseudonym GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A82D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.NameOrPseudonym BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.NameOrPseudonym::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:string(var_6_39, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_51, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_39)), 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: 0x0600A82E RID: 43054 RVA: 0x00273170 File Offset: 0x00271370
|
||||
[Token(Token = "0x600A82E")]
|
||||
[Address(RVA = "0x579A20", Offset = "0x578420", VA = "0x180579A20")]
|
||||
public NameOrPseudonym(DirectoryString pseudonym)
|
||||
{
|
||||
this.pseudonym = pseudonym;
|
||||
}
|
||||
|
||||
// Token: 0x0600A82F RID: 43055 RVA: 0x0027318C File Offset: 0x0027138C
|
||||
[Token(Token = "0x600A82F")]
|
||||
[Address(RVA = "0x2B0C660", Offset = "0x2B0B060", VA = "0x182B0C660")]
|
||||
private NameOrPseudonym(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A82F)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.NameOrPseudonym::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_33:
|
||||
stloc:Asn1SequenceParser(var_5_39, callvirtgetter:Asn1SequenceParser(Asn1Sequence::get_Parser, ldloc:Asn1Sequence(seq)))
|
||||
stloc:ArgumentException(var_7_4C, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Bad object encountered: "), ldloc:string(var_6))))
|
||||
}
|
||||
|
||||
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.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: 0x0600A830 RID: 43056 RVA: 0x002731E8 File Offset: 0x002713E8
|
||||
[Token(Token = "0x600A830")]
|
||||
[Address(RVA = "0x2B0C820", Offset = "0x2B0B220", VA = "0x182B0C820")]
|
||||
public NameOrPseudonym(string pseudonym)
|
||||
{
|
||||
DerUtf8String derUtf8String = new DerUtf8String(pseudonym);
|
||||
DirectoryString directoryString;
|
||||
directoryString.str = derUtf8String;
|
||||
base..ctor();
|
||||
this.pseudonym = directoryString;
|
||||
}
|
||||
|
||||
// Token: 0x0600A831 RID: 43057 RVA: 0x00273210 File Offset: 0x00271410
|
||||
[Token(Token = "0x600A831")]
|
||||
[Address(RVA = "0x1EE02E0", Offset = "0x1EDECE0", VA = "0x181EE02E0")]
|
||||
public NameOrPseudonym(DirectoryString surname, Asn1Sequence givenName)
|
||||
{
|
||||
this.surname = surname;
|
||||
this.givenName = givenName;
|
||||
}
|
||||
|
||||
// Token: 0x17001A5E RID: 6750
|
||||
// (get) Token: 0x0600A832 RID: 43058 RVA: 0x00273234 File Offset: 0x00271434
|
||||
[Token(Token = "0x17001A5E")]
|
||||
public DirectoryString Pseudonym
|
||||
{
|
||||
[Token(Token = "0x600A832")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.pseudonym;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A5F RID: 6751
|
||||
// (get) Token: 0x0600A833 RID: 43059 RVA: 0x00273248 File Offset: 0x00271448
|
||||
[Token(Token = "0x17001A5F")]
|
||||
public DirectoryString Surname
|
||||
{
|
||||
[Token(Token = "0x600A833")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.surname;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A834 RID: 43060 RVA: 0x0027325C File Offset: 0x0027145C
|
||||
[Token(Token = "0x600A834")]
|
||||
[Address(RVA = "0x2B0C0E0", Offset = "0x2B0AAE0", VA = "0x182B0C0E0")]
|
||||
public DirectoryString[] GetGivenName()
|
||||
{
|
||||
int num;
|
||||
DirectoryString[] array;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
Asn1Sequence asn1Sequence = this.givenName;
|
||||
Asn1Encodable asn1Encodable;
|
||||
array = new DirectoryString[asn1Encodable];
|
||||
IEnumerator enumerator = this.givenName.GetEnumerator();
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (num < enumerator)
|
||||
{
|
||||
num += num;
|
||||
num++;
|
||||
}
|
||||
num++;
|
||||
DirectoryString directoryString;
|
||||
if (directoryString != 0)
|
||||
{
|
||||
}
|
||||
array[0] = directoryString;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
if (num != -1)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600A835 RID: 43061 RVA: 0x002732D8 File Offset: 0x002714D8
|
||||
[Token(Token = "0x600A835")]
|
||||
[Address(RVA = "0x2B0C520", Offset = "0x2B0AF20", VA = "0x182B0C520", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
DirectoryString directoryString = this.pseudonym;
|
||||
if (directoryString == 0)
|
||||
{
|
||||
DirectoryString directoryString2 = this.surname;
|
||||
if (directoryString2 != 0)
|
||||
{
|
||||
}
|
||||
Asn1Encodable[] array;
|
||||
array[0] = directoryString2;
|
||||
Asn1Sequence asn1Sequence = this.givenName;
|
||||
if (asn1Sequence != 0)
|
||||
{
|
||||
}
|
||||
array[1] = asn1Sequence;
|
||||
DerSequence derSequence = new DerSequence(array);
|
||||
}
|
||||
return directoryString.ToAsn1Object();
|
||||
}
|
||||
|
||||
// Token: 0x04006D6F RID: 28015
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006D6F")]
|
||||
private readonly DirectoryString pseudonym;
|
||||
|
||||
// Token: 0x04006D70 RID: 28016
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006D70")]
|
||||
private readonly DirectoryString surname;
|
||||
|
||||
// Token: 0x04006D71 RID: 28017
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006D71")]
|
||||
private readonly Asn1Sequence givenName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user