291 lines
12 KiB
C#
291 lines
12 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Esf
|
|
{
|
|
// Token: 0x02001EF8 RID: 7928
|
|
[Token(Token = "0x2001EF8")]
|
|
public class SignerLocation : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C845 RID: 51269 RVA: 0x002DD790 File Offset: 0x002DB990
|
|
[Token(Token = "0x600C845")]
|
|
[Address(RVA = "0x284AE10", Offset = "0x2849C10", VA = "0x18284AE10")]
|
|
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_72;
|
|
}
|
|
if (typeof(Asn1TaggedObject).TypeHandle != 0)
|
|
{
|
|
if (typeof(Asn1TaggedObject).TypeHandle != 0)
|
|
{
|
|
if (typeof(Asn1TaggedObject).TypeHandle != (ulong)1L)
|
|
{
|
|
goto IL_5A;
|
|
}
|
|
Asn1Sequence asn1Sequence;
|
|
this.postalAddress = asn1Sequence;
|
|
while (asn1Sequence == 0)
|
|
{
|
|
}
|
|
}
|
|
DirectoryString directoryString;
|
|
this.localityName = directoryString;
|
|
}
|
|
this.countryName = directoryString2;
|
|
}
|
|
if (directoryString2 != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
return;
|
|
IL_5A:
|
|
ArgumentException ex = new ArgumentException("illegal tag");
|
|
ArgumentException ex2 = new ArgumentException("postal address must contain less than 6 strings");
|
|
IL_72:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C846 RID: 51270 RVA: 0x002DD81C File Offset: 0x002DBA1C
|
|
[Token(Token = "0x600C846")]
|
|
[Address(RVA = "0x284B060", Offset = "0x2849E60", VA = "0x18284B060")]
|
|
private SignerLocation(DirectoryString countryName, DirectoryString localityName, Asn1Sequence postalAddress)
|
|
{
|
|
if (postalAddress != 0)
|
|
{
|
|
}
|
|
this.countryName = countryName;
|
|
this.localityName = localityName;
|
|
this.postalAddress = postalAddress;
|
|
}
|
|
|
|
// Token: 0x0600C847 RID: 51271 RVA: 0x002DD854 File Offset: 0x002DBA54
|
|
[Token(Token = "0x600C847")]
|
|
[Address(RVA = "0x284AD00", Offset = "0x2849B00", VA = "0x18284AD00")]
|
|
public SignerLocation(DirectoryString countryName, DirectoryString localityName, DirectoryString[] postalAddress)
|
|
{
|
|
DerSequence derSequence = new DerSequence(postalAddress);
|
|
}
|
|
|
|
// Token: 0x0600C848 RID: 51272 RVA: 0x002DD868 File Offset: 0x002DBA68
|
|
[Token(Token = "0x600C848")]
|
|
[Address(RVA = "0x284ADA0", Offset = "0x2849BA0", VA = "0x18284ADA0")]
|
|
public SignerLocation(DerUtf8String countryName, DerUtf8String localityName, Asn1Sequence postalAddress)
|
|
{
|
|
DirectoryString instance = DirectoryString.GetInstance(countryName);
|
|
DirectoryString instance2 = DirectoryString.GetInstance(localityName);
|
|
}
|
|
|
|
// Token: 0x0600C849 RID: 51273 RVA: 0x002DD884 File Offset: 0x002DBA84
|
|
[Token(Token = "0x600C849")]
|
|
[Address(RVA = "0x284A810", Offset = "0x2849610", VA = "0x18284A810")]
|
|
public static SignerLocation GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C849)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x17001F55 RID: 8021
|
|
// (get) Token: 0x0600C84A RID: 51274 RVA: 0x002DD8B4 File Offset: 0x002DBAB4
|
|
[Token(Token = "0x17001F55")]
|
|
public DirectoryString Country
|
|
{
|
|
[Token(Token = "0x600C84A")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this.countryName;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F56 RID: 8022
|
|
// (get) Token: 0x0600C84B RID: 51275 RVA: 0x002DD8C8 File Offset: 0x002DBAC8
|
|
[Token(Token = "0x17001F56")]
|
|
public DirectoryString Locality
|
|
{
|
|
[Token(Token = "0x600C84B")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.localityName;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C84C RID: 51276 RVA: 0x002DD8DC File Offset: 0x002DBADC
|
|
[Token(Token = "0x600C84C")]
|
|
[Address(RVA = "0x284A910", Offset = "0x2849710", VA = "0x18284A910")]
|
|
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: 0x17001F57 RID: 8023
|
|
// (get) Token: 0x0600C84D RID: 51277 RVA: 0x002DD92C File Offset: 0x002DBB2C
|
|
[Token(Token = "0x17001F57")]
|
|
[Obsolete]
|
|
public DerUtf8String CountryName
|
|
{
|
|
[Token(Token = "0x600C84D")]
|
|
[Address(RVA = "0x284B120", Offset = "0x2849F20", VA = "0x18284B120")]
|
|
get
|
|
{
|
|
DirectoryString directoryString = this.countryName;
|
|
if (directoryString == 0)
|
|
{
|
|
}
|
|
return new DerUtf8String(directoryString.GetString());
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F58 RID: 8024
|
|
// (get) Token: 0x0600C84E RID: 51278 RVA: 0x002DD954 File Offset: 0x002DBB54
|
|
[Token(Token = "0x17001F58")]
|
|
[Obsolete]
|
|
public DerUtf8String LocalityName
|
|
{
|
|
[Token(Token = "0x600C84E")]
|
|
[Address(RVA = "0x284B190", Offset = "0x2849F90", VA = "0x18284B190")]
|
|
get
|
|
{
|
|
DirectoryString directoryString = this.localityName;
|
|
if (directoryString == 0)
|
|
{
|
|
}
|
|
return new DerUtf8String(directoryString.GetString());
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F59 RID: 8025
|
|
// (get) Token: 0x0600C84F RID: 51279 RVA: 0x002DD97C File Offset: 0x002DBB7C
|
|
[Token(Token = "0x17001F59")]
|
|
public Asn1Sequence PostalAddress
|
|
{
|
|
[Token(Token = "0x600C84F")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return this.postalAddress;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C850 RID: 51280 RVA: 0x002DD990 File Offset: 0x002DBB90
|
|
[Token(Token = "0x600C850")]
|
|
[Address(RVA = "0x284AA30", Offset = "0x2849830", VA = "0x18284AA30", 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: 0x04007FAE RID: 32686
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007FAE")]
|
|
private DirectoryString countryName;
|
|
|
|
// Token: 0x04007FAF RID: 32687
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007FAF")]
|
|
private DirectoryString localityName;
|
|
|
|
// Token: 0x04007FB0 RID: 32688
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007FB0")]
|
|
private Asn1Sequence postalAddress;
|
|
}
|
|
}
|