Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

162 lines
9.1 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x02001EE0 RID: 7904
[Token(Token = "0x2001EE0")]
public class DisplayText : Asn1Encodable, IAsn1Choice
{
// Token: 0x0600C61D RID: 50717 RVA: 0x002CBFC4 File Offset: 0x002CA1C4
[Token(Token = "0x600C61D")]
[Address(RVA = "0x2D8ADE0", Offset = "0x2D89DE0", VA = "0x182D8ADE0")]
public DisplayText(int type, string text)
{
if (text.m_stringLength > 200)
{
int num = 0;
uint num2;
string text2 = text.Substring(num, (int)num2);
}
this.contentType = type;
if (type != 0)
{
if (type != 0)
{
if (type != 0 && type == 1)
{
DerVisibleString derVisibleString = new DerVisibleString(text);
this.contents = derVisibleString;
return;
}
DerUtf8String derUtf8String = new DerUtf8String(text);
}
DerBmpString derBmpString = new DerBmpString(text);
}
DerIA5String derIA5String = new DerIA5String(text);
throw new NullReferenceException();
}
// Token: 0x0600C61E RID: 50718 RVA: 0x002CC034 File Offset: 0x002CA234
[Token(Token = "0x600C61E")]
[Address(RVA = "0x2D8AEF0", Offset = "0x2D89EF0", VA = "0x182D8AEF0")]
public DisplayText(string text)
{
if (text.m_stringLength > 200)
{
int num = 0;
string text2 = text.Substring(num, 200);
}
this.contentType = (int)((ulong)2L);
DerUtf8String derUtf8String = new DerUtf8String(text);
this.contents = derUtf8String;
}
// Token: 0x0600C61F RID: 50719 RVA: 0x002CC080 File Offset: 0x002CA280
[Token(Token = "0x600C61F")]
[Address(RVA = "0xA1AEE0", Offset = "0xA19EE0", VA = "0x180A1AEE0")]
public DisplayText(IAsn1String contents)
{
this.contents = contents;
}
// Token: 0x0600C620 RID: 50720 RVA: 0x002CC09C File Offset: 0x002CA29C
[Token(Token = "0x600C620")]
[Address(RVA = "0x2D8AAF0", Offset = "0x2D89AF0", VA = "0x182D8AAF0")]
public static DisplayText GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C620)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DisplayText BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DisplayText::GetInstance(System.Object)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_21:
stloc:string(var_3_27, call:string(Platform::GetTypeName, ldloc:object(obj)))
stloc:ArgumentException(var_4_3D, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_3_27)), 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: 0x0600C621 RID: 50721 RVA: 0x002CC0E8 File Offset: 0x002CA2E8
[Token(Token = "0x600C621")]
[Address(RVA = "0x2D8AD60", Offset = "0x2D89D60", VA = "0x182D8AD60", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600C621)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.DisplayText::ToAsn1Object()
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_0F:
brtrue(IL_0F, cne:bool(ldloc:IAsn1String(var_0_06), ldc.i4:int32[exp:IAsn1String](0)))
}
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: 0x0600C622 RID: 50722 RVA: 0x002CC108 File Offset: 0x002CA308
[Token(Token = "0x600C622")]
[Address(RVA = "0x2D8ACB0", Offset = "0x2D89CB0", VA = "0x182D8ACB0")]
public string GetString()
{
IAsn1String asn1String = this.contents;
int num = 0;
num += num;
num++;
return asn1String.GetString();
}
// Token: 0x04007C40 RID: 31808
[Token(Token = "0x4007C40")]
public const int ContentTypeIA5String = 0;
// Token: 0x04007C41 RID: 31809
[Token(Token = "0x4007C41")]
public const int ContentTypeBmpString = 1;
// Token: 0x04007C42 RID: 31810
[Token(Token = "0x4007C42")]
public const int ContentTypeUtf8String = 2;
// Token: 0x04007C43 RID: 31811
[Token(Token = "0x4007C43")]
public const int ContentTypeVisibleString = 3;
// Token: 0x04007C44 RID: 31812
[Token(Token = "0x4007C44")]
public const int DisplayTextMaximumSize = 200;
// Token: 0x04007C45 RID: 31813
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007C45")]
internal readonly int contentType;
// Token: 0x04007C46 RID: 31814
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007C46")]
internal readonly IAsn1String contents;
}
}