m
This commit is contained in:
+245
@@ -0,0 +1,245 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs
|
||||
{
|
||||
// Token: 0x02001F68 RID: 8040
|
||||
[Token(Token = "0x2001F68")]
|
||||
public class CertificationRequestInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C94C RID: 51532 RVA: 0x002D9D70 File Offset: 0x002D7F70
|
||||
[Token(Token = "0x600C94C")]
|
||||
[Address(RVA = "0x2F7D380", Offset = "0x2F7C380", VA = "0x182F7D380")]
|
||||
public static CertificationRequestInfo GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new CertificationRequestInfo(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C94D RID: 51533 RVA: 0x002D9DA4 File Offset: 0x002D7FA4
|
||||
[Token(Token = "0x600C94D")]
|
||||
[Address(RVA = "0x2F7DBB0", Offset = "0x2F7CBB0", VA = "0x182F7DBB0")]
|
||||
public CertificationRequestInfo(X509Name subject, SubjectPublicKeyInfo pkInfo, Asn1Set attributes)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C94D)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequestInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.X509Name,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.SubjectPublicKeyInfo,BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Set)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_4C:
|
||||
stloc:ArgumentException(var_2_56, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not all mandatory fields set in CertificationRequestInfo generator.")))
|
||||
}
|
||||
|
||||
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: 0x0600C94E RID: 51534 RVA: 0x002D9E08 File Offset: 0x002D8008
|
||||
[Token(Token = "0x600C94E")]
|
||||
[Address(RVA = "0x2F7D960", Offset = "0x2F7C960", VA = "0x182F7D960")]
|
||||
private CertificationRequestInfo(Asn1Sequence seq)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C94E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Pkcs.CertificationRequestInfo::.ctor(BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Sequence)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_9F:
|
||||
stloc:ArgumentException(var_12_A9, newobj:ArgumentException(ArgumentException::.ctor, ldstr:string("Not all mandatory fields set in CertificationRequestInfo generator.")))
|
||||
}
|
||||
|
||||
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: 0x17001F39 RID: 7993
|
||||
// (get) Token: 0x0600C94F RID: 51535 RVA: 0x002D9EC0 File Offset: 0x002D80C0
|
||||
[Token(Token = "0x17001F39")]
|
||||
public DerInteger Version
|
||||
{
|
||||
[Token(Token = "0x600C94F")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.version;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F3A RID: 7994
|
||||
// (get) Token: 0x0600C950 RID: 51536 RVA: 0x002D9ED4 File Offset: 0x002D80D4
|
||||
[Token(Token = "0x17001F3A")]
|
||||
public X509Name Subject
|
||||
{
|
||||
[Token(Token = "0x600C950")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.subject;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F3B RID: 7995
|
||||
// (get) Token: 0x0600C951 RID: 51537 RVA: 0x002D9EE8 File Offset: 0x002D80E8
|
||||
[Token(Token = "0x17001F3B")]
|
||||
public SubjectPublicKeyInfo SubjectPublicKeyInfo
|
||||
{
|
||||
[Token(Token = "0x600C951")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.subjectPKInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001F3C RID: 7996
|
||||
// (get) Token: 0x0600C952 RID: 51538 RVA: 0x002D9EFC File Offset: 0x002D80FC
|
||||
[Token(Token = "0x17001F3C")]
|
||||
public Asn1Set Attributes
|
||||
{
|
||||
[Token(Token = "0x600C952")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.attributes;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C953 RID: 51539 RVA: 0x002D9F10 File Offset: 0x002D8110
|
||||
[Token(Token = "0x600C953")]
|
||||
[Address(RVA = "0x2F7D480", Offset = "0x2F7C480", VA = "0x182F7D480", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
DerInteger derInteger = this.version;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[0] = derInteger;
|
||||
X509Name x509Name = this.subject;
|
||||
if (x509Name != 0)
|
||||
{
|
||||
}
|
||||
array[1] = x509Name;
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo = this.subjectPKInfo;
|
||||
if (subjectPublicKeyInfo != 0)
|
||||
{
|
||||
}
|
||||
array[2] = subjectPublicKeyInfo;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.attributes != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Set asn1Set = this.attributes;
|
||||
int num;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num != 0, num2, asn1Set);
|
||||
num2 = 0;
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600C954 RID: 51540 RVA: 0x002D9FBC File Offset: 0x002D81BC
|
||||
[Token(Token = "0x600C954")]
|
||||
[Address(RVA = "0x2F7D6D0", Offset = "0x2F7C6D0", VA = "0x182F7D6D0")]
|
||||
private static void ValidateAttributes(Asn1Set attributes)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
if (attributes == 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
IEnumerator enumerator = attributes.GetEnumerator();
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
if (enumerator == 0 || enumerator == 0)
|
||||
{
|
||||
goto IL_5E;
|
||||
}
|
||||
AttributePkcs attributePkcs;
|
||||
DerObjectIdentifier attrType = attributePkcs.attrType;
|
||||
Asn1Set attrValues = attributePkcs.attrValues;
|
||||
if (asn1Encodable != (ulong)1L)
|
||||
{
|
||||
goto IL_40;
|
||||
}
|
||||
}
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_40:
|
||||
ArgumentException ex = new ArgumentException("challengePassword attribute must have one value");
|
||||
throw new NullReferenceException();
|
||||
IL_5E:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007EB9 RID: 32441
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007EB9")]
|
||||
internal DerInteger version;
|
||||
|
||||
// Token: 0x04007EBA RID: 32442
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007EBA")]
|
||||
internal X509Name subject;
|
||||
|
||||
// Token: 0x04007EBB RID: 32443
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007EBB")]
|
||||
internal SubjectPublicKeyInfo subjectPKInfo;
|
||||
|
||||
// Token: 0x04007EBC RID: 32444
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007EBC")]
|
||||
internal Asn1Set attributes;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user