87 lines
4.3 KiB
C#
87 lines
4.3 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.X509
|
|
{
|
|
// Token: 0x02001909 RID: 6409
|
|
[Token(Token = "0x2001909")]
|
|
public class X509KeyUsage : Asn1Encodable
|
|
{
|
|
// Token: 0x06009714 RID: 38676 RVA: 0x001F1F40 File Offset: 0x001F0140
|
|
[Token(Token = "0x6009714")]
|
|
[Address(RVA = "0x4D83A0", Offset = "0x4D71A0", VA = "0x1804D83A0")]
|
|
public X509KeyUsage(int usage)
|
|
{
|
|
this.usage = usage;
|
|
}
|
|
|
|
// Token: 0x06009715 RID: 38677 RVA: 0x001F1F5C File Offset: 0x001F015C
|
|
[Token(Token = "0x6009715")]
|
|
[Address(RVA = "0x16324A0", Offset = "0x16312A0", VA = "0x1816324A0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06009715)
|
|
|
|
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 1660
|
|
*/;
|
|
}
|
|
|
|
// Token: 0x0400669A RID: 26266
|
|
[Token(Token = "0x400669A")]
|
|
public const int DigitalSignature = 128;
|
|
|
|
// Token: 0x0400669B RID: 26267
|
|
[Token(Token = "0x400669B")]
|
|
public const int NonRepudiation = 64;
|
|
|
|
// Token: 0x0400669C RID: 26268
|
|
[Token(Token = "0x400669C")]
|
|
public const int KeyEncipherment = 32;
|
|
|
|
// Token: 0x0400669D RID: 26269
|
|
[Token(Token = "0x400669D")]
|
|
public const int DataEncipherment = 16;
|
|
|
|
// Token: 0x0400669E RID: 26270
|
|
[Token(Token = "0x400669E")]
|
|
public const int KeyAgreement = 8;
|
|
|
|
// Token: 0x0400669F RID: 26271
|
|
[Token(Token = "0x400669F")]
|
|
public const int KeyCertSign = 4;
|
|
|
|
// Token: 0x040066A0 RID: 26272
|
|
[Token(Token = "0x40066A0")]
|
|
public const int CrlSign = 2;
|
|
|
|
// Token: 0x040066A1 RID: 26273
|
|
[Token(Token = "0x40066A1")]
|
|
public const int EncipherOnly = 1;
|
|
|
|
// Token: 0x040066A2 RID: 26274
|
|
[Token(Token = "0x40066A2")]
|
|
public const int DecipherOnly = 32768;
|
|
|
|
// Token: 0x040066A3 RID: 26275
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40066A3")]
|
|
private readonly int usage;
|
|
}
|
|
}
|