oh dear
This commit is contained in:
+197
@@ -0,0 +1,197 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI
|
||||
{
|
||||
// Token: 0x02001E35 RID: 7733
|
||||
[Token(Token = "0x2001E35")]
|
||||
public class NameOrPseudonym : Asn1Encodable, IAsn1Choice
|
||||
{
|
||||
// Token: 0x0600C407 RID: 50183 RVA: 0x002CB618 File Offset: 0x002C9818
|
||||
[Token(Token = "0x600C407")]
|
||||
[Address(RVA = "0x2B39A70", Offset = "0x2B38870", VA = "0x182B39A70")]
|
||||
public static NameOrPseudonym GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C407)
|
||||
|
||||
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: 0x0600C408 RID: 50184 RVA: 0x002CB678 File Offset: 0x002C9878
|
||||
[Token(Token = "0x600C408")]
|
||||
[Address(RVA = "0x462000", Offset = "0x460E00", VA = "0x180462000")]
|
||||
public NameOrPseudonym(DirectoryString pseudonym)
|
||||
{
|
||||
this.pseudonym = pseudonym;
|
||||
}
|
||||
|
||||
// Token: 0x0600C409 RID: 50185 RVA: 0x002CB694 File Offset: 0x002C9894
|
||||
[Token(Token = "0x600C409")]
|
||||
[Address(RVA = "0x2B39D90", Offset = "0x2B38B90", VA = "0x182B39D90")]
|
||||
private NameOrPseudonym(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C409)
|
||||
|
||||
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: 0x0600C40A RID: 50186 RVA: 0x002CB6F0 File Offset: 0x002C98F0
|
||||
[Token(Token = "0x600C40A")]
|
||||
[Address(RVA = "0x2B39F50", Offset = "0x2B38D50", VA = "0x182B39F50")]
|
||||
public NameOrPseudonym(string pseudonym)
|
||||
{
|
||||
DirectoryString directoryString = new DirectoryString(pseudonym);
|
||||
base..ctor();
|
||||
this.pseudonym = directoryString;
|
||||
}
|
||||
|
||||
// Token: 0x0600C40B RID: 50187 RVA: 0x002CB714 File Offset: 0x002C9914
|
||||
[Token(Token = "0x600C40B")]
|
||||
[Address(RVA = "0x188D010", Offset = "0x188BE10", VA = "0x18188D010")]
|
||||
public NameOrPseudonym(DirectoryString surname, Asn1Sequence givenName)
|
||||
{
|
||||
this.surname = surname;
|
||||
this.givenName = givenName;
|
||||
}
|
||||
|
||||
// Token: 0x17001E5F RID: 7775
|
||||
// (get) Token: 0x0600C40C RID: 50188 RVA: 0x002CB738 File Offset: 0x002C9938
|
||||
[Token(Token = "0x17001E5F")]
|
||||
public DirectoryString Pseudonym
|
||||
{
|
||||
[Token(Token = "0x600C40C")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.pseudonym;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E60 RID: 7776
|
||||
// (get) Token: 0x0600C40D RID: 50189 RVA: 0x002CB74C File Offset: 0x002C994C
|
||||
[Token(Token = "0x17001E60")]
|
||||
public DirectoryString Surname
|
||||
{
|
||||
[Token(Token = "0x600C40D")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.surname;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C40E RID: 50190 RVA: 0x002CB760 File Offset: 0x002C9960
|
||||
[Token(Token = "0x600C40E")]
|
||||
[Address(RVA = "0x2B39840", Offset = "0x2B38640", VA = "0x182B39840")]
|
||||
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 instance = DirectoryString.GetInstance(num);
|
||||
if (instance != 0)
|
||||
{
|
||||
}
|
||||
array[0] = instance;
|
||||
}
|
||||
if (enumerator != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return array;
|
||||
}
|
||||
|
||||
// Token: 0x0600C40F RID: 50191 RVA: 0x002CB7E0 File Offset: 0x002C99E0
|
||||
[Token(Token = "0x600C40F")]
|
||||
[Address(RVA = "0x2B39C50", Offset = "0x2B38A50", VA = "0x182B39C50", 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: 0x04007BB2 RID: 31666
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007BB2")]
|
||||
private readonly DirectoryString pseudonym;
|
||||
|
||||
// Token: 0x04007BB3 RID: 31667
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007BB3")]
|
||||
private readonly DirectoryString surname;
|
||||
|
||||
// Token: 0x04007BB4 RID: 31668
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007BB4")]
|
||||
private readonly Asn1Sequence givenName;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user