182 lines
8.9 KiB
C#
182 lines
8.9 KiB
C#
using System;
|
|
using System.Collections;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x0200203C RID: 8252
|
|
[Token(Token = "0x200203C")]
|
|
public class PkiFreeText : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CEDC RID: 52956 RVA: 0x002F0D50 File Offset: 0x002EEF50
|
|
[Token(Token = "0x600CEDC")]
|
|
[Address(RVA = "0x2FEC070", Offset = "0x2FEB070", VA = "0x182FEC070")]
|
|
public static PkiFreeText GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return PkiFreeText.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600CEDD RID: 52957 RVA: 0x002F0D6C File Offset: 0x002EEF6C
|
|
[Token(Token = "0x600CEDD")]
|
|
[Address(RVA = "0x2FEC090", Offset = "0x2FEB090", VA = "0x182FEC090")]
|
|
public static PkiFreeText GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CEDD)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_22:
|
|
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_28)), ldstr:string("obj")))
|
|
}
|
|
|
|
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: 0x0600CEDE RID: 52958 RVA: 0x002F0DBC File Offset: 0x002EEFBC
|
|
[Token(Token = "0x600CEDE")]
|
|
[Address(RVA = "0x2FEC330", Offset = "0x2FEB330", VA = "0x182FEC330")]
|
|
public PkiFreeText(Asn1Sequence seq)
|
|
{
|
|
int num;
|
|
do
|
|
{
|
|
num = 0;
|
|
base..ctor();
|
|
IEnumerator enumerator = seq.GetEnumerator();
|
|
if (enumerator != 0 && (enumerator == 0 || enumerator == 0))
|
|
{
|
|
goto IL_33;
|
|
}
|
|
if (enumerator != 0)
|
|
{
|
|
}
|
|
}
|
|
while (num != 0);
|
|
this.strings = seq;
|
|
return;
|
|
IL_33:
|
|
ArgumentException ex = new ArgumentException("attempt to insert non UTF8 STRING into PkiFreeText");
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CEDF RID: 52959 RVA: 0x002F0E0C File Offset: 0x002EF00C
|
|
[Token(Token = "0x600CEDF")]
|
|
[Address(RVA = "0x2FEC4E0", Offset = "0x2FEB4E0", VA = "0x182FEC4E0")]
|
|
public PkiFreeText(DerUtf8String p)
|
|
{
|
|
DerSequence derSequence = new DerSequence(p);
|
|
this.strings = derSequence;
|
|
}
|
|
|
|
// Token: 0x170020D2 RID: 8402
|
|
// (get) Token: 0x0600CEE0 RID: 52960 RVA: 0x002F0E30 File Offset: 0x002EF030
|
|
[Token(Token = "0x170020D2")]
|
|
[Obsolete]
|
|
public int Size
|
|
{
|
|
[Token(Token = "0x600CEE0")]
|
|
[Address(RVA = "0x4DAE40", Offset = "0x4D9E40", VA = "0x1804DAE40")]
|
|
get
|
|
{
|
|
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020D3 RID: 8403
|
|
// (get) Token: 0x0600CEE1 RID: 52961 RVA: 0x002F0E50 File Offset: 0x002EF050
|
|
[Token(Token = "0x170020D3")]
|
|
public int Count
|
|
{
|
|
[Token(Token = "0x600CEE1")]
|
|
[Address(RVA = "0x4DAE40", Offset = "0x4D9E40", VA = "0x1804DAE40")]
|
|
get
|
|
{
|
|
IEnumerator enumerator = ((IEnumerable)this.strings).GetEnumerator();
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020D4 RID: 8404
|
|
[Token(Token = "0x170020D4")]
|
|
public DerUtf8String this[int index]
|
|
{
|
|
[Token(Token = "0x600CEE2")]
|
|
[Address(RVA = "0x2FEC280", Offset = "0x2FEB280", VA = "0x182FEC280")]
|
|
get
|
|
{
|
|
Asn1SequenceParser parser;
|
|
do
|
|
{
|
|
parser = this.strings.Parser;
|
|
if (parser == 0)
|
|
{
|
|
}
|
|
}
|
|
while (parser == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CEE3 RID: 52963 RVA: 0x002F0E98 File Offset: 0x002EF098
|
|
[Token(Token = "0x600CEE3")]
|
|
[Address(RVA = "0x2FEC280", Offset = "0x2FEB280", VA = "0x182FEC280")]
|
|
[Obsolete]
|
|
public DerUtf8String GetStringAt(int index)
|
|
{
|
|
Asn1SequenceParser parser;
|
|
do
|
|
{
|
|
parser = this.strings.Parser;
|
|
if (parser == 0)
|
|
{
|
|
}
|
|
}
|
|
while (parser == 0);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600CEE4 RID: 52964 RVA: 0x002F0EC0 File Offset: 0x002EF0C0
|
|
[Token(Token = "0x600CEE4")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CEE4)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiFreeText::ToAsn1Object()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
Block_0:
|
|
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(PkiFreeText::strings, ldloc:PkiFreeText(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: 0x04008324 RID: 33572
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008324")]
|
|
internal Asn1Sequence strings;
|
|
}
|
|
}
|