211 lines
8.5 KiB
C#
211 lines
8.5 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509
|
|
{
|
|
// Token: 0x02001FA6 RID: 8102
|
|
[Token(Token = "0x2001FA6")]
|
|
public class ProcurationSyntax : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CADE RID: 51934 RVA: 0x002E0AF4 File Offset: 0x002DECF4
|
|
[Token(Token = "0x600CADE")]
|
|
[Address(RVA = "0x2EB63B0", Offset = "0x2EB53B0", VA = "0x182EB63B0")]
|
|
public static ProcurationSyntax GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CADE)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.ProcurationSyntax BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.ProcurationSyntax::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: 0x0600CADF RID: 51935 RVA: 0x002E0B48 File Offset: 0x002DED48
|
|
[Token(Token = "0x600CADF")]
|
|
[Address(RVA = "0x2EB6910", Offset = "0x2EB5910", VA = "0x182EB6910")]
|
|
private ProcurationSyntax(Asn1Sequence seq)
|
|
{
|
|
if (seq.GetEnumerator() != 0)
|
|
{
|
|
Asn1TaggedObject asn1TaggedObject;
|
|
int tagNo = asn1TaggedObject.tagNo;
|
|
if (asn1TaggedObject != 0)
|
|
{
|
|
if (asn1TaggedObject != 0)
|
|
{
|
|
Asn1Object @object = asn1TaggedObject.GetObject();
|
|
if (@object == 0)
|
|
{
|
|
IssuerSerial instance = IssuerSerial.GetInstance(@object);
|
|
this.certRef = instance;
|
|
}
|
|
GeneralName instance2 = GeneralName.GetInstance(@object);
|
|
this.thirdPerson = instance2;
|
|
}
|
|
ulong num;
|
|
DirectoryString instance3 = DirectoryString.GetInstance(asn1TaggedObject, num != 0UL);
|
|
this.typeOfSubstitution = instance3;
|
|
}
|
|
ulong num2;
|
|
string @string = DerPrintableString.GetInstance(asn1TaggedObject, num2 != 0UL).GetString();
|
|
this.country = @string;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CAE0 RID: 51936 RVA: 0x002E0BE4 File Offset: 0x002DEDE4
|
|
[Token(Token = "0x600CAE0")]
|
|
[Address(RVA = "0x2EB6B80", Offset = "0x2EB5B80", VA = "0x182EB6B80")]
|
|
public ProcurationSyntax(string country, DirectoryString typeOfSubstitution, IssuerSerial certRef)
|
|
{
|
|
this.country = country;
|
|
this.certRef = certRef;
|
|
this.typeOfSubstitution = typeOfSubstitution;
|
|
this.thirdPerson = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x0600CAE1 RID: 51937 RVA: 0x002E0C18 File Offset: 0x002DEE18
|
|
[Token(Token = "0x600CAE1")]
|
|
[Address(RVA = "0x2E78750", Offset = "0x2E77750", VA = "0x182E78750")]
|
|
public ProcurationSyntax(string country, DirectoryString typeOfSubstitution, GeneralName thirdPerson)
|
|
{
|
|
this.country = country;
|
|
this.thirdPerson = thirdPerson;
|
|
this.typeOfSubstitution = typeOfSubstitution;
|
|
this.certRef = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x17001FB8 RID: 8120
|
|
// (get) Token: 0x0600CAE2 RID: 51938 RVA: 0x002E0C4C File Offset: 0x002DEE4C
|
|
[Token(Token = "0x17001FB8")]
|
|
public virtual string Country
|
|
{
|
|
[Token(Token = "0x600CAE2")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.country;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001FB9 RID: 8121
|
|
// (get) Token: 0x0600CAE3 RID: 51939 RVA: 0x002E0C60 File Offset: 0x002DEE60
|
|
[Token(Token = "0x17001FB9")]
|
|
public virtual DirectoryString TypeOfSubstitution
|
|
{
|
|
[Token(Token = "0x600CAE3")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.typeOfSubstitution;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001FBA RID: 8122
|
|
// (get) Token: 0x0600CAE4 RID: 51940 RVA: 0x002E0C74 File Offset: 0x002DEE74
|
|
[Token(Token = "0x17001FBA")]
|
|
public virtual GeneralName ThirdPerson
|
|
{
|
|
[Token(Token = "0x600CAE4")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
|
get
|
|
{
|
|
return this.thirdPerson;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001FBB RID: 8123
|
|
// (get) Token: 0x0600CAE5 RID: 51941 RVA: 0x002E0C88 File Offset: 0x002DEE88
|
|
[Token(Token = "0x17001FBB")]
|
|
public virtual IssuerSerial CertRef
|
|
{
|
|
[Token(Token = "0x600CAE5")]
|
|
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "9")]
|
|
get
|
|
{
|
|
return this.certRef;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CAE6 RID: 51942 RVA: 0x002E0C9C File Offset: 0x002DEE9C
|
|
[Token(Token = "0x600CAE6")]
|
|
[Address(RVA = "0x2EB65B0", Offset = "0x2EB55B0", VA = "0x182EB65B0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
int num = 0;
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this.country != num)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[0];
|
|
DerPrintableString derPrintableString = new DerPrintableString(this.country, true);
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(16777216 != 0, 16777216, derPrintableString);
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
if (this.typeOfSubstitution != num)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
DirectoryString directoryString = this.typeOfSubstitution;
|
|
DerTaggedObject derTaggedObject2 = new DerTaggedObject(true, 2, directoryString);
|
|
if (derTaggedObject2 != 0)
|
|
{
|
|
}
|
|
array2[0] = derTaggedObject2;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
IssuerSerial issuerSerial;
|
|
if (this.thirdPerson == num)
|
|
{
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
issuerSerial = this.certRef;
|
|
if (new DerTaggedObject(true, 3, issuerSerial) != 0)
|
|
{
|
|
}
|
|
}
|
|
if (new DerTaggedObject(true, 3, issuerSerial) != 0)
|
|
{
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008077 RID: 32887
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008077")]
|
|
private readonly string country;
|
|
|
|
// Token: 0x04008078 RID: 32888
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008078")]
|
|
private readonly DirectoryString typeOfSubstitution;
|
|
|
|
// Token: 0x04008079 RID: 32889
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008079")]
|
|
private readonly GeneralName thirdPerson;
|
|
|
|
// Token: 0x0400807A RID: 32890
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x400807A")]
|
|
private readonly IssuerSerial certRef;
|
|
}
|
|
}
|