202 lines
8.5 KiB
C#
202 lines
8.5 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
|
{
|
|
// Token: 0x02001928 RID: 6440
|
|
[Token(Token = "0x2001928")]
|
|
[StructLayout(3)]
|
|
public class CertReqMsg : Asn1Encodable
|
|
{
|
|
// Token: 0x0600ACBA RID: 44218 RVA: 0x00286CE4 File Offset: 0x00284EE4
|
|
[Token(Token = "0x600ACBA")]
|
|
[Address(RVA = "0x1ECBBC0", Offset = "0x1ECA5C0", VA = "0x181ECBBC0")]
|
|
private CertReqMsg(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
CertRequest certRequest;
|
|
this.certReq = certRequest;
|
|
Asn1Encodable asn1Encodable;
|
|
if ((uint)1 < asn1Encodable)
|
|
{
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
if (parser2 != 0 && (parser2 != 0 || parser2 != 0))
|
|
{
|
|
ProofOfPossession proofOfPossession;
|
|
this.popo = proofOfPossession;
|
|
}
|
|
Asn1Sequence asn1Sequence;
|
|
this.regInfo = asn1Sequence;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600ACBB RID: 44219 RVA: 0x00286D3C File Offset: 0x00284F3C
|
|
[Token(Token = "0x600ACBB")]
|
|
[Address(RVA = "0x1ECB650", Offset = "0x1ECA050", VA = "0x181ECB650")]
|
|
public static CertReqMsg GetInstance(object obj)
|
|
{
|
|
while (obj != 0)
|
|
{
|
|
if (obj == 0)
|
|
{
|
|
Asn1Sequence instance = Asn1Sequence.GetInstance(obj);
|
|
Asn1SequenceParser parser = instance.Parser;
|
|
CertReqMsg certReqMsg;
|
|
CertRequest certRequest;
|
|
certReqMsg.certReq = certRequest;
|
|
Asn1Encodable asn1Encodable;
|
|
if ((uint)1 < asn1Encodable)
|
|
{
|
|
Asn1SequenceParser parser2 = instance.Parser;
|
|
if (parser2 != 0 && (parser2 != 0 || parser2 != 0))
|
|
{
|
|
ProofOfPossession proofOfPossession;
|
|
certReqMsg.popo = proofOfPossession;
|
|
}
|
|
Asn1Sequence asn1Sequence;
|
|
certReqMsg.regInfo = asn1Sequence;
|
|
}
|
|
return certReqMsg;
|
|
}
|
|
if ((uint)1 != 0U)
|
|
{
|
|
return (uint)1;
|
|
}
|
|
}
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0600ACBC RID: 44220 RVA: 0x00286DB8 File Offset: 0x00284FB8
|
|
[Token(Token = "0x600ACBC")]
|
|
[Address(RVA = "0x1ECB8B0", Offset = "0x1ECA2B0", VA = "0x181ECB8B0")]
|
|
public static CertReqMsg GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return CertReqMsg.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600ACBD RID: 44221 RVA: 0x00286DD4 File Offset: 0x00284FD4
|
|
[Token(Token = "0x600ACBD")]
|
|
[Address(RVA = "0x1ECBD30", Offset = "0x1ECA730", VA = "0x181ECBD30")]
|
|
public CertReqMsg(CertRequest certReq, ProofOfPossession popo, AttributeTypeAndValue[] regInfo)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600ACBD)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.CertReqMsg::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.CertRequest,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.ProofOfPossession,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.AttributeTypeAndValue[])
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_2B:
|
|
stloc:ArgumentNullException(var_1_35, newobj:ArgumentNullException(ArgumentNullException::.ctor, ldstr:string("certReq")))
|
|
}
|
|
|
|
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: 0x17001B69 RID: 7017
|
|
// (get) Token: 0x0600ACBE RID: 44222 RVA: 0x00286E18 File Offset: 0x00285018
|
|
[Token(Token = "0x17001B69")]
|
|
public virtual CertRequest CertReq
|
|
{
|
|
[Token(Token = "0x600ACBE")]
|
|
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
|
get
|
|
{
|
|
return this.certReq;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001B6A RID: 7018
|
|
// (get) Token: 0x0600ACBF RID: 44223 RVA: 0x00286E2C File Offset: 0x0028502C
|
|
[Token(Token = "0x17001B6A")]
|
|
public virtual ProofOfPossession Popo
|
|
{
|
|
[Token(Token = "0x600ACBF")]
|
|
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
|
get
|
|
{
|
|
return this.popo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600ACC0 RID: 44224 RVA: 0x00286E40 File Offset: 0x00285040
|
|
[Token(Token = "0x600ACC0")]
|
|
[Address(RVA = "0x1ECB8D0", Offset = "0x1ECA2D0", VA = "0x181ECB8D0", Slot = "8")]
|
|
public virtual AttributeTypeAndValue[] GetRegInfo()
|
|
{
|
|
if (this.regInfo != 0)
|
|
{
|
|
Asn1Encodable asn1Encodable;
|
|
AttributeTypeAndValue[] array = new AttributeTypeAndValue[asn1Encodable];
|
|
int num = 0;
|
|
if (num != array.Length)
|
|
{
|
|
Asn1SequenceParser parser = this.regInfo.Parser;
|
|
AttributeTypeAndValue attributeTypeAndValue;
|
|
if (attributeTypeAndValue != 0)
|
|
{
|
|
}
|
|
num++;
|
|
array[0] = attributeTypeAndValue;
|
|
}
|
|
return array;
|
|
}
|
|
throw new ArrayTypeMismatchException();
|
|
}
|
|
|
|
// Token: 0x0600ACC1 RID: 44225 RVA: 0x00286E90 File Offset: 0x00285090
|
|
[Token(Token = "0x600ACC1")]
|
|
[Address(RVA = "0x1ECB9F0", Offset = "0x1ECA3F0", VA = "0x181ECB9F0", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
CertRequest certRequest = this.certReq;
|
|
if (certRequest != 0)
|
|
{
|
|
}
|
|
array[0] = certRequest;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
Asn1Encodable[] array2 = new Asn1Encodable[2];
|
|
ProofOfPossession proofOfPossession = this.popo;
|
|
if (proofOfPossession != 0)
|
|
{
|
|
}
|
|
array2[0] = proofOfPossession;
|
|
Asn1Sequence asn1Sequence = this.regInfo;
|
|
if (asn1Sequence != 0)
|
|
{
|
|
}
|
|
array2[1] = asn1Sequence;
|
|
asn1EncodableVector.AddOptional(array2);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x040071BC RID: 29116
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x40071BC")]
|
|
private readonly CertRequest certReq;
|
|
|
|
// Token: 0x040071BD RID: 29117
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x40071BD")]
|
|
private readonly ProofOfPossession popo;
|
|
|
|
// Token: 0x040071BE RID: 29118
|
|
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x40071BE")]
|
|
private readonly Asn1Sequence regInfo;
|
|
}
|
|
}
|