m
This commit is contained in:
@@ -0,0 +1,301 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf
|
||||
{
|
||||
// Token: 0x02001FE7 RID: 8167
|
||||
[Token(Token = "0x2001FE7")]
|
||||
public class CertTemplate : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CC72 RID: 52338 RVA: 0x002E7DAC File Offset: 0x002E5FAC
|
||||
[Token(Token = "0x600CC72")]
|
||||
[Address(RVA = "0x23A3910", Offset = "0x23A2910", VA = "0x1823A3910")]
|
||||
private CertTemplate(Asn1Sequence seq)
|
||||
{
|
||||
int num;
|
||||
do
|
||||
{
|
||||
num = 0;
|
||||
base..ctor();
|
||||
this.seq = seq;
|
||||
IEnumerator enumerator = seq.GetEnumerator();
|
||||
X509Extensions x509Extensions;
|
||||
if (enumerator != 0)
|
||||
{
|
||||
int num2 = 0;
|
||||
if (enumerator == 0)
|
||||
{
|
||||
goto IL_AC;
|
||||
}
|
||||
if (num2 > 9)
|
||||
{
|
||||
goto IL_8E;
|
||||
}
|
||||
DerInteger derInteger;
|
||||
this.version = derInteger;
|
||||
DerInteger derInteger2;
|
||||
this.serialNumber = derInteger2;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.signingAlg = algorithmIdentifier;
|
||||
X509Name x509Name;
|
||||
this.issuer = x509Name;
|
||||
Asn1Sequence asn1Sequence;
|
||||
OptionalValidity instance = OptionalValidity.GetInstance(asn1Sequence);
|
||||
this.validity = instance;
|
||||
X509Name x509Name2;
|
||||
this.subject = x509Name2;
|
||||
SubjectPublicKeyInfo subjectPublicKeyInfo;
|
||||
this.publicKey = subjectPublicKeyInfo;
|
||||
DerBitString derBitString;
|
||||
this.issuerUID = derBitString;
|
||||
DerBitString derBitString2;
|
||||
this.subjectUID = derBitString2;
|
||||
this.extensions = x509Extensions;
|
||||
}
|
||||
if (x509Extensions != 0)
|
||||
{
|
||||
}
|
||||
}
|
||||
while (num != 0);
|
||||
return;
|
||||
IL_8E:
|
||||
throw new NullReferenceException();
|
||||
IL_AC:
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CC73 RID: 52339 RVA: 0x002E7E70 File Offset: 0x002E6070
|
||||
[Token(Token = "0x600CC73")]
|
||||
[Address(RVA = "0x23A3810", Offset = "0x23A2810", VA = "0x1823A3810")]
|
||||
public static CertTemplate GetInstance(object obj)
|
||||
{
|
||||
while (obj != 0)
|
||||
{
|
||||
Asn1Sequence instance;
|
||||
if (obj == 0)
|
||||
{
|
||||
instance = Asn1Sequence.GetInstance(obj);
|
||||
return new CertTemplate(instance);
|
||||
}
|
||||
if (instance != 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700200C RID: 8204
|
||||
// (get) Token: 0x0600CC74 RID: 52340 RVA: 0x002E7EA4 File Offset: 0x002E60A4
|
||||
[Token(Token = "0x1700200C")]
|
||||
public virtual int Version
|
||||
{
|
||||
[Token(Token = "0x600CC74")]
|
||||
[Address(RVA = "0x23A3CD0", Offset = "0x23A2CD0", VA = "0x1823A3CD0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return new BigInteger(this.version.bytes).IntValue;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700200D RID: 8205
|
||||
// (get) Token: 0x0600CC75 RID: 52341 RVA: 0x002E7ECC File Offset: 0x002E60CC
|
||||
[Token(Token = "0x1700200D")]
|
||||
public virtual DerInteger SerialNumber
|
||||
{
|
||||
[Token(Token = "0x600CC75")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.serialNumber;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700200E RID: 8206
|
||||
// (get) Token: 0x0600CC76 RID: 52342 RVA: 0x002E7EE0 File Offset: 0x002E60E0
|
||||
[Token(Token = "0x1700200E")]
|
||||
public virtual AlgorithmIdentifier SigningAlg
|
||||
{
|
||||
[Token(Token = "0x600CC76")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.signingAlg;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x1700200F RID: 8207
|
||||
// (get) Token: 0x0600CC77 RID: 52343 RVA: 0x002E7EF4 File Offset: 0x002E60F4
|
||||
[Token(Token = "0x1700200F")]
|
||||
public virtual X509Name Issuer
|
||||
{
|
||||
[Token(Token = "0x600CC77")]
|
||||
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002010 RID: 8208
|
||||
// (get) Token: 0x0600CC78 RID: 52344 RVA: 0x002E7F08 File Offset: 0x002E6108
|
||||
[Token(Token = "0x17002010")]
|
||||
public virtual OptionalValidity Validity
|
||||
{
|
||||
[Token(Token = "0x600CC78")]
|
||||
[Address(RVA = "0x41CEF0", Offset = "0x41BEF0", VA = "0x18041CEF0", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.validity;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002011 RID: 8209
|
||||
// (get) Token: 0x0600CC79 RID: 52345 RVA: 0x002E7F1C File Offset: 0x002E611C
|
||||
[Token(Token = "0x17002011")]
|
||||
public virtual X509Name Subject
|
||||
{
|
||||
[Token(Token = "0x600CC79")]
|
||||
[Address(RVA = "0x417680", Offset = "0x416680", VA = "0x180417680", Slot = "11")]
|
||||
get
|
||||
{
|
||||
return this.subject;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002012 RID: 8210
|
||||
// (get) Token: 0x0600CC7A RID: 52346 RVA: 0x002E7F30 File Offset: 0x002E6130
|
||||
[Token(Token = "0x17002012")]
|
||||
public virtual SubjectPublicKeyInfo PublicKey
|
||||
{
|
||||
[Token(Token = "0x600CC7A")]
|
||||
[Address(RVA = "0x4975A0", Offset = "0x4965A0", VA = "0x1804975A0", Slot = "12")]
|
||||
get
|
||||
{
|
||||
return this.publicKey;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002013 RID: 8211
|
||||
// (get) Token: 0x0600CC7B RID: 52347 RVA: 0x002E7F44 File Offset: 0x002E6144
|
||||
[Token(Token = "0x17002013")]
|
||||
public virtual DerBitString IssuerUID
|
||||
{
|
||||
[Token(Token = "0x600CC7B")]
|
||||
[Address(RVA = "0x4936E0", Offset = "0x4926E0", VA = "0x1804936E0", Slot = "13")]
|
||||
get
|
||||
{
|
||||
return this.issuerUID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002014 RID: 8212
|
||||
// (get) Token: 0x0600CC7C RID: 52348 RVA: 0x002E7F58 File Offset: 0x002E6158
|
||||
[Token(Token = "0x17002014")]
|
||||
public virtual DerBitString SubjectUID
|
||||
{
|
||||
[Token(Token = "0x600CC7C")]
|
||||
[Address(RVA = "0x417710", Offset = "0x416710", VA = "0x180417710", Slot = "14")]
|
||||
get
|
||||
{
|
||||
return this.subjectUID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17002015 RID: 8213
|
||||
// (get) Token: 0x0600CC7D RID: 52349 RVA: 0x002E7F6C File Offset: 0x002E616C
|
||||
[Token(Token = "0x17002015")]
|
||||
public virtual X509Extensions Extensions
|
||||
{
|
||||
[Token(Token = "0x600CC7D")]
|
||||
[Address(RVA = "0x417720", Offset = "0x416720", VA = "0x180417720", Slot = "15")]
|
||||
get
|
||||
{
|
||||
return this.extensions;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CC7E RID: 52350 RVA: 0x002E7F80 File Offset: 0x002E6180
|
||||
[Token(Token = "0x600CC7E")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CC7E)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Asn1Object BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf.CertTemplate::ToAsn1Object()
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
Block_0:
|
||||
stloc:Asn1Sequence(var_0_06, ldfld:Asn1Sequence(CertTemplate::seq, ldloc:CertTemplate(this)))
|
||||
}
|
||||
|
||||
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: 0x040081BE RID: 33214
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x40081BE")]
|
||||
private readonly Asn1Sequence seq;
|
||||
|
||||
// Token: 0x040081BF RID: 33215
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x40081BF")]
|
||||
private readonly DerInteger version;
|
||||
|
||||
// Token: 0x040081C0 RID: 33216
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x40081C0")]
|
||||
private readonly DerInteger serialNumber;
|
||||
|
||||
// Token: 0x040081C1 RID: 33217
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x40081C1")]
|
||||
private readonly AlgorithmIdentifier signingAlg;
|
||||
|
||||
// Token: 0x040081C2 RID: 33218
|
||||
[FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x40081C2")]
|
||||
private readonly X509Name issuer;
|
||||
|
||||
// Token: 0x040081C3 RID: 33219
|
||||
[FieldOffset(Offset = "0x38")]
|
||||
[Token(Token = "0x40081C3")]
|
||||
private readonly OptionalValidity validity;
|
||||
|
||||
// Token: 0x040081C4 RID: 33220
|
||||
[FieldOffset(Offset = "0x40")]
|
||||
[Token(Token = "0x40081C4")]
|
||||
private readonly X509Name subject;
|
||||
|
||||
// Token: 0x040081C5 RID: 33221
|
||||
[FieldOffset(Offset = "0x48")]
|
||||
[Token(Token = "0x40081C5")]
|
||||
private readonly SubjectPublicKeyInfo publicKey;
|
||||
|
||||
// Token: 0x040081C6 RID: 33222
|
||||
[FieldOffset(Offset = "0x50")]
|
||||
[Token(Token = "0x40081C6")]
|
||||
private readonly DerBitString issuerUID;
|
||||
|
||||
// Token: 0x040081C7 RID: 33223
|
||||
[FieldOffset(Offset = "0x58")]
|
||||
[Token(Token = "0x40081C7")]
|
||||
private readonly DerBitString subjectUID;
|
||||
|
||||
// Token: 0x040081C8 RID: 33224
|
||||
[FieldOffset(Offset = "0x60")]
|
||||
[Token(Token = "0x40081C8")]
|
||||
private readonly X509Extensions extensions;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user