142 lines
6.2 KiB
C#
142 lines
6.2 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms
|
|
{
|
|
// Token: 0x02002003 RID: 8195
|
|
[Token(Token = "0x2002003")]
|
|
public class ContentInfo : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CD45 RID: 52549 RVA: 0x002EADF0 File Offset: 0x002E8FF0
|
|
[Token(Token = "0x600CD45")]
|
|
[Address(RVA = "0x2FE0D20", Offset = "0x2FDFD20", VA = "0x182FE0D20")]
|
|
public static ContentInfo GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CD45)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.ContentInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cms.ContentInfo::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(obj)))
|
|
stloc:ArgumentException(var_7_3F, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C))))
|
|
}
|
|
|
|
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: 0x0600CD46 RID: 52550 RVA: 0x002EAE40 File Offset: 0x002E9040
|
|
[Token(Token = "0x600CD46")]
|
|
[Address(RVA = "0x2FE0D00", Offset = "0x2FDFD00", VA = "0x182FE0D00")]
|
|
public static ContentInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return ContentInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600CD47 RID: 52551 RVA: 0x002EAE5C File Offset: 0x002E905C
|
|
[Token(Token = "0x600CD47")]
|
|
[Address(RVA = "0x2FE10B0", Offset = "0x2FE00B0", VA = "0x182FE10B0")]
|
|
private ContentInfo(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser;
|
|
do
|
|
{
|
|
base..ctor();
|
|
parser = seq.Parser;
|
|
}
|
|
while (parser != 0 && parser == 0);
|
|
this.contentType = parser;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable > (ulong)1L)
|
|
{
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
Asn1Object asn1Object;
|
|
this.content = asn1Object;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CD48 RID: 52552 RVA: 0x002EAEB8 File Offset: 0x002E90B8
|
|
[Token(Token = "0x600CD48")]
|
|
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
|
public ContentInfo(DerObjectIdentifier contentType, Asn1Encodable content)
|
|
{
|
|
this.contentType = contentType;
|
|
this.content = content;
|
|
}
|
|
|
|
// Token: 0x1700204F RID: 8271
|
|
// (get) Token: 0x0600CD49 RID: 52553 RVA: 0x002EAEDC File Offset: 0x002E90DC
|
|
[Token(Token = "0x1700204F")]
|
|
public DerObjectIdentifier ContentType
|
|
{
|
|
[Token(Token = "0x600CD49")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.contentType;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002050 RID: 8272
|
|
// (get) Token: 0x0600CD4A RID: 52554 RVA: 0x002EAEF0 File Offset: 0x002E90F0
|
|
[Token(Token = "0x17002050")]
|
|
public Asn1Encodable Content
|
|
{
|
|
[Token(Token = "0x600CD4A")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.content;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CD4B RID: 52555 RVA: 0x002EAF04 File Offset: 0x002E9104
|
|
[Token(Token = "0x600CD4B")]
|
|
[Address(RVA = "0x2FE0F10", Offset = "0x2FDFF10", VA = "0x182FE0F10", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerObjectIdentifier derObjectIdentifier = this.contentType;
|
|
if (derObjectIdentifier != 0)
|
|
{
|
|
}
|
|
array[0] = derObjectIdentifier;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
if (this.content != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
Asn1Encodable asn1Encodable = this.content;
|
|
int num;
|
|
BerTaggedObject berTaggedObject = new BerTaggedObject(num, asn1Encodable);
|
|
num = 0;
|
|
if (berTaggedObject != 0)
|
|
{
|
|
}
|
|
array2[0] = berTaggedObject;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
BerSequence berSequence = new BerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400823B RID: 33339
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400823B")]
|
|
private readonly DerObjectIdentifier contentType;
|
|
|
|
// Token: 0x0400823C RID: 33340
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400823C")]
|
|
private readonly Asn1Encodable content;
|
|
}
|
|
}
|