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: 0x02001EC6 RID: 7878
|
|
[Token(Token = "0x2001EC6")]
|
|
public class ProcurationSyntax : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C710 RID: 50960 RVA: 0x002D8280 File Offset: 0x002D6480
|
|
[Token(Token = "0x600C710")]
|
|
[Address(RVA = "0x28455A0", Offset = "0x28443A0", VA = "0x1828455A0")]
|
|
public static ProcurationSyntax GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C710)
|
|
|
|
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: 0x0600C711 RID: 50961 RVA: 0x002D82D4 File Offset: 0x002D64D4
|
|
[Token(Token = "0x600C711")]
|
|
[Address(RVA = "0x2845B00", Offset = "0x2844900", VA = "0x182845B00")]
|
|
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: 0x0600C712 RID: 50962 RVA: 0x002D8370 File Offset: 0x002D6570
|
|
[Token(Token = "0x600C712")]
|
|
[Address(RVA = "0x2845DC0", Offset = "0x2844BC0", VA = "0x182845DC0")]
|
|
public ProcurationSyntax(string country, DirectoryString typeOfSubstitution, IssuerSerial certRef)
|
|
{
|
|
this.country = country;
|
|
this.certRef = certRef;
|
|
this.typeOfSubstitution = typeOfSubstitution;
|
|
this.thirdPerson = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x0600C713 RID: 50963 RVA: 0x002D83A4 File Offset: 0x002D65A4
|
|
[Token(Token = "0x600C713")]
|
|
[Address(RVA = "0x2845D70", Offset = "0x2844B70", VA = "0x182845D70")]
|
|
public ProcurationSyntax(string country, DirectoryString typeOfSubstitution, GeneralName thirdPerson)
|
|
{
|
|
this.country = country;
|
|
this.thirdPerson = thirdPerson;
|
|
this.typeOfSubstitution = typeOfSubstitution;
|
|
this.certRef = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x17001F1B RID: 7963
|
|
// (get) Token: 0x0600C714 RID: 50964 RVA: 0x002D83D8 File Offset: 0x002D65D8
|
|
[Token(Token = "0x17001F1B")]
|
|
public virtual string Country
|
|
{
|
|
[Token(Token = "0x600C714")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "6")]
|
|
get
|
|
{
|
|
return this.country;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F1C RID: 7964
|
|
// (get) Token: 0x0600C715 RID: 50965 RVA: 0x002D83EC File Offset: 0x002D65EC
|
|
[Token(Token = "0x17001F1C")]
|
|
public virtual DirectoryString TypeOfSubstitution
|
|
{
|
|
[Token(Token = "0x600C715")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40", Slot = "7")]
|
|
get
|
|
{
|
|
return this.typeOfSubstitution;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F1D RID: 7965
|
|
// (get) Token: 0x0600C716 RID: 50966 RVA: 0x002D8400 File Offset: 0x002D6600
|
|
[Token(Token = "0x17001F1D")]
|
|
public virtual GeneralName ThirdPerson
|
|
{
|
|
[Token(Token = "0x600C716")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400", Slot = "8")]
|
|
get
|
|
{
|
|
return this.thirdPerson;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F1E RID: 7966
|
|
// (get) Token: 0x0600C717 RID: 50967 RVA: 0x002D8414 File Offset: 0x002D6614
|
|
[Token(Token = "0x17001F1E")]
|
|
public virtual IssuerSerial CertRef
|
|
{
|
|
[Token(Token = "0x600C717")]
|
|
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "9")]
|
|
get
|
|
{
|
|
return this.certRef;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C718 RID: 50968 RVA: 0x002D8428 File Offset: 0x002D6628
|
|
[Token(Token = "0x600C718")]
|
|
[Address(RVA = "0x28457A0", Offset = "0x28445A0", VA = "0x1828457A0", 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: 0x04007EBE RID: 32446
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007EBE")]
|
|
private readonly string country;
|
|
|
|
// Token: 0x04007EBF RID: 32447
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007EBF")]
|
|
private readonly DirectoryString typeOfSubstitution;
|
|
|
|
// Token: 0x04007EC0 RID: 32448
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007EC0")]
|
|
private readonly GeneralName thirdPerson;
|
|
|
|
// Token: 0x04007EC1 RID: 32449
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007EC1")]
|
|
private readonly IssuerSerial certRef;
|
|
}
|
|
}
|