123 lines
4.9 KiB
C#
123 lines
4.9 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem
|
|
{
|
|
// Token: 0x02001366 RID: 4966
|
|
[Token(Token = "0x2001366")]
|
|
[StructLayout(3)]
|
|
public class PemHeader
|
|
{
|
|
// Token: 0x06007DAE RID: 32174 RVA: 0x001A6178 File Offset: 0x001A4378
|
|
[Token(Token = "0x6007DAE")]
|
|
[Address(RVA = "0x3C39C0", Offset = "0x3C23C0", VA = "0x1803C39C0")]
|
|
public PemHeader(string name, string val)
|
|
{
|
|
this.name = name;
|
|
this.val = val;
|
|
}
|
|
|
|
// Token: 0x17001472 RID: 5234
|
|
// (get) Token: 0x06007DAF RID: 32175 RVA: 0x001A619C File Offset: 0x001A439C
|
|
[Token(Token = "0x17001472")]
|
|
public virtual string Name
|
|
{
|
|
[Token(Token = "0x6007DAF")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "4")]
|
|
get
|
|
{
|
|
return this.name;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001473 RID: 5235
|
|
// (get) Token: 0x06007DB0 RID: 32176 RVA: 0x001A61B0 File Offset: 0x001A43B0
|
|
[Token(Token = "0x17001473")]
|
|
public virtual string Value
|
|
{
|
|
[Token(Token = "0x6007DB0")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "5")]
|
|
get
|
|
{
|
|
return this.val;
|
|
}
|
|
}
|
|
|
|
// Token: 0x06007DB1 RID: 32177 RVA: 0x001A61C4 File Offset: 0x001A43C4
|
|
[Token(Token = "0x6007DB1")]
|
|
[Address(RVA = "0x2031BF0", Offset = "0x20305F0", VA = "0x182031BF0", Slot = "2")]
|
|
public override int GetHashCode()
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (06007DB1)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Int32 BestHTTP.SecureProtocol.Org.BouncyCastle.Utilities.IO.Pem.PemHeader::GetHashCode()
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_22:
|
|
stloc:int64(var_3, add:int64(ldloc:int64(var_3), ldloc:uint32[exp:int64](var_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.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: 0x06007DB2 RID: 32178 RVA: 0x001A61F8 File Offset: 0x001A43F8
|
|
[Token(Token = "0x6007DB2")]
|
|
[Address(RVA = "0x2031AE0", Offset = "0x20304E0", VA = "0x182031AE0", Slot = "0")]
|
|
public override bool Equals(object obj)
|
|
{
|
|
while (obj != this)
|
|
{
|
|
if (obj != 0 && obj != 0)
|
|
{
|
|
if (obj == 0)
|
|
{
|
|
continue;
|
|
}
|
|
string text = this.name;
|
|
bool flag;
|
|
if (flag)
|
|
{
|
|
string text2 = this.val;
|
|
bool flag2;
|
|
return flag2;
|
|
}
|
|
}
|
|
break;
|
|
}
|
|
return true;
|
|
}
|
|
|
|
// Token: 0x06007DB3 RID: 32179 RVA: 0x001A6234 File Offset: 0x001A4434
|
|
[Token(Token = "0x6007DB3")]
|
|
[Address(RVA = "0x2031C60", Offset = "0x2030660", VA = "0x182031C60")]
|
|
private int GetHashCode(string s)
|
|
{
|
|
if (s != 0)
|
|
{
|
|
object obj = ((ICloneable)s).Clone();
|
|
}
|
|
return 1;
|
|
}
|
|
|
|
// Token: 0x04005A31 RID: 23089
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4005A31")]
|
|
private string name;
|
|
|
|
// Token: 0x04005A32 RID: 23090
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4005A32")]
|
|
private string val;
|
|
}
|
|
}
|