296 lines
12 KiB
C#
296 lines
12 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf
|
|
{
|
|
// Token: 0x0200191B RID: 6427
|
|
[Token(Token = "0x200191B")]
|
|
[StructLayout(3)]
|
|
public class SignerLocation : Asn1Encodable
|
|
{
|
|
// Token: 0x0600AC6B RID: 44139 RVA: 0x002852B8 File Offset: 0x002834B8
|
|
[Token(Token = "0x600AC6B")]
|
|
[Address(RVA = "0x1DFA500", Offset = "0x1DF8F00", VA = "0x181DFA500")]
|
|
public SignerLocation(Asn1Sequence seq)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
base..ctor();
|
|
IEnumerator enumerator = seq.GetEnumerator();
|
|
DirectoryString directoryString2;
|
|
if (enumerator != 0)
|
|
{
|
|
if (enumerator == 0)
|
|
{
|
|
goto IL_76;
|
|
}
|
|
if (typeof(Asn1TaggedObject).TypeHandle != 0)
|
|
{
|
|
if (typeof(Asn1TaggedObject).TypeHandle != 0)
|
|
{
|
|
if (typeof(Asn1TaggedObject).TypeHandle != (ulong)1L)
|
|
{
|
|
goto IL_5E;
|
|
}
|
|
Asn1Sequence asn1Sequence;
|
|
this.postalAddress = asn1Sequence;
|
|
while (asn1Sequence == 0)
|
|
{
|
|
}
|
|
}
|
|
DirectoryString directoryString;
|
|
this.localityName = directoryString;
|
|
}
|
|
this.countryName = directoryString2;
|
|
}
|
|
if (directoryString2 != 0)
|
|
{
|
|
}
|
|
if (num != -1)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return;
|
|
IL_5E:
|
|
ArgumentException ex = new ArgumentException("illegal tag");
|
|
ArgumentException ex2 = new ArgumentException("postal address must contain less than 6 strings");
|
|
IL_76:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600AC6C RID: 44140 RVA: 0x00285348 File Offset: 0x00283548
|
|
[Token(Token = "0x600AC6C")]
|
|
[Address(RVA = "0x1DFA780", Offset = "0x1DF9180", VA = "0x181DFA780")]
|
|
private SignerLocation(DirectoryString countryName, DirectoryString localityName, Asn1Sequence postalAddress)
|
|
{
|
|
if (postalAddress != 0)
|
|
{
|
|
}
|
|
this.countryName = countryName;
|
|
this.localityName = localityName;
|
|
this.postalAddress = postalAddress;
|
|
}
|
|
|
|
// Token: 0x0600AC6D RID: 44141 RVA: 0x00285380 File Offset: 0x00283580
|
|
[Token(Token = "0x600AC6D")]
|
|
[Address(RVA = "0x1DFA3F0", Offset = "0x1DF8DF0", VA = "0x181DFA3F0")]
|
|
public SignerLocation(DirectoryString countryName, DirectoryString localityName, DirectoryString[] postalAddress)
|
|
{
|
|
DerSequence derSequence = new DerSequence(postalAddress);
|
|
}
|
|
|
|
// Token: 0x0600AC6E RID: 44142 RVA: 0x00285394 File Offset: 0x00283594
|
|
[Token(Token = "0x600AC6E")]
|
|
[Address(RVA = "0x1DFA490", Offset = "0x1DF8E90", VA = "0x181DFA490")]
|
|
public SignerLocation(DerUtf8String countryName, DerUtf8String localityName, Asn1Sequence postalAddress)
|
|
{
|
|
DirectoryString instance = DirectoryString.GetInstance(countryName);
|
|
DirectoryString instance2 = DirectoryString.GetInstance(localityName);
|
|
}
|
|
|
|
// Token: 0x0600AC6F RID: 44143 RVA: 0x002853B0 File Offset: 0x002835B0
|
|
[Token(Token = "0x600AC6F")]
|
|
[Address(RVA = "0x1DF9F00", Offset = "0x1DF8900", VA = "0x181DF9F00")]
|
|
public static SignerLocation GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600AC6F)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.SignerLocation BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf.SignerLocation::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_2:
|
|
brtrue(IL_00, ceq:bool(ldloc:object(obj), ldc.i4:int32[exp:object](0)))
|
|
}
|
|
|
|
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.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: 0x17001B54 RID: 6996
|
|
// (get) Token: 0x0600AC70 RID: 44144 RVA: 0x002853E0 File Offset: 0x002835E0
|
|
[Token(Token = "0x17001B54")]
|
|
public DirectoryString Country
|
|
{
|
|
[Token(Token = "0x600AC70")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.countryName;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001B55 RID: 6997
|
|
// (get) Token: 0x0600AC71 RID: 44145 RVA: 0x002853F4 File Offset: 0x002835F4
|
|
[Token(Token = "0x17001B55")]
|
|
public DirectoryString Locality
|
|
{
|
|
[Token(Token = "0x600AC71")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
|
get
|
|
{
|
|
return this.localityName;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AC72 RID: 44146 RVA: 0x00285408 File Offset: 0x00283608
|
|
[Token(Token = "0x600AC72")]
|
|
[Address(RVA = "0x1DFA000", Offset = "0x1DF8A00", VA = "0x181DFA000")]
|
|
public DirectoryString[] GetPostal()
|
|
{
|
|
if (this.postalAddress != 0)
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
DirectoryString[] array = new DirectoryString[asn1Encodable];
|
|
int num = 0;
|
|
if (num != array.Length)
|
|
{
|
|
Asn1SequenceParser parser = this.postalAddress.Parser;
|
|
DirectoryString directoryString;
|
|
if (directoryString != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = directoryString;
|
|
}
|
|
return array;
|
|
}
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
|
|
// Token: 0x17001B56 RID: 6998
|
|
// (get) Token: 0x0600AC73 RID: 44147 RVA: 0x00285458 File Offset: 0x00283658
|
|
[Token(Token = "0x17001B56")]
|
|
[Obsolete]
|
|
public DerUtf8String CountryName
|
|
{
|
|
[Token(Token = "0x600AC73")]
|
|
[Address(RVA = "0x1DFA840", Offset = "0x1DF9240", VA = "0x181DFA840")]
|
|
get
|
|
{
|
|
DirectoryString directoryString = this.countryName;
|
|
if (directoryString == 0)
|
|
{
|
|
}
|
|
return new DerUtf8String(directoryString.GetString());
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001B57 RID: 6999
|
|
// (get) Token: 0x0600AC74 RID: 44148 RVA: 0x00285480 File Offset: 0x00283680
|
|
[Token(Token = "0x17001B57")]
|
|
[Obsolete]
|
|
public DerUtf8String LocalityName
|
|
{
|
|
[Token(Token = "0x600AC74")]
|
|
[Address(RVA = "0x1DFA8B0", Offset = "0x1DF92B0", VA = "0x181DFA8B0")]
|
|
get
|
|
{
|
|
DirectoryString directoryString = this.localityName;
|
|
if (directoryString == 0)
|
|
{
|
|
}
|
|
return new DerUtf8String(directoryString.GetString());
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001B58 RID: 7000
|
|
// (get) Token: 0x0600AC75 RID: 44149 RVA: 0x002854A8 File Offset: 0x002836A8
|
|
[Token(Token = "0x17001B58")]
|
|
public Asn1Sequence PostalAddress
|
|
{
|
|
[Token(Token = "0x600AC75")]
|
|
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
|
get
|
|
{
|
|
return this.postalAddress;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600AC76 RID: 44150 RVA: 0x002854BC File Offset: 0x002836BC
|
|
[Token(Token = "0x600AC76")]
|
|
[Address(RVA = "0x1DFA120", Offset = "0x1DF8B20", VA = "0x181DFA120", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this.countryName != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DirectoryString directoryString = this.countryName;
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, directoryString);
|
|
num = 0;
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
if (this.localityName != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
DirectoryString directoryString2 = this.localityName;
|
|
DerTaggedObject derTaggedObject2 = new DerTaggedObject(16777216 != 0, 16777216, directoryString2);
|
|
if (derTaggedObject2 != 0)
|
|
{
|
|
}
|
|
array2[0] = derTaggedObject2;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
if (this.postalAddress != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
Asn1Sequence asn1Sequence = this.postalAddress;
|
|
DerTaggedObject derTaggedObject3 = new DerTaggedObject(true, 2, asn1Sequence);
|
|
if (derTaggedObject3 != 0)
|
|
{
|
|
}
|
|
array3[0] = derTaggedObject3;
|
|
asn1EncodableVector.Add(array3);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400716B RID: 29035
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400716B")]
|
|
private DirectoryString countryName;
|
|
|
|
// Token: 0x0400716C RID: 29036
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400716C")]
|
|
private DirectoryString localityName;
|
|
|
|
// Token: 0x0400716D RID: 29037
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400716D")]
|
|
private Asn1Sequence postalAddress;
|
|
}
|
|
}
|