189 lines
7.0 KiB
C#
189 lines
7.0 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x0200182B RID: 6187
|
|
[Token(Token = "0x200182B")]
|
|
[StructLayout(3)]
|
|
public class IetfAttrSyntax : Asn1Encodable
|
|
{
|
|
// Token: 0x0600A6C8 RID: 42696 RVA: 0x0026CAE8 File Offset: 0x0026ACE8
|
|
[Token(Token = "0x600A6C8")]
|
|
[Address(RVA = "0x2B08490", Offset = "0x2B06E90", VA = "0x182B08490")]
|
|
public IetfAttrSyntax(Asn1Sequence seq)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600A6C8)
|
|
|
|
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_11C:
|
|
stloc:ArgumentException(var_27_126, 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: 0x17001A12 RID: 6674
|
|
// (get) Token: 0x0600A6C9 RID: 42697 RVA: 0x0026CC1C File Offset: 0x0026AE1C
|
|
[Token(Token = "0x17001A12")]
|
|
public GeneralNames PolicyAuthority
|
|
{
|
|
[Token(Token = "0x600A6C9")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
|
get
|
|
{
|
|
return this.policyAuthority;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001A13 RID: 6675
|
|
// (get) Token: 0x0600A6CA RID: 42698 RVA: 0x0026CC30 File Offset: 0x0026AE30
|
|
[Token(Token = "0x17001A13")]
|
|
public int ValueType
|
|
{
|
|
[Token(Token = "0x600A6CA")]
|
|
[Address(RVA = "0x4FBD40", Offset = "0x4FA740", VA = "0x1804FBD40")]
|
|
get
|
|
{
|
|
return this.valueChoice;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600A6CB RID: 42699 RVA: 0x0026CC44 File Offset: 0x0026AE44
|
|
[Token(Token = "0x600A6CB")]
|
|
[Address(RVA = "0x2B07E60", Offset = "0x2B06860", VA = "0x182B07E60")]
|
|
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: 0x0600A6CC RID: 42700 RVA: 0x0026CD88 File Offset: 0x0026AF88
|
|
[Token(Token = "0x600A6CC")]
|
|
[Address(RVA = "0x2B082A0", Offset = "0x2B06CA0", VA = "0x182B082A0", 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: 0x04006C67 RID: 27751
|
|
[Token(Token = "0x4006C67")]
|
|
public const int ValueOctets = 1;
|
|
|
|
// Token: 0x04006C68 RID: 27752
|
|
[Token(Token = "0x4006C68")]
|
|
public const int ValueOid = 2;
|
|
|
|
// Token: 0x04006C69 RID: 27753
|
|
[Token(Token = "0x4006C69")]
|
|
public const int ValueUtf8 = 3;
|
|
|
|
// Token: 0x04006C6A RID: 27754
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4006C6A")]
|
|
internal readonly GeneralNames policyAuthority;
|
|
|
|
// Token: 0x04006C6B RID: 27755
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4006C6B")]
|
|
internal readonly Asn1EncodableVector values;
|
|
|
|
// Token: 0x04006C6C RID: 27756
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4006C6C")]
|
|
internal int valueChoice;
|
|
}
|
|
}
|