m
This commit is contained in:
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509
|
||||
{
|
||||
// Token: 0x020019E9 RID: 6633
|
||||
[Token(Token = "0x20019E9")]
|
||||
public class X509KeyUsage : Asn1Encodable
|
||||
{
|
||||
// Token: 0x06009AE2 RID: 39650 RVA: 0x001FAFD8 File Offset: 0x001F91D8
|
||||
[Token(Token = "0x6009AE2")]
|
||||
[Address(RVA = "0x41F8E0", Offset = "0x41E8E0", VA = "0x18041F8E0")]
|
||||
public X509KeyUsage(int usage)
|
||||
{
|
||||
this.usage = usage;
|
||||
}
|
||||
|
||||
// Token: 0x06009AE3 RID: 39651 RVA: 0x001FAFF4 File Offset: 0x001F91F4
|
||||
[Token(Token = "0x6009AE3")]
|
||||
[Address(RVA = "0x41F880", Offset = "0x41E880", VA = "0x18041F880", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (06009AE3)
|
||||
|
||||
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: 0x04006853 RID: 26707
|
||||
[Token(Token = "0x4006853")]
|
||||
public const int DigitalSignature = 128;
|
||||
|
||||
// Token: 0x04006854 RID: 26708
|
||||
[Token(Token = "0x4006854")]
|
||||
public const int NonRepudiation = 64;
|
||||
|
||||
// Token: 0x04006855 RID: 26709
|
||||
[Token(Token = "0x4006855")]
|
||||
public const int KeyEncipherment = 32;
|
||||
|
||||
// Token: 0x04006856 RID: 26710
|
||||
[Token(Token = "0x4006856")]
|
||||
public const int DataEncipherment = 16;
|
||||
|
||||
// Token: 0x04006857 RID: 26711
|
||||
[Token(Token = "0x4006857")]
|
||||
public const int KeyAgreement = 8;
|
||||
|
||||
// Token: 0x04006858 RID: 26712
|
||||
[Token(Token = "0x4006858")]
|
||||
public const int KeyCertSign = 4;
|
||||
|
||||
// Token: 0x04006859 RID: 26713
|
||||
[Token(Token = "0x4006859")]
|
||||
public const int CrlSign = 2;
|
||||
|
||||
// Token: 0x0400685A RID: 26714
|
||||
[Token(Token = "0x400685A")]
|
||||
public const int EncipherOnly = 1;
|
||||
|
||||
// Token: 0x0400685B RID: 26715
|
||||
[Token(Token = "0x400685B")]
|
||||
public const int DecipherOnly = 32768;
|
||||
|
||||
// Token: 0x0400685C RID: 26716
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400685C")]
|
||||
private readonly int usage;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user