381 lines
15 KiB
C#
381 lines
15 KiB
C#
using System;
|
|
using System.Collections;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X500;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509
|
|
{
|
|
// Token: 0x02001EC7 RID: 7879
|
|
[Token(Token = "0x2001EC7")]
|
|
public class ProfessionInfo : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C719 RID: 50969 RVA: 0x002D84F4 File Offset: 0x002D66F4
|
|
[Token(Token = "0x600C719")]
|
|
[Address(RVA = "0x2845E10", Offset = "0x2844C10", VA = "0x182845E10")]
|
|
public static ProfessionInfo GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C719)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.ProfessionInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.IsisMtt.X509.ProfessionInfo::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: 0x0600C71A RID: 50970 RVA: 0x002D8548 File Offset: 0x002D6748
|
|
[Token(Token = "0x600C71A")]
|
|
[Address(RVA = "0x2846C80", Offset = "0x2845A80", VA = "0x182846C80")]
|
|
private ProfessionInfo(Asn1Sequence seq)
|
|
{
|
|
string string2;
|
|
do
|
|
{
|
|
base..ctor();
|
|
IEnumerator enumerator = seq.GetEnumerator();
|
|
if (enumerator == 0)
|
|
{
|
|
Asn1Sequence instance = Asn1Sequence.GetInstance(0);
|
|
this.professionItems = instance;
|
|
if (instance == 0)
|
|
{
|
|
goto IL_78;
|
|
}
|
|
if (instance == 0)
|
|
{
|
|
goto IL_55;
|
|
}
|
|
}
|
|
if (enumerator == 0)
|
|
{
|
|
continue;
|
|
}
|
|
while (enumerator == 0)
|
|
{
|
|
}
|
|
if (enumerator == 0)
|
|
{
|
|
continue;
|
|
}
|
|
NamingAuthority namingAuthority;
|
|
this.namingAuthority = namingAuthority;
|
|
Asn1Sequence asn1Sequence;
|
|
if (enumerator != 0)
|
|
{
|
|
this.professionOids = asn1Sequence;
|
|
}
|
|
IL_55:
|
|
if (asn1Sequence == 0)
|
|
{
|
|
if (asn1Sequence == 0)
|
|
{
|
|
continue;
|
|
}
|
|
Asn1OctetString asn1OctetString;
|
|
this.addProfessionInfo = asn1OctetString;
|
|
}
|
|
DerPrintableString derPrintableString;
|
|
string @string = derPrintableString.GetString();
|
|
this.registrationNumber = @string;
|
|
IL_78:
|
|
if (@string != 0)
|
|
{
|
|
if (@string != 0 && @string != 0)
|
|
{
|
|
string2 = DerPrintableString.GetInstance(@string).GetString();
|
|
this.registrationNumber = string2;
|
|
}
|
|
if (string2 == 0)
|
|
{
|
|
continue;
|
|
}
|
|
this.addProfessionInfo = string2;
|
|
}
|
|
if (string2 == 0)
|
|
{
|
|
return;
|
|
}
|
|
}
|
|
while (string2 == 0 || string2 == 0 || string2 == 0);
|
|
this.addProfessionInfo = string2;
|
|
}
|
|
|
|
// Token: 0x0600C71B RID: 50971 RVA: 0x002D8698 File Offset: 0x002D6898
|
|
[Token(Token = "0x600C71B")]
|
|
[Address(RVA = "0x2847370", Offset = "0x2846170", VA = "0x182847370")]
|
|
public ProfessionInfo(NamingAuthority namingAuthority, DirectoryString[] professionItems, DerObjectIdentifier[] professionOids, string registrationNumber, Asn1OctetString addProfessionInfo)
|
|
{
|
|
this.namingAuthority = namingAuthority;
|
|
DerSequence derSequence = new DerSequence(professionItems);
|
|
this.professionItems = derSequence;
|
|
if (professionOids != 0)
|
|
{
|
|
DerSequence derSequence2 = new DerSequence(professionOids);
|
|
this.professionOids = derSequence2;
|
|
}
|
|
this.registrationNumber = 0;
|
|
this.addProfessionInfo = 0;
|
|
}
|
|
|
|
// Token: 0x0600C71C RID: 50972 RVA: 0x002D86E0 File Offset: 0x002D68E0
|
|
[Token(Token = "0x600C71C")]
|
|
[Address(RVA = "0x2846290", Offset = "0x2845090", VA = "0x182846290", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this.Rechtsbeistand != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
NamingAuthority namingAuthority = this.namingAuthority;
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, namingAuthority);
|
|
num = 0;
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Asn1Sequence asn1Sequence = this.professionItems;
|
|
if (asn1Sequence != 0)
|
|
{
|
|
}
|
|
array2[0] = asn1Sequence;
|
|
asn1EncodableVector.Add(array2);
|
|
if (this.Steuerberater != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
Asn1Sequence asn1Sequence2 = this.professionOids;
|
|
if (asn1Sequence2 != 0)
|
|
{
|
|
}
|
|
array3[0] = asn1Sequence2;
|
|
asn1EncodableVector.Add(array3);
|
|
}
|
|
if (this.Steuerbevollmchtigte != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array4 = new Asn1Encodable[1];
|
|
DerPrintableString derPrintableString = new DerPrintableString(this.registrationNumber, true);
|
|
if (derPrintableString != 0)
|
|
{
|
|
}
|
|
array4[0] = derPrintableString;
|
|
asn1EncodableVector.Add(array4);
|
|
}
|
|
if (this.addProfessionInfo != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array5 = new Asn1Encodable[1];
|
|
Asn1OctetString asn1OctetString = this.addProfessionInfo;
|
|
if (asn1OctetString != 0)
|
|
{
|
|
}
|
|
array5[0] = asn1OctetString;
|
|
asn1EncodableVector.Add(array5);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x17001F1F RID: 7967
|
|
// (get) Token: 0x0600C71D RID: 50973 RVA: 0x002D87F8 File Offset: 0x002D69F8
|
|
[Token(Token = "0x17001F1F")]
|
|
public virtual Asn1OctetString AddProfessionInfo
|
|
{
|
|
[Token(Token = "0x600C71D")]
|
|
[Address(RVA = "0x3FA180", Offset = "0x3F8F80", VA = "0x1803FA180", Slot = "6")]
|
|
get
|
|
{
|
|
return this.addProfessionInfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F20 RID: 7968
|
|
// (get) Token: 0x0600C71E RID: 50974 RVA: 0x002D880C File Offset: 0x002D6A0C
|
|
[Token(Token = "0x17001F20")]
|
|
public virtual NamingAuthority NamingAuthority
|
|
{
|
|
[Token(Token = "0x600C71E")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20", Slot = "7")]
|
|
get
|
|
{
|
|
return this.namingAuthority;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C71F RID: 50975 RVA: 0x002D8820 File Offset: 0x002D6A20
|
|
[Token(Token = "0x600C71F")]
|
|
[Address(RVA = "0x2846010", Offset = "0x2844E10", VA = "0x182846010", Slot = "8")]
|
|
public virtual DirectoryString[] GetProfessionItems()
|
|
{
|
|
Asn1Sequence asn1Sequence = this.professionItems;
|
|
Asn1Encodable asn1Encodable;
|
|
DirectoryString[] array = new DirectoryString[asn1Encodable];
|
|
int num = 0;
|
|
Asn1Sequence asn1Sequence2 = this.professionItems;
|
|
Asn1Encodable asn1Encodable2;
|
|
if (num < asn1Encodable2)
|
|
{
|
|
Asn1SequenceParser parser = this.professionItems.Parser;
|
|
DirectoryString directoryString;
|
|
if (directoryString != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = directoryString;
|
|
Asn1Sequence asn1Sequence3 = this.professionItems;
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x0600C720 RID: 50976 RVA: 0x002D8878 File Offset: 0x002D6A78
|
|
[Token(Token = "0x600C720")]
|
|
[Address(RVA = "0x2846140", Offset = "0x2844F40", VA = "0x182846140", Slot = "9")]
|
|
public virtual DerObjectIdentifier[] GetProfessionOids()
|
|
{
|
|
if (this.professionOids == 0)
|
|
{
|
|
throw new NullReferenceException();
|
|
}
|
|
Asn1Encodable asn1Encodable;
|
|
DerObjectIdentifier[] array = new DerObjectIdentifier[asn1Encodable];
|
|
int num = 0;
|
|
Asn1Sequence asn1Sequence = this.professionOids;
|
|
Asn1Encodable asn1Encodable2;
|
|
if (num < asn1Encodable2)
|
|
{
|
|
Asn1SequenceParser parser = this.professionOids.Parser;
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
return array;
|
|
}
|
|
|
|
// Token: 0x17001F21 RID: 7969
|
|
// (get) Token: 0x0600C721 RID: 50977 RVA: 0x002D88D4 File Offset: 0x002D6AD4
|
|
[Token(Token = "0x17001F21")]
|
|
public virtual string RegistrationNumber
|
|
{
|
|
[Token(Token = "0x600C721")]
|
|
[Address(RVA = "0x3F63E0", Offset = "0x3F51E0", VA = "0x1803F63E0", Slot = "10")]
|
|
get
|
|
{
|
|
return this.registrationNumber;
|
|
}
|
|
}
|
|
|
|
// Token: 0x04007EC2 RID: 32450
|
|
[Token(Token = "0x4007EC2")]
|
|
public static readonly DerObjectIdentifier Rechtsanwltin = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".1");
|
|
|
|
// Token: 0x04007EC3 RID: 32451
|
|
[Token(Token = "0x4007EC3")]
|
|
public static readonly DerObjectIdentifier Rechtsanwalt = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".2");
|
|
|
|
// Token: 0x04007EC4 RID: 32452
|
|
[Token(Token = "0x4007EC4")]
|
|
public static readonly DerObjectIdentifier Rechtsbeistand = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".3");
|
|
|
|
// Token: 0x04007EC5 RID: 32453
|
|
[Token(Token = "0x4007EC5")]
|
|
public static readonly DerObjectIdentifier Steuerberaterin = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".4");
|
|
|
|
// Token: 0x04007EC6 RID: 32454
|
|
[Token(Token = "0x4007EC6")]
|
|
public static readonly DerObjectIdentifier Steuerberater = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".5");
|
|
|
|
// Token: 0x04007EC7 RID: 32455
|
|
[Token(Token = "0x4007EC7")]
|
|
public static readonly DerObjectIdentifier Steuerbevollmchtigte = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".6");
|
|
|
|
// Token: 0x04007EC8 RID: 32456
|
|
[Token(Token = "0x4007EC8")]
|
|
public static readonly DerObjectIdentifier Steuerbevollmchtigter = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".7");
|
|
|
|
// Token: 0x04007EC9 RID: 32457
|
|
[Token(Token = "0x4007EC9")]
|
|
public static readonly DerObjectIdentifier Notarin = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".8");
|
|
|
|
// Token: 0x04007ECA RID: 32458
|
|
[Token(Token = "0x4007ECA")]
|
|
public static readonly DerObjectIdentifier Notar = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".9");
|
|
|
|
// Token: 0x04007ECB RID: 32459
|
|
[Token(Token = "0x4007ECB")]
|
|
public static readonly DerObjectIdentifier Notarvertreterin = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".10");
|
|
|
|
// Token: 0x04007ECC RID: 32460
|
|
[Token(Token = "0x4007ECC")]
|
|
public static readonly DerObjectIdentifier Notarvertreter = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".11");
|
|
|
|
// Token: 0x04007ECD RID: 32461
|
|
[Token(Token = "0x4007ECD")]
|
|
public static readonly DerObjectIdentifier Notariatsverwalterin = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".12");
|
|
|
|
// Token: 0x04007ECE RID: 32462
|
|
[Token(Token = "0x4007ECE")]
|
|
public static readonly DerObjectIdentifier Notariatsverwalter = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".13");
|
|
|
|
// Token: 0x04007ECF RID: 32463
|
|
[Token(Token = "0x4007ECF")]
|
|
public static readonly DerObjectIdentifier Wirtschaftsprferin = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".14");
|
|
|
|
// Token: 0x04007ED0 RID: 32464
|
|
[Token(Token = "0x4007ED0")]
|
|
public static readonly DerObjectIdentifier Wirtschaftsprfer = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".15");
|
|
|
|
// Token: 0x04007ED1 RID: 32465
|
|
[Token(Token = "0x4007ED1")]
|
|
public static readonly DerObjectIdentifier VereidigteBuchprferin = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".16");
|
|
|
|
// Token: 0x04007ED2 RID: 32466
|
|
[Token(Token = "0x4007ED2")]
|
|
public static readonly DerObjectIdentifier VereidigterBuchprfer = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".17");
|
|
|
|
// Token: 0x04007ED3 RID: 32467
|
|
[Token(Token = "0x4007ED3")]
|
|
public static readonly DerObjectIdentifier Patentanwltin = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".18");
|
|
|
|
// Token: 0x04007ED4 RID: 32468
|
|
[Token(Token = "0x4007ED4")]
|
|
public static readonly DerObjectIdentifier Patentanwalt = new DerObjectIdentifier(NamingAuthority.IdIsisMttATNamingAuthoritiesRechtWirtschaftSteuern + ".19");
|
|
|
|
// Token: 0x04007ED5 RID: 32469
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007ED5")]
|
|
private readonly NamingAuthority namingAuthority;
|
|
|
|
// Token: 0x04007ED6 RID: 32470
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007ED6")]
|
|
private readonly Asn1Sequence professionItems;
|
|
|
|
// Token: 0x04007ED7 RID: 32471
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007ED7")]
|
|
private readonly Asn1Sequence professionOids;
|
|
|
|
// Token: 0x04007ED8 RID: 32472
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4007ED8")]
|
|
private readonly string registrationNumber;
|
|
|
|
// Token: 0x04007ED9 RID: 32473
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4007ED9")]
|
|
private readonly Asn1OctetString addProfessionInfo;
|
|
}
|
|
}
|