Files
niko c12fbe3fc6 m
2026-04-12 16:51:38 +02:00

200 lines
8.4 KiB
C#

using System;
using Cpp2IlInjected;
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
{
// Token: 0x02001FE5 RID: 8165
[Token(Token = "0x2001FE5")]
public class CertReqMsg : Asn1Encodable
{
// Token: 0x0600CC62 RID: 52322 RVA: 0x002E79C8 File Offset: 0x002E5BC8
[Token(Token = "0x600CC62")]
[Address(RVA = "0x23A2DB0", Offset = "0x23A1DB0", VA = "0x1823A2DB0")]
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: 0x0600CC63 RID: 52323 RVA: 0x002E7A20 File Offset: 0x002E5C20
[Token(Token = "0x600CC63")]
[Address(RVA = "0x23A2840", Offset = "0x23A1840", VA = "0x1823A2840")]
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: 0x0600CC64 RID: 52324 RVA: 0x002E7A9C File Offset: 0x002E5C9C
[Token(Token = "0x600CC64")]
[Address(RVA = "0x23A2AA0", Offset = "0x23A1AA0", VA = "0x1823A2AA0")]
public static CertReqMsg GetInstance(Asn1TaggedObject obj, bool isExplicit)
{
return CertReqMsg.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
}
// Token: 0x0600CC65 RID: 52325 RVA: 0x002E7AB8 File Offset: 0x002E5CB8
[Token(Token = "0x600CC65")]
[Address(RVA = "0x23A2F20", Offset = "0x23A1F20", VA = "0x1823A2F20")]
public CertReqMsg(CertRequest certReq, ProofOfPossession popo, AttributeTypeAndValue[] regInfo)
{
/*
An exception occurred when decompiling this method (0600CC65)
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: 0x17002007 RID: 8199
// (get) Token: 0x0600CC66 RID: 52326 RVA: 0x002E7AFC File Offset: 0x002E5CFC
[Token(Token = "0x17002007")]
public virtual CertRequest CertReq
{
[Token(Token = "0x600CC66")]
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
get
{
return this.certReq;
}
}
// Token: 0x17002008 RID: 8200
// (get) Token: 0x0600CC67 RID: 52327 RVA: 0x002E7B10 File Offset: 0x002E5D10
[Token(Token = "0x17002008")]
public virtual ProofOfPossession Popo
{
[Token(Token = "0x600CC67")]
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
get
{
return this.popo;
}
}
// Token: 0x0600CC68 RID: 52328 RVA: 0x002E7B24 File Offset: 0x002E5D24
[Token(Token = "0x600CC68")]
[Address(RVA = "0x23A2AC0", Offset = "0x23A1AC0", VA = "0x1823A2AC0", 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: 0x0600CC69 RID: 52329 RVA: 0x002E7B74 File Offset: 0x002E5D74
[Token(Token = "0x600CC69")]
[Address(RVA = "0x23A2BE0", Offset = "0x23A1BE0", VA = "0x1823A2BE0", 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: 0x040081B8 RID: 33208
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x40081B8")]
private readonly CertRequest certReq;
// Token: 0x040081B9 RID: 33209
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x40081B9")]
private readonly ProofOfPossession popo;
// Token: 0x040081BA RID: 33210
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x40081BA")]
private readonly Asn1Sequence regInfo;
}
}