a
This commit is contained in:
+168
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E26 RID: 7718
|
||||
[Token(Token = "0x2001E26")]
|
||||
public class V1TbsCertificateGenerator
|
||||
{
|
||||
// Token: 0x0600C36A RID: 50026 RVA: 0x002C80E8 File Offset: 0x002C62E8
|
||||
[Token(Token = "0x600C36A")]
|
||||
[Address(RVA = "0x2B44140", Offset = "0x2B42F40", VA = "0x182B44140")]
|
||||
public V1TbsCertificateGenerator()
|
||||
{
|
||||
int num;
|
||||
DerInteger derInteger = new DerInteger(num);
|
||||
num = 0;
|
||||
int num2;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(num2, derInteger);
|
||||
num2 = 0;
|
||||
this.version = derTaggedObject;
|
||||
base..ctor();
|
||||
}
|
||||
|
||||
// Token: 0x0600C36B RID: 50027 RVA: 0x002C8118 File Offset: 0x002C6318
|
||||
[Token(Token = "0x600C36B")]
|
||||
[Address(RVA = "0x3F7210", Offset = "0x3F6010", VA = "0x1803F7210")]
|
||||
public void SetSerialNumber(DerInteger serialNumber)
|
||||
{
|
||||
this.serialNumber = serialNumber;
|
||||
}
|
||||
|
||||
// Token: 0x0600C36C RID: 50028 RVA: 0x002C812C File Offset: 0x002C632C
|
||||
[Token(Token = "0x600C36C")]
|
||||
[Address(RVA = "0x460F90", Offset = "0x45FD90", VA = "0x180460F90")]
|
||||
public void SetSignature(AlgorithmIdentifier signature)
|
||||
{
|
||||
this.signature = signature;
|
||||
}
|
||||
|
||||
// Token: 0x0600C36D RID: 50029 RVA: 0x002C8140 File Offset: 0x002C6340
|
||||
[Token(Token = "0x600C36D")]
|
||||
[Address(RVA = "0x409C60", Offset = "0x408A60", VA = "0x180409C60")]
|
||||
public void SetIssuer(X509Name issuer)
|
||||
{
|
||||
this.issuer = issuer;
|
||||
}
|
||||
|
||||
// Token: 0x0600C36E RID: 50030 RVA: 0x002C8154 File Offset: 0x002C6354
|
||||
[Token(Token = "0x600C36E")]
|
||||
[Address(RVA = "0x4437E0", Offset = "0x4425E0", VA = "0x1804437E0")]
|
||||
public void SetStartDate(Time startDate)
|
||||
{
|
||||
this.startDate = startDate;
|
||||
}
|
||||
|
||||
// Token: 0x0600C36F RID: 50031 RVA: 0x002C8168 File Offset: 0x002C6368
|
||||
[Token(Token = "0x600C36F")]
|
||||
[Address(RVA = "0x2B440D0", Offset = "0x2B42ED0", VA = "0x182B440D0")]
|
||||
public void SetStartDate(DerUtcTime startDate)
|
||||
{
|
||||
Time time = new Time(startDate);
|
||||
this.startDate = time;
|
||||
}
|
||||
|
||||
// Token: 0x0600C370 RID: 50032 RVA: 0x002C8184 File Offset: 0x002C6384
|
||||
[Token(Token = "0x600C370")]
|
||||
[Address(RVA = "0x5329E0", Offset = "0x5317E0", VA = "0x1805329E0")]
|
||||
public void SetEndDate(Time endDate)
|
||||
{
|
||||
this.endDate = endDate;
|
||||
}
|
||||
|
||||
// Token: 0x0600C371 RID: 50033 RVA: 0x002C8198 File Offset: 0x002C6398
|
||||
[Token(Token = "0x600C371")]
|
||||
[Address(RVA = "0x2B44060", Offset = "0x2B42E60", VA = "0x182B44060")]
|
||||
public void SetEndDate(DerUtcTime endDate)
|
||||
{
|
||||
Time time = new Time(endDate);
|
||||
this.endDate = time;
|
||||
}
|
||||
|
||||
// Token: 0x0600C372 RID: 50034 RVA: 0x002C81B4 File Offset: 0x002C63B4
|
||||
[Token(Token = "0x600C372")]
|
||||
[Address(RVA = "0x403B30", Offset = "0x402930", VA = "0x180403B30")]
|
||||
public void SetSubject(X509Name subject)
|
||||
{
|
||||
this.subject = subject;
|
||||
}
|
||||
|
||||
// Token: 0x0600C373 RID: 50035 RVA: 0x002C81C8 File Offset: 0x002C63C8
|
||||
[Token(Token = "0x600C373")]
|
||||
[Address(RVA = "0x46AA50", Offset = "0x469850", VA = "0x18046AA50")]
|
||||
public void SetSubjectPublicKeyInfo(SubjectPublicKeyInfo pubKeyInfo)
|
||||
{
|
||||
this.subjectPublicKeyInfo = pubKeyInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600C374 RID: 50036 RVA: 0x002C81DC File Offset: 0x002C63DC
|
||||
[Token(Token = "0x600C374")]
|
||||
[Address(RVA = "0x2B43D90", Offset = "0x2B42B90", VA = "0x182B43D90")]
|
||||
public TbsCertificateStructure GenerateTbsCertificate()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C374)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.TbsCertificateStructure BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.V1TbsCertificateGenerator::GenerateTbsCertificate()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_132:
|
||||
stloc:InvalidOperationException(var_10_13C, newobj:InvalidOperationException(InvalidOperationException::.ctor, ldstr:string("not all mandatory fields set in V1 TBScertificate 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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x04007B1A RID: 31514
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007B1A")]
|
||||
internal DerTaggedObject version;
|
||||
|
||||
// Token: 0x04007B1B RID: 31515
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007B1B")]
|
||||
internal DerInteger serialNumber;
|
||||
|
||||
// Token: 0x04007B1C RID: 31516
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007B1C")]
|
||||
internal AlgorithmIdentifier signature;
|
||||
|
||||
// Token: 0x04007B1D RID: 31517
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007B1D")]
|
||||
internal X509Name issuer;
|
||||
|
||||
// Token: 0x04007B1E RID: 31518
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x4007B1E")]
|
||||
internal Time startDate;
|
||||
|
||||
// Token: 0x04007B1F RID: 31519
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x4007B1F")]
|
||||
internal Time endDate;
|
||||
|
||||
// Token: 0x04007B20 RID: 31520
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x4007B20")]
|
||||
internal X509Name subject;
|
||||
|
||||
// Token: 0x04007B21 RID: 31521
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x4007B21")]
|
||||
internal SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user