89 lines
4.4 KiB
C#
89 lines
4.4 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509
|
|
{
|
|
// Token: 0x0200132C RID: 4908
|
|
[Token(Token = "0x200132C")]
|
|
[StructLayout(3)]
|
|
public class X509KeyUsage : Asn1Encodable
|
|
{
|
|
// Token: 0x06007B3A RID: 31546 RVA: 0x0019A584 File Offset: 0x00198784
|
|
[Token(Token = "0x6007B3A")]
|
|
[Address(RVA = "0x537730", Offset = "0x536130", VA = "0x180537730")]
|
|
public X509KeyUsage(int usage)
|
|
{
|
|
this.usage = usage;
|
|
}
|
|
|
|
// Token: 0x06007B3B RID: 31547 RVA: 0x0019A5A0 File Offset: 0x001987A0
|
|
[Token(Token = "0x6007B3B")]
|
|
[Address(RVA = "0x5376D0", Offset = "0x5360D0", VA = "0x1805376D0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007B3B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.X509.X509KeyUsage::ToAsn1Object()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:KeyUsage(var_0_0B, newobj:KeyUsage(KeyUsage::.ctor, ldfld:int32(X509KeyUsage::usage, ldloc:X509KeyUsage(this))))
|
|
}
|
|
|
|
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: 0x04005857 RID: 22615
|
|
[Token(Token = "0x4005857")]
|
|
public const int DigitalSignature = 128;
|
|
|
|
// Token: 0x04005858 RID: 22616
|
|
[Token(Token = "0x4005858")]
|
|
public const int NonRepudiation = 64;
|
|
|
|
// Token: 0x04005859 RID: 22617
|
|
[Token(Token = "0x4005859")]
|
|
public const int KeyEncipherment = 32;
|
|
|
|
// Token: 0x0400585A RID: 22618
|
|
[Token(Token = "0x400585A")]
|
|
public const int DataEncipherment = 16;
|
|
|
|
// Token: 0x0400585B RID: 22619
|
|
[Token(Token = "0x400585B")]
|
|
public const int KeyAgreement = 8;
|
|
|
|
// Token: 0x0400585C RID: 22620
|
|
[Token(Token = "0x400585C")]
|
|
public const int KeyCertSign = 4;
|
|
|
|
// Token: 0x0400585D RID: 22621
|
|
[Token(Token = "0x400585D")]
|
|
public const int CrlSign = 2;
|
|
|
|
// Token: 0x0400585E RID: 22622
|
|
[Token(Token = "0x400585E")]
|
|
public const int EncipherOnly = 1;
|
|
|
|
// Token: 0x0400585F RID: 22623
|
|
[Token(Token = "0x400585F")]
|
|
public const int DecipherOnly = 32768;
|
|
|
|
// Token: 0x04005860 RID: 22624
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4005860")]
|
|
private readonly int usage;
|
|
}
|
|
}
|