Files
Aug2021-Cpp2IL-Dump/Assembly-CSharp/BestHTTP/SecureProtocol/Org/BouncyCastle/Asn1/X509/DisplayText.cs
T
2026-04-10 22:50:51 +02:00

162 lines
9.1 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
{
// Token: 0x02001E00 RID: 7680
[Token(Token = "0x2001E00")]
public class DisplayText : Asn1Encodable, IAsn1Choice
{
// Token: 0x0600C24F RID: 49743 RVA: 0x002C3768 File Offset: 0x002C1968
[Token(Token = "0x600C24F")]
[Address(RVA = "0x2726B80", Offset = "0x2725980", VA = "0x182726B80")]
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: 0x0600C250 RID: 49744 RVA: 0x002C37D8 File Offset: 0x002C19D8
[Token(Token = "0x600C250")]
[Address(RVA = "0x2726C90", Offset = "0x2725A90", VA = "0x182726C90")]
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: 0x0600C251 RID: 49745 RVA: 0x002C3824 File Offset: 0x002C1A24
[Token(Token = "0x600C251")]
[Address(RVA = "0x4F28D0", Offset = "0x4F16D0", VA = "0x1804F28D0")]
public DisplayText(IAsn1String contents)
{
this.contents = contents;
}
// Token: 0x0600C252 RID: 49746 RVA: 0x002C3840 File Offset: 0x002C1A40
[Token(Token = "0x600C252")]
[Address(RVA = "0x2726890", Offset = "0x2725690", VA = "0x182726890")]
public static DisplayText GetInstance(object obj)
{
/*
An exception occurred when decompiling this method (0600C252)
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: 0x0600C253 RID: 49747 RVA: 0x002C388C File Offset: 0x002C1A8C
[Token(Token = "0x600C253")]
[Address(RVA = "0x2726B00", Offset = "0x2725900", VA = "0x182726B00", Slot = "5")]
public override Asn1Object ToAsn1Object()
{
/*
An exception occurred when decompiling this method (0600C253)
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: 0x0600C254 RID: 49748 RVA: 0x002C38AC File Offset: 0x002C1AAC
[Token(Token = "0x600C254")]
[Address(RVA = "0x2726A50", Offset = "0x2725850", VA = "0x182726A50")]
public string GetString()
{
IAsn1String asn1String = this.contents;
int num = 0;
num += num;
num++;
return asn1String.GetString();
}
// Token: 0x04007A87 RID: 31367
[Token(Token = "0x4007A87")]
public const int ContentTypeIA5String = 0;
// Token: 0x04007A88 RID: 31368
[Token(Token = "0x4007A88")]
public const int ContentTypeBmpString = 1;
// Token: 0x04007A89 RID: 31369
[Token(Token = "0x4007A89")]
public const int ContentTypeUtf8String = 2;
// Token: 0x04007A8A RID: 31370
[Token(Token = "0x4007A8A")]
public const int ContentTypeVisibleString = 3;
// Token: 0x04007A8B RID: 31371
[Token(Token = "0x4007A8B")]
public const int DisplayTextMaximumSize = 200;
// Token: 0x04007A8C RID: 31372
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4007A8C")]
internal readonly int contentType;
// Token: 0x04007A8D RID: 31373
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4007A8D")]
internal readonly IAsn1String contents;
}
}