194 lines
7.7 KiB
C#
194 lines
7.7 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x0200204A RID: 8266
|
|
[Token(Token = "0x200204A")]
|
|
public class RevAnnContent : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CF52 RID: 53074 RVA: 0x002F26A0 File Offset: 0x002F08A0
|
|
[Token(Token = "0x600CF52")]
|
|
[Address(RVA = "0x2FF27C0", Offset = "0x2FF17C0", VA = "0x182FF27C0")]
|
|
private RevAnnContent(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
PkiStatusEncodable pkiStatusEncodable;
|
|
this.status = pkiStatusEncodable;
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
CertId certId;
|
|
this.certId = certId;
|
|
Asn1SequenceParser parser3 = seq.Parser;
|
|
DerGeneralizedTime derGeneralizedTime;
|
|
this.willBeRevokedAt = derGeneralizedTime;
|
|
Asn1SequenceParser parser4 = seq.Parser;
|
|
DerGeneralizedTime derGeneralizedTime2;
|
|
this.badSinceDate = derGeneralizedTime2;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable > (ulong)4L)
|
|
{
|
|
Asn1SequenceParser parser5 = seq.Parser;
|
|
X509Extensions x509Extensions;
|
|
this.crlDetails = x509Extensions;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CF53 RID: 53075 RVA: 0x002F270C File Offset: 0x002F090C
|
|
[Token(Token = "0x600CF53")]
|
|
[Address(RVA = "0x2FF2240", Offset = "0x2FF1240", VA = "0x182FF2240")]
|
|
public static RevAnnContent GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CF53)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevAnnContent BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.RevAnnContent::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_46:
|
|
stloc:string(var_11_4C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_12_64, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Invalid object: "), ldloc:string(var_11_4C)), ldstr:string("obj")))
|
|
}
|
|
|
|
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: 0x170020F0 RID: 8432
|
|
// (get) Token: 0x0600CF54 RID: 53076 RVA: 0x002F2780 File Offset: 0x002F0980
|
|
[Token(Token = "0x170020F0")]
|
|
public virtual PkiStatusEncodable Status
|
|
{
|
|
[Token(Token = "0x600CF54")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530", Slot = "6")]
|
|
get
|
|
{
|
|
return this.status;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020F1 RID: 8433
|
|
// (get) Token: 0x0600CF55 RID: 53077 RVA: 0x002F2794 File Offset: 0x002F0994
|
|
[Token(Token = "0x170020F1")]
|
|
public virtual CertId CertID
|
|
{
|
|
[Token(Token = "0x600CF55")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0", Slot = "7")]
|
|
get
|
|
{
|
|
return this.certId;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020F2 RID: 8434
|
|
// (get) Token: 0x0600CF56 RID: 53078 RVA: 0x002F27A8 File Offset: 0x002F09A8
|
|
[Token(Token = "0x170020F2")]
|
|
public virtual DerGeneralizedTime WillBeRevokedAt
|
|
{
|
|
[Token(Token = "0x600CF56")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0", Slot = "8")]
|
|
get
|
|
{
|
|
return this.willBeRevokedAt;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020F3 RID: 8435
|
|
// (get) Token: 0x0600CF57 RID: 53079 RVA: 0x002F27BC File Offset: 0x002F09BC
|
|
[Token(Token = "0x170020F3")]
|
|
public virtual DerGeneralizedTime BadSinceDate
|
|
{
|
|
[Token(Token = "0x600CF57")]
|
|
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0", Slot = "9")]
|
|
get
|
|
{
|
|
return this.badSinceDate;
|
|
}
|
|
}
|
|
|
|
// Token: 0x170020F4 RID: 8436
|
|
// (get) Token: 0x0600CF58 RID: 53080 RVA: 0x002F27D0 File Offset: 0x002F09D0
|
|
[Token(Token = "0x170020F4")]
|
|
public virtual X509Extensions CrlDetails
|
|
{
|
|
[Token(Token = "0x600CF58")]
|
|
[Address(RVA = "0x4157E0", Offset = "0x4147E0", VA = "0x1804157E0", Slot = "10")]
|
|
get
|
|
{
|
|
return this.crlDetails;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CF59 RID: 53081 RVA: 0x002F27E4 File Offset: 0x002F09E4
|
|
[Token(Token = "0x600CF59")]
|
|
[Address(RVA = "0x2FF2560", Offset = "0x2FF1560", VA = "0x182FF2560", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[4];
|
|
PkiStatusEncodable pkiStatusEncodable = this.status;
|
|
if (pkiStatusEncodable != 0)
|
|
{
|
|
}
|
|
array[0] = pkiStatusEncodable;
|
|
CertId certId = this.certId;
|
|
if (certId != 0)
|
|
{
|
|
}
|
|
array[1] = certId;
|
|
DerGeneralizedTime derGeneralizedTime = this.willBeRevokedAt;
|
|
if (derGeneralizedTime != 0)
|
|
{
|
|
}
|
|
array[2] = derGeneralizedTime;
|
|
DerGeneralizedTime derGeneralizedTime2 = this.badSinceDate;
|
|
if (derGeneralizedTime2 != 0)
|
|
{
|
|
}
|
|
array[3] = derGeneralizedTime2;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
X509Extensions x509Extensions = this.crlDetails;
|
|
if (x509Extensions != 0)
|
|
{
|
|
}
|
|
array2[0] = x509Extensions;
|
|
asn1EncodableVector.AddOptional(array2);
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x04008364 RID: 33636
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4008364")]
|
|
private readonly PkiStatusEncodable status;
|
|
|
|
// Token: 0x04008365 RID: 33637
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4008365")]
|
|
private readonly CertId certId;
|
|
|
|
// Token: 0x04008366 RID: 33638
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4008366")]
|
|
private readonly DerGeneralizedTime willBeRevokedAt;
|
|
|
|
// Token: 0x04008367 RID: 33639
|
|
[FieldOffset(Offset = "0x28")]
|
|
[Token(Token = "0x4008367")]
|
|
private readonly DerGeneralizedTime badSinceDate;
|
|
|
|
// Token: 0x04008368 RID: 33640
|
|
[FieldOffset(Offset = "0x30")]
|
|
[Token(Token = "0x4008368")]
|
|
private readonly X509Extensions crlDetails;
|
|
}
|
|
}
|