167 lines
6.9 KiB
C#
167 lines
6.9 KiB
C#
using System;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509
|
|
{
|
|
// Token: 0x02001EE9 RID: 7913
|
|
[Token(Token = "0x2001EE9")]
|
|
public class IssuerSerial : Asn1Encodable
|
|
{
|
|
// Token: 0x0600C675 RID: 50805 RVA: 0x002CDC24 File Offset: 0x002CBE24
|
|
[Token(Token = "0x600C675")]
|
|
[Address(RVA = "0x2E7E160", Offset = "0x2E7D160", VA = "0x182E7E160")]
|
|
public static IssuerSerial GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600C675)
|
|
|
|
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: 0x0600C676 RID: 50806 RVA: 0x002CDC78 File Offset: 0x002CBE78
|
|
[Token(Token = "0x600C676")]
|
|
[Address(RVA = "0x2E7E140", Offset = "0x2E7D140", VA = "0x182E7E140")]
|
|
public static IssuerSerial GetInstance(Asn1TaggedObject obj, bool explicitly)
|
|
{
|
|
return IssuerSerial.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
|
}
|
|
|
|
// Token: 0x0600C677 RID: 50807 RVA: 0x002CDC94 File Offset: 0x002CBE94
|
|
[Token(Token = "0x600C677")]
|
|
[Address(RVA = "0x2E7E520", Offset = "0x2E7D520", VA = "0x182E7E520")]
|
|
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: 0x0600C678 RID: 50808 RVA: 0x002CDD08 File Offset: 0x002CBF08
|
|
[Token(Token = "0x600C678")]
|
|
[Address(RVA = "0x4714F0", Offset = "0x4704F0", VA = "0x1804714F0")]
|
|
public IssuerSerial(GeneralNames issuer, DerInteger serial)
|
|
{
|
|
this.issuer = issuer;
|
|
this.serial = serial;
|
|
}
|
|
|
|
// Token: 0x17001EB2 RID: 7858
|
|
// (get) Token: 0x0600C679 RID: 50809 RVA: 0x002CDD2C File Offset: 0x002CBF2C
|
|
[Token(Token = "0x17001EB2")]
|
|
public GeneralNames Issuer
|
|
{
|
|
[Token(Token = "0x600C679")]
|
|
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
|
get
|
|
{
|
|
return this.issuer;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001EB3 RID: 7859
|
|
// (get) Token: 0x0600C67A RID: 50810 RVA: 0x002CDD40 File Offset: 0x002CBF40
|
|
[Token(Token = "0x17001EB3")]
|
|
public DerInteger Serial
|
|
{
|
|
[Token(Token = "0x600C67A")]
|
|
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
|
get
|
|
{
|
|
return this.serial;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17001EB4 RID: 7860
|
|
// (get) Token: 0x0600C67B RID: 50811 RVA: 0x002CDD54 File Offset: 0x002CBF54
|
|
[Token(Token = "0x17001EB4")]
|
|
public DerBitString IssuerUid
|
|
{
|
|
[Token(Token = "0x600C67B")]
|
|
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
|
get
|
|
{
|
|
return this.issuerUid;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600C67C RID: 50812 RVA: 0x002CDD68 File Offset: 0x002CBF68
|
|
[Token(Token = "0x600C67C")]
|
|
[Address(RVA = "0x2E7E360", Offset = "0x2E7D360", VA = "0x182E7E360", 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: 0x04007C69 RID: 31849
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x4007C69")]
|
|
internal readonly GeneralNames issuer;
|
|
|
|
// Token: 0x04007C6A RID: 31850
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x4007C6A")]
|
|
internal readonly DerInteger serial;
|
|
|
|
// Token: 0x04007C6B RID: 31851
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x4007C6B")]
|
|
internal readonly DerBitString issuerUid;
|
|
}
|
|
}
|