187 lines
6.9 KiB
C#
187 lines
6.9 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001EE8 RID: 7912
|
|
[Token(Token = "0x2001EE8")]
|
|
public class IetfAttrSyntax : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C670 RID: 50800 RVA: 0x002CD908 File Offset: 0x002CBB08
|
|
[Token(Token = "0x600C670")]
|
|
[Address(RVA = "0x2E7D260", Offset = "0x2E7C260", VA = "0x182E7D260")]
|
|
public IetfAttrSyntax(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C670)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.IetfAttrSyntax::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_118:
|
|
stloc:ArgumentException(var_27_122, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Non-IetfAttrSyntax encoding")))
|
|
}
|
|
|
|
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: 0x17001EB0 RID: 7856
|
|
// (get) Token: 0x0600C671 RID: 50801 RVA: 0x002CDA38 File Offset: 0x002CBC38
|
|
[Token(Token = "0x17001EB0")]
|
|
public GeneralNames PolicyAuthority
|
|
{
|
|
[Token(Token = "0x600C671")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.policyAuthority;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001EB1 RID: 7857
|
|
// (get) Token: 0x0600C672 RID: 50802 RVA: 0x002CDA4C File Offset: 0x002CBC4C
|
|
[Token(Token = "0x17001EB1")]
|
|
public int ValueType
|
|
{
|
|
[Token(Token = "0x600C672")]
|
|
[Address(RVA = "0x470B70", Offset = "0x46FB70", VA = "0x180470B70")]
|
|
get
|
|
{
|
|
return this.valueChoice;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C673 RID: 50803 RVA: 0x002CDA60 File Offset: 0x002CBC60
|
|
[Token(Token = "0x600C673")]
|
|
[Address(RVA = "0x2E7CC30", Offset = "0x2E7BC30", VA = "0x182E7CC30")]
|
|
public object[] GetValues()
|
|
{
|
|
Asn1OctetString[] array3;
|
|
int num10;
|
|
Asn1Encodable asn1Encodable3;
|
|
do
|
|
{
|
|
int num = this.valueChoice;
|
|
Asn1EncodableVector asn1EncodableVector = this.values;
|
|
if (num != 1)
|
|
{
|
|
if (num != 2)
|
|
{
|
|
DerUtf8String[] array = new DerUtf8String[asn1EncodableVector.Count];
|
|
int num2 = 0;
|
|
int num3 = 0;
|
|
if (num3 == array.Length)
|
|
{
|
|
goto IL_131;
|
|
}
|
|
Asn1Encodable asn1Encodable = this.values[num2];
|
|
if (asn1Encodable != 0 && (asn1Encodable == 0 || asn1Encodable == 0))
|
|
{
|
|
continue;
|
|
}
|
|
int num4 = 0;
|
|
num2++;
|
|
array[0] = num4;
|
|
}
|
|
int num5;
|
|
DerObjectIdentifier[] array2 = new DerObjectIdentifier[num5];
|
|
int num6 = 0;
|
|
int num7 = 0;
|
|
if (num7 == array2.Length)
|
|
{
|
|
goto IL_131;
|
|
}
|
|
Asn1Encodable asn1Encodable2 = this.values[num6];
|
|
if (asn1Encodable2 != 0 && (asn1Encodable2 == 0 || asn1Encodable2 == 0))
|
|
{
|
|
continue;
|
|
}
|
|
int num8 = 0;
|
|
num6++;
|
|
array2[0] = num8;
|
|
}
|
|
int num9;
|
|
array3 = new Asn1OctetString[num9];
|
|
num10 = 0;
|
|
int num11 = 0;
|
|
if (num11 == array3.Length)
|
|
{
|
|
goto IL_131;
|
|
}
|
|
asn1Encodable3 = this.values[num10];
|
|
}
|
|
while (asn1Encodable3 != 0 && (asn1Encodable3 == 0 || asn1Encodable3 == 0));
|
|
int num12 = 0;
|
|
num10++;
|
|
array3[0] = num12;
|
|
IL_131:
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600C674 RID: 50804 RVA: 0x002CDBA4 File Offset: 0x002CBDA4
|
|
[Token(Token = "0x600C674")]
|
|
[Address(RVA = "0x2E7D070", Offset = "0x2E7C070", VA = "0x182E7D070", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this.policyAuthority != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
GeneralNames generalNames = this.policyAuthority;
|
|
int num;
|
|
DerTaggedObject derTaggedObject = new DerTaggedObject(num, generalNames);
|
|
num = 0;
|
|
if (derTaggedObject != 0)
|
|
{
|
|
}
|
|
array[0] = derTaggedObject;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
DerSequence derSequence = new DerSequence(this.values);
|
|
if (derSequence != 0)
|
|
{
|
|
}
|
|
array2[0] = derSequence;
|
|
asn1EncodableVector.Add(array2);
|
|
DerSequence derSequence2 = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007C63 RID: 31843
|
|
[Token(Token = "0x4007C63")]
|
|
public const int ValueOctets = 1;
|
|
|
|
// Token: 0x04007C64 RID: 31844
|
|
[Token(Token = "0x4007C64")]
|
|
public const int ValueOid = 2;
|
|
|
|
// Token: 0x04007C65 RID: 31845
|
|
[Token(Token = "0x4007C65")]
|
|
public const int ValueUtf8 = 3;
|
|
|
|
// Token: 0x04007C66 RID: 31846
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007C66")]
|
|
internal readonly GeneralNames policyAuthority;
|
|
|
|
// Token: 0x04007C67 RID: 31847
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007C67")]
|
|
internal readonly Asn1EncodableVector values;
|
|
|
|
// Token: 0x04007C68 RID: 31848
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007C68")]
|
|
internal int valueChoice;
|
|
}
|
|
}
|