oh dear
This commit is contained in:
+284
@@ -0,0 +1,284 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI
|
||||
{
|
||||
// Token: 0x02001E36 RID: 7734
|
||||
[Token(Token = "0x2001E36")]
|
||||
public class PersonalData : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C410 RID: 50192 RVA: 0x002CB834 File Offset: 0x002C9A34
|
||||
[Token(Token = "0x600C410")]
|
||||
[Address(RVA = "0x2B3B180", Offset = "0x2B39F80", VA = "0x182B3B180")]
|
||||
public static PersonalData GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C410)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.PersonalData BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SigI.PersonalData::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), 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: 0x0600C411 RID: 50193 RVA: 0x002CB888 File Offset: 0x002C9A88
|
||||
[Token(Token = "0x600C411")]
|
||||
[Address(RVA = "0x2B3B8A0", Offset = "0x2B3A6A0", VA = "0x182B3B8A0")]
|
||||
private PersonalData(Asn1Sequence seq)
|
||||
{
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
NameOrPseudonym nameOrPseudonym;
|
||||
this.nameOrPseudonym = nameOrPseudonym;
|
||||
if (nameOrPseudonym != 0)
|
||||
{
|
||||
Asn1TaggedObject instance = Asn1TaggedObject.GetInstance(nameOrPseudonym);
|
||||
int tagNo = instance.tagNo;
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 0)
|
||||
{
|
||||
if (tagNo != 0)
|
||||
{
|
||||
ulong num;
|
||||
DirectoryString instance2 = DirectoryString.GetInstance(instance, num != 0UL);
|
||||
this.postalAddress = instance2;
|
||||
}
|
||||
int num2 = 0;
|
||||
string @string = DerPrintableString.GetInstance(instance, num2 != 0).GetString();
|
||||
this.gender = @string;
|
||||
}
|
||||
ulong num3;
|
||||
DirectoryString instance3 = DirectoryString.GetInstance(instance, num3 != 0UL);
|
||||
this.placeOfBirth = instance3;
|
||||
}
|
||||
int num4 = 0;
|
||||
DerGeneralizedTime instance4 = DerGeneralizedTime.GetInstance(instance, num4 != 0);
|
||||
this.dateOfBirth = instance4;
|
||||
}
|
||||
int num5 = 0;
|
||||
BigInteger value = DerInteger.GetInstance(instance, num5 != 0).Value;
|
||||
this.nameDistinguisher = value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C412 RID: 50194 RVA: 0x002CB95C File Offset: 0x002C9B5C
|
||||
[Token(Token = "0x600C412")]
|
||||
[Address(RVA = "0x2B3B830", Offset = "0x2B3A630", VA = "0x182B3B830")]
|
||||
public PersonalData(NameOrPseudonym nameOrPseudonym, BigInteger nameDistinguisher, DerGeneralizedTime dateOfBirth, DirectoryString placeOfBirth, string gender, DirectoryString postalAddress)
|
||||
{
|
||||
this.gender = 0;
|
||||
this.postalAddress = 0;
|
||||
this.nameOrPseudonym = nameOrPseudonym;
|
||||
this.nameDistinguisher = nameDistinguisher;
|
||||
this.placeOfBirth = 0;
|
||||
this.dateOfBirth = dateOfBirth;
|
||||
}
|
||||
|
||||
// Token: 0x17001E61 RID: 7777
|
||||
// (get) Token: 0x0600C413 RID: 50195 RVA: 0x002CB99C File Offset: 0x002C9B9C
|
||||
[Token(Token = "0x17001E61")]
|
||||
public NameOrPseudonym NameOrPseudonym
|
||||
{
|
||||
[Token(Token = "0x600C413")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.nameOrPseudonym;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E62 RID: 7778
|
||||
// (get) Token: 0x0600C414 RID: 50196 RVA: 0x002CB9B0 File Offset: 0x002C9BB0
|
||||
[Token(Token = "0x17001E62")]
|
||||
public BigInteger NameDistinguisher
|
||||
{
|
||||
[Token(Token = "0x600C414")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.nameDistinguisher;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E63 RID: 7779
|
||||
// (get) Token: 0x0600C415 RID: 50197 RVA: 0x002CB9C4 File Offset: 0x002C9BC4
|
||||
[Token(Token = "0x17001E63")]
|
||||
public DerGeneralizedTime DateOfBirth
|
||||
{
|
||||
[Token(Token = "0x600C415")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.dateOfBirth;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E64 RID: 7780
|
||||
// (get) Token: 0x0600C416 RID: 50198 RVA: 0x002CB9D8 File Offset: 0x002C9BD8
|
||||
[Token(Token = "0x17001E64")]
|
||||
public DirectoryString PlaceOfBirth
|
||||
{
|
||||
[Token(Token = "0x600C416")]
|
||||
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0")]
|
||||
get
|
||||
{
|
||||
return this.placeOfBirth;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E65 RID: 7781
|
||||
// (get) Token: 0x0600C417 RID: 50199 RVA: 0x002CB9EC File Offset: 0x002C9BEC
|
||||
[Token(Token = "0x17001E65")]
|
||||
public string Gender
|
||||
{
|
||||
[Token(Token = "0x600C417")]
|
||||
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180")]
|
||||
get
|
||||
{
|
||||
return this.gender;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E66 RID: 7782
|
||||
// (get) Token: 0x0600C418 RID: 50200 RVA: 0x002CBA00 File Offset: 0x002C9C00
|
||||
[Token(Token = "0x17001E66")]
|
||||
public DirectoryString PostalAddress
|
||||
{
|
||||
[Token(Token = "0x600C418")]
|
||||
[Address(RVA = "0x3F63D0", Offset = "0x3F51D0", VA = "0x1803F63D0")]
|
||||
get
|
||||
{
|
||||
return this.postalAddress;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C419 RID: 50201 RVA: 0x002CBA14 File Offset: 0x002C9C14
|
||||
[Token(Token = "0x600C419")]
|
||||
[Address(RVA = "0x2B3B380", Offset = "0x2B3A180", VA = "0x182B3B380", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
NameOrPseudonym nameOrPseudonym = this.nameOrPseudonym;
|
||||
if (nameOrPseudonym != 0)
|
||||
{
|
||||
}
|
||||
array[0] = nameOrPseudonym;
|
||||
Asn1EncodableVector asn1EncodableVector;
|
||||
asn1EncodableVector.Add(array);
|
||||
int num = 0;
|
||||
if (this.nameDistinguisher != num)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[0];
|
||||
DerInteger derInteger = new DerInteger(this.nameDistinguisher);
|
||||
int num2;
|
||||
int num3;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num2 != 0, num3, derInteger);
|
||||
num3 = 0;
|
||||
num2 = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
if (this.dateOfBirth != num)
|
||||
{
|
||||
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
||||
DerGeneralizedTime derGeneralizedTime = this.dateOfBirth;
|
||||
int num4;
|
||||
DerTaggedObject derTaggedObject2 = new DerTaggedObject(num4 != 0, 1, derGeneralizedTime);
|
||||
num4 = 0;
|
||||
if (derTaggedObject2 != 0)
|
||||
{
|
||||
}
|
||||
array3[0] = derTaggedObject2;
|
||||
asn1EncodableVector.Add(array3);
|
||||
}
|
||||
if (this.placeOfBirth != num)
|
||||
{
|
||||
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
||||
DirectoryString directoryString = this.placeOfBirth;
|
||||
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, directoryString);
|
||||
if (derTaggedObject3 != 0)
|
||||
{
|
||||
}
|
||||
array4[0] = derTaggedObject3;
|
||||
asn1EncodableVector.Add(array4);
|
||||
}
|
||||
if (this.gender != num)
|
||||
{
|
||||
Asn1Encodable[] array5 = new Asn1Encodable[1];
|
||||
DerPrintableString derPrintableString = new DerPrintableString(this.gender, true);
|
||||
int num5;
|
||||
DerTaggedObject derTaggedObject4 = new DerTaggedObject(num5 != 0, 3, derPrintableString);
|
||||
num5 = 0;
|
||||
if (derTaggedObject4 != 0)
|
||||
{
|
||||
}
|
||||
array5[0] = derTaggedObject4;
|
||||
asn1EncodableVector.Add(array5);
|
||||
}
|
||||
if (this.postalAddress != num)
|
||||
{
|
||||
Asn1Encodable[] array6 = new Asn1Encodable[1];
|
||||
DirectoryString directoryString2 = this.postalAddress;
|
||||
DerTaggedObject derTaggedObject5 = new DerTaggedObject(true, 4, directoryString2);
|
||||
if (derTaggedObject5 != 0)
|
||||
{
|
||||
}
|
||||
array6[0] = derTaggedObject5;
|
||||
asn1EncodableVector.Add(array6);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007BB5 RID: 31669
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007BB5")]
|
||||
private readonly NameOrPseudonym nameOrPseudonym;
|
||||
|
||||
// Token: 0x04007BB6 RID: 31670
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007BB6")]
|
||||
private readonly BigInteger nameDistinguisher;
|
||||
|
||||
// Token: 0x04007BB7 RID: 31671
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007BB7")]
|
||||
private readonly DerGeneralizedTime dateOfBirth;
|
||||
|
||||
// Token: 0x04007BB8 RID: 31672
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007BB8")]
|
||||
private readonly DirectoryString placeOfBirth;
|
||||
|
||||
// Token: 0x04007BB9 RID: 31673
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007BB9")]
|
||||
private readonly string gender;
|
||||
|
||||
// Token: 0x04007BBA RID: 31674
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007BBA")]
|
||||
private readonly DirectoryString postalAddress;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user