m
This commit is contained in:
+117
@@ -0,0 +1,117 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001F10 RID: 7952
|
||||
[Token(Token = "0x2001F10")]
|
||||
public class X509ExtensionsGenerator
|
||||
{
|
||||
// Token: 0x0600C7A6 RID: 51110 RVA: 0x002D27BC File Offset: 0x002D09BC
|
||||
[Token(Token = "0x600C7A6")]
|
||||
[Address(RVA = "0x2E8ED50", Offset = "0x2E8DD50", VA = "0x182E8ED50")]
|
||||
public void Reset()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.extensions = dictionary;
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.extOrdering = list;
|
||||
}
|
||||
|
||||
// Token: 0x0600C7A7 RID: 51111 RVA: 0x002D27E8 File Offset: 0x002D09E8
|
||||
[Token(Token = "0x600C7A7")]
|
||||
[Address(RVA = "0x2E8E990", Offset = "0x2E8D990", VA = "0x182E8E990")]
|
||||
public void AddExtension(DerObjectIdentifier oid, bool critical, Asn1Encodable extValue)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C7A7)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509ExtensionsGenerator::AddExtension(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.DerObjectIdentifier,System.Boolean,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Encodable)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_55:
|
||||
stloc:ArgumentException(var_10_6A, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string[exp:object]("extension "), ldloc:DerObjectIdentifier[exp:object](oid), ldstr:string[exp:object](" already added"))))
|
||||
}
|
||||
|
||||
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
|
||||
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
|
||||
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: 0x0600C7A8 RID: 51112 RVA: 0x002D2860 File Offset: 0x002D0A60
|
||||
[Token(Token = "0x600C7A8")]
|
||||
[Address(RVA = "0x2E8EB80", Offset = "0x2E8DB80", VA = "0x182E8EB80")]
|
||||
public void AddExtension(DerObjectIdentifier oid, bool critical, byte[] extValue)
|
||||
{
|
||||
IDictionary dictionary = this.extensions;
|
||||
IList list = this.extOrdering;
|
||||
IDictionary dictionary2 = this.extensions;
|
||||
DerOctetString derOctetString = new DerOctetString(extValue);
|
||||
int num = 0;
|
||||
int num2 = 0;
|
||||
X509Extension x509Extension;
|
||||
x509Extension.FieldGetter(num2, num, oid);
|
||||
x509Extension.critical = critical;
|
||||
x509Extension.value = derOctetString;
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x17001EFA RID: 7930
|
||||
// (get) Token: 0x0600C7A9 RID: 51113 RVA: 0x002D28C8 File Offset: 0x002D0AC8
|
||||
[Token(Token = "0x17001EFA")]
|
||||
public bool IsEmpty
|
||||
{
|
||||
[Token(Token = "0x600C7A9")]
|
||||
[Address(RVA = "0x2E8EE20", Offset = "0x2E8DE20", VA = "0x182E8EE20")]
|
||||
get
|
||||
{
|
||||
IList list = this.extOrdering;
|
||||
bool flag;
|
||||
return flag;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C7AA RID: 51114 RVA: 0x002D28E4 File Offset: 0x002D0AE4
|
||||
[Token(Token = "0x600C7AA")]
|
||||
[Address(RVA = "0x2E8ECE0", Offset = "0x2E8DCE0", VA = "0x182E8ECE0")]
|
||||
public X509Extensions Generate()
|
||||
{
|
||||
IList list = this.extOrdering;
|
||||
IDictionary dictionary = this.extensions;
|
||||
return new X509Extensions(list, dictionary);
|
||||
}
|
||||
|
||||
// Token: 0x0600C7AB RID: 51115 RVA: 0x002D2908 File Offset: 0x002D0B08
|
||||
[Token(Token = "0x600C7AB")]
|
||||
[Address(RVA = "0x2E8EDB0", Offset = "0x2E8DDB0", VA = "0x182E8EDB0")]
|
||||
public X509ExtensionsGenerator()
|
||||
{
|
||||
IDictionary dictionary = Platform.CreateHashtable();
|
||||
this.extensions = dictionary;
|
||||
IList list = Platform.CreateArrayList();
|
||||
this.extOrdering = list;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x04007D23 RID: 32035
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007D23")]
|
||||
private IDictionary extensions;
|
||||
|
||||
// Token: 0x04007D24 RID: 32036
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007D24")]
|
||||
private IList extOrdering;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user