a
This commit is contained in:
@@ -0,0 +1,166 @@
|
||||
using System;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
||||
{
|
||||
// Token: 0x02001E09 RID: 7689
|
||||
[Token(Token = "0x2001E09")]
|
||||
public class IssuerSerial : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600C2A7 RID: 49831 RVA: 0x002C53C0 File Offset: 0x002C35C0
|
||||
[Token(Token = "0x600C2A7")]
|
||||
[Address(RVA = "0x2B36B60", Offset = "0x2B35960", VA = "0x182B36B60")]
|
||||
public static IssuerSerial GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600C2A7)
|
||||
|
||||
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 1660
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600C2A8 RID: 49832 RVA: 0x002C5414 File Offset: 0x002C3614
|
||||
[Token(Token = "0x600C2A8")]
|
||||
[Address(RVA = "0x2B36B40", Offset = "0x2B35940", VA = "0x182B36B40")]
|
||||
public static IssuerSerial GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return IssuerSerial.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600C2A9 RID: 49833 RVA: 0x002C5430 File Offset: 0x002C3630
|
||||
[Token(Token = "0x600C2A9")]
|
||||
[Address(RVA = "0x2B36F20", Offset = "0x2B35D20", VA = "0x182B36F20")]
|
||||
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: 0x0600C2AA RID: 49834 RVA: 0x002C54A4 File Offset: 0x002C36A4
|
||||
[Token(Token = "0x600C2AA")]
|
||||
[Address(RVA = "0x497CA0", Offset = "0x496AA0", VA = "0x180497CA0")]
|
||||
public IssuerSerial(GeneralNames issuer, DerInteger serial)
|
||||
{
|
||||
this.issuer = issuer;
|
||||
this.serial = serial;
|
||||
}
|
||||
|
||||
// Token: 0x17001E15 RID: 7701
|
||||
// (get) Token: 0x0600C2AB RID: 49835 RVA: 0x002C54C8 File Offset: 0x002C36C8
|
||||
[Token(Token = "0x17001E15")]
|
||||
public GeneralNames Issuer
|
||||
{
|
||||
[Token(Token = "0x600C2AB")]
|
||||
[Address(RVA = "0x3F6E20", Offset = "0x3F5C20", VA = "0x1803F6E20")]
|
||||
get
|
||||
{
|
||||
return this.issuer;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E16 RID: 7702
|
||||
// (get) Token: 0x0600C2AC RID: 49836 RVA: 0x002C54DC File Offset: 0x002C36DC
|
||||
[Token(Token = "0x17001E16")]
|
||||
public DerInteger Serial
|
||||
{
|
||||
[Token(Token = "0x600C2AC")]
|
||||
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
||||
get
|
||||
{
|
||||
return this.serial;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001E17 RID: 7703
|
||||
// (get) Token: 0x0600C2AD RID: 49837 RVA: 0x002C54F0 File Offset: 0x002C36F0
|
||||
[Token(Token = "0x17001E17")]
|
||||
public DerBitString IssuerUid
|
||||
{
|
||||
[Token(Token = "0x600C2AD")]
|
||||
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
||||
get
|
||||
{
|
||||
return this.issuerUid;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600C2AE RID: 49838 RVA: 0x002C5504 File Offset: 0x002C3704
|
||||
[Token(Token = "0x600C2AE")]
|
||||
[Address(RVA = "0x2B36D60", Offset = "0x2B35B60", VA = "0x182B36D60", 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: 0x04007AB0 RID: 31408
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007AB0")]
|
||||
internal readonly GeneralNames issuer;
|
||||
|
||||
// Token: 0x04007AB1 RID: 31409
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007AB1")]
|
||||
internal readonly DerInteger serial;
|
||||
|
||||
// Token: 0x04007AB2 RID: 31410
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007AB2")]
|
||||
internal readonly DerBitString issuerUid;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user