scripts
This commit is contained in:
@@ -0,0 +1,195 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Crmf;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x0200198D RID: 6541
|
||||
[Token(Token = "0x200198D")]
|
||||
[StructLayout(3)]
|
||||
public class RevAnnContent : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AFAA RID: 44970 RVA: 0x002919F0 File Offset: 0x0028FBF0
|
||||
[Token(Token = "0x600AFAA")]
|
||||
[Address(RVA = "0x28FD820", Offset = "0x28FC220", VA = "0x1828FD820")]
|
||||
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: 0x0600AFAB RID: 44971 RVA: 0x00291A5C File Offset: 0x0028FC5C
|
||||
[Token(Token = "0x600AFAB")]
|
||||
[Address(RVA = "0x28FD2A0", Offset = "0x28FBCA0", VA = "0x1828FD2A0")]
|
||||
public static RevAnnContent GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AFAB)
|
||||
|
||||
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: 0x17001C52 RID: 7250
|
||||
// (get) Token: 0x0600AFAC RID: 44972 RVA: 0x00291AD0 File Offset: 0x0028FCD0
|
||||
[Token(Token = "0x17001C52")]
|
||||
public virtual PkiStatusEncodable Status
|
||||
{
|
||||
[Token(Token = "0x600AFAC")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0", Slot = "6")]
|
||||
get
|
||||
{
|
||||
return this.status;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C53 RID: 7251
|
||||
// (get) Token: 0x0600AFAD RID: 44973 RVA: 0x00291AE4 File Offset: 0x0028FCE4
|
||||
[Token(Token = "0x17001C53")]
|
||||
public virtual CertId CertID
|
||||
{
|
||||
[Token(Token = "0x600AFAD")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240", Slot = "7")]
|
||||
get
|
||||
{
|
||||
return this.certId;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C54 RID: 7252
|
||||
// (get) Token: 0x0600AFAE RID: 44974 RVA: 0x00291AF8 File Offset: 0x0028FCF8
|
||||
[Token(Token = "0x17001C54")]
|
||||
public virtual DerGeneralizedTime WillBeRevokedAt
|
||||
{
|
||||
[Token(Token = "0x600AFAE")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220", Slot = "8")]
|
||||
get
|
||||
{
|
||||
return this.willBeRevokedAt;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C55 RID: 7253
|
||||
// (get) Token: 0x0600AFAF RID: 44975 RVA: 0x00291B0C File Offset: 0x0028FD0C
|
||||
[Token(Token = "0x17001C55")]
|
||||
public virtual DerGeneralizedTime BadSinceDate
|
||||
{
|
||||
[Token(Token = "0x600AFAF")]
|
||||
[Address(RVA = "0x3C1230", Offset = "0x3BFC30", VA = "0x1803C1230", Slot = "9")]
|
||||
get
|
||||
{
|
||||
return this.badSinceDate;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C56 RID: 7254
|
||||
// (get) Token: 0x0600AFB0 RID: 44976 RVA: 0x00291B20 File Offset: 0x0028FD20
|
||||
[Token(Token = "0x17001C56")]
|
||||
public virtual X509Extensions CrlDetails
|
||||
{
|
||||
[Token(Token = "0x600AFB0")]
|
||||
[Address(RVA = "0x3C1250", Offset = "0x3BFC50", VA = "0x1803C1250", Slot = "10")]
|
||||
get
|
||||
{
|
||||
return this.crlDetails;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AFB1 RID: 44977 RVA: 0x00291B34 File Offset: 0x0028FD34
|
||||
[Token(Token = "0x600AFB1")]
|
||||
[Address(RVA = "0x28FD5C0", Offset = "0x28FBFC0", VA = "0x1828FD5C0", 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: 0x04007368 RID: 29544
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007368")]
|
||||
private readonly PkiStatusEncodable status;
|
||||
|
||||
// Token: 0x04007369 RID: 29545
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007369")]
|
||||
private readonly CertId certId;
|
||||
|
||||
// Token: 0x0400736A RID: 29546
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400736A")]
|
||||
private readonly DerGeneralizedTime willBeRevokedAt;
|
||||
|
||||
// Token: 0x0400736B RID: 29547
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x400736B")]
|
||||
private readonly DerGeneralizedTime badSinceDate;
|
||||
|
||||
// Token: 0x0400736C RID: 29548
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
|
||||
[Token(Token = "0x400736C")]
|
||||
private readonly X509Extensions crlDetails;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user