scripts
This commit is contained in:
@@ -0,0 +1,168 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x0200182C RID: 6188
|
||||
[Token(Token = "0x200182C")]
|
||||
[StructLayout(3)]
|
||||
public class IssuerSerial : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600A6CD RID: 42701 RVA: 0x0026CE08 File Offset: 0x0026B008
|
||||
[Token(Token = "0x600A6CD")]
|
||||
[Address(RVA = "0x2B093C0", Offset = "0x2B07DC0", VA = "0x182B093C0")]
|
||||
public static IssuerSerial GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600A6CD)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.IssuerSerial BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509.IssuerSerial::GetInstance(System.Object)
|
||||
|
||||
---> System.Exception: Basic block has to end with unconditional control flow.
|
||||
{
|
||||
IL_26:
|
||||
stloc:string(var_6_2C, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in factory: "), ldloc:string(var_6_2C)), 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: 0x0600A6CE RID: 42702 RVA: 0x0026CE5C File Offset: 0x0026B05C
|
||||
[Token(Token = "0x600A6CE")]
|
||||
[Address(RVA = "0x2B093A0", Offset = "0x2B07DA0", VA = "0x182B093A0")]
|
||||
public static IssuerSerial GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return IssuerSerial.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600A6CF RID: 42703 RVA: 0x0026CE78 File Offset: 0x0026B078
|
||||
[Token(Token = "0x600A6CF")]
|
||||
[Address(RVA = "0x2B09780", Offset = "0x2B08180", VA = "0x182B09780")]
|
||||
private IssuerSerial(Asn1Sequence seq)
|
||||
{
|
||||
Asn1Encodable asn1Encodable;
|
||||
Asn1Encodable asn1Encodable2;
|
||||
if (asn1Encodable == (ulong)2L || asn1Encodable2 == (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
GeneralNames generalNames;
|
||||
this.issuer = generalNames;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
DerInteger derInteger;
|
||||
this.serial = derInteger;
|
||||
Asn1Encodable asn1Encodable3;
|
||||
if (asn1Encodable3 == (ulong)3L)
|
||||
{
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DerBitString derBitString;
|
||||
this.issuerUid = derBitString;
|
||||
}
|
||||
return;
|
||||
}
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600A6D0 RID: 42704 RVA: 0x0026CEEC File Offset: 0x0026B0EC
|
||||
[Token(Token = "0x600A6D0")]
|
||||
[Address(RVA = "0x937E20", Offset = "0x936820", VA = "0x180937E20")]
|
||||
public IssuerSerial(GeneralNames issuer, DerInteger serial)
|
||||
{
|
||||
this.issuer = issuer;
|
||||
this.serial = serial;
|
||||
}
|
||||
|
||||
// Token: 0x17001A14 RID: 6676
|
||||
// (get) Token: 0x0600A6D1 RID: 42705 RVA: 0x0026CF10 File Offset: 0x0026B110
|
||||
[Token(Token = "0x17001A14")]
|
||||
public GeneralNames Issuer
|
||||
{
|
||||
[Token(Token = "0x600A6D1")]
|
||||
[Address(RVA = "0x3C39A0", Offset = "0x3C23A0", VA = "0x1803C39A0")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A15 RID: 6677
|
||||
// (get) Token: 0x0600A6D2 RID: 42706 RVA: 0x0026CF24 File Offset: 0x0026B124
|
||||
[Token(Token = "0x17001A15")]
|
||||
public DerInteger Serial
|
||||
{
|
||||
[Token(Token = "0x600A6D2")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.serial;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001A16 RID: 6678
|
||||
// (get) Token: 0x0600A6D3 RID: 42707 RVA: 0x0026CF38 File Offset: 0x0026B138
|
||||
[Token(Token = "0x17001A16")]
|
||||
public DerBitString IssuerUid
|
||||
{
|
||||
[Token(Token = "0x600A6D3")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.issuerUid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600A6D4 RID: 42708 RVA: 0x0026CF4C File Offset: 0x0026B14C
|
||||
[Token(Token = "0x600A6D4")]
|
||||
[Address(RVA = "0x2B095C0", Offset = "0x2B07FC0", VA = "0x182B095C0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[2];
|
||||
GeneralNames generalNames = this.issuer;
|
||||
if (generalNames != 0)
|
||||
{
|
||||
}
|
||||
array[0] = generalNames;
|
||||
DerInteger derInteger = this.serial;
|
||||
if (derInteger != 0)
|
||||
{
|
||||
}
|
||||
array[1] = derInteger;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.issuerUid != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
DerBitString derBitString = this.issuerUid;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derBitString;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04006C6D RID: 27757
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4006C6D")]
|
||||
internal readonly GeneralNames issuer;
|
||||
|
||||
// Token: 0x04006C6E RID: 27758
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4006C6E")]
|
||||
internal readonly DerInteger serial;
|
||||
|
||||
// Token: 0x04006C6F RID: 27759
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4006C6F")]
|
||||
internal readonly DerBitString issuerUid;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user