141 lines
6.2 KiB
C#
141 lines
6.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
|
|
{
|
|
// Token: 0x02001ED7 RID: 7895
|
|
[Token(Token = "0x2001ED7")]
|
|
public class ContentHints : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C76B RID: 51051 RVA: 0x002D9F68 File Offset: 0x002D8168
|
|
[Token(Token = "0x600C76B")]
|
|
[Address(RVA = "0x2834E10", Offset = "0x2833C10", VA = "0x182834E10")]
|
|
public static ContentHints GetInstance(object o)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C76B)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.ContentHints BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.ContentHints::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_26:
|
|
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(o)))
|
|
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'ContentHints' factory : "), ldloc:string(var_6_2C), ldstr:string("."))))
|
|
}
|
|
|
|
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: 0x0600C76C RID: 51052 RVA: 0x002D9FBC File Offset: 0x002D81BC
|
|
[Token(Token = "0x600C76C")]
|
|
[Address(RVA = "0x28351F0", Offset = "0x2833FF0", VA = "0x1828351F0")]
|
|
private ContentHints(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
int num = 0;
|
|
if (num < 0)
|
|
{
|
|
num += num;
|
|
num++;
|
|
}
|
|
if (parser != 0 && parser != 0)
|
|
{
|
|
DerUtf8String derUtf8String;
|
|
this.contentDescription = derUtf8String;
|
|
}
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
DerObjectIdentifier derObjectIdentifier;
|
|
this.contentType = derObjectIdentifier;
|
|
}
|
|
|
|
// Token: 0x0600C76D RID: 51053 RVA: 0x002DA00C File Offset: 0x002D820C
|
|
[Token(Token = "0x600C76D")]
|
|
[Address(RVA = "0x2835380", Offset = "0x2834180", VA = "0x182835380")]
|
|
public ContentHints(DerObjectIdentifier contentType)
|
|
{
|
|
this.contentType = contentType;
|
|
this.contentDescription = (ulong)0L;
|
|
}
|
|
|
|
// Token: 0x0600C76E RID: 51054 RVA: 0x002DA030 File Offset: 0x002D8230
|
|
[Token(Token = "0x600C76E")]
|
|
[Address(RVA = "0x28351B0", Offset = "0x2833FB0", VA = "0x1828351B0")]
|
|
public ContentHints(DerObjectIdentifier contentType, DerUtf8String contentDescription)
|
|
{
|
|
this.contentType = contentType;
|
|
this.contentDescription = contentDescription;
|
|
}
|
|
|
|
// Token: 0x17001F2D RID: 7981
|
|
// (get) Token: 0x0600C76F RID: 51055 RVA: 0x002DA054 File Offset: 0x002D8254
|
|
[Token(Token = "0x17001F2D")]
|
|
public DerObjectIdentifier ContentType
|
|
{
|
|
[Token(Token = "0x600C76F")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.contentType;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001F2E RID: 7982
|
|
// (get) Token: 0x0600C770 RID: 51056 RVA: 0x002DA068 File Offset: 0x002D8268
|
|
[Token(Token = "0x17001F2E")]
|
|
public DerUtf8String ContentDescription
|
|
{
|
|
[Token(Token = "0x600C770")]
|
|
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
|
get
|
|
{
|
|
return this.contentDescription;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C771 RID: 51057 RVA: 0x002DA07C File Offset: 0x002D827C
|
|
[Token(Token = "0x600C771")]
|
|
[Address(RVA = "0x2835010", Offset = "0x2833E10", VA = "0x182835010", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1EncodableVector asn1EncodableVector;
|
|
if (this.contentDescription != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerUtf8String derUtf8String = this.contentDescription;
|
|
if (derUtf8String != 0)
|
|
{
|
|
}
|
|
array[0] = derUtf8String;
|
|
asn1EncodableVector.Add(array);
|
|
}
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
DerObjectIdentifier derObjectIdentifier = this.contentType;
|
|
if (derObjectIdentifier != 0)
|
|
{
|
|
}
|
|
array2[0] = derObjectIdentifier;
|
|
asn1EncodableVector.Add(array2);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04007F5D RID: 32605
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007F5D")]
|
|
private readonly DerUtf8String contentDescription;
|
|
|
|
// Token: 0x04007F5E RID: 32606
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007F5E")]
|
|
private readonly DerObjectIdentifier contentType;
|
|
}
|
|
}
|