m
This commit is contained in:
+250
@@ -0,0 +1,250 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp
|
||||
{
|
||||
// Token: 0x02001F81 RID: 8065
|
||||
[Token(Token = "0x2001F81")]
|
||||
public class BasicOcspResponse : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CA02 RID: 51714 RVA: 0x002DD004 File Offset: 0x002DB204
|
||||
[Token(Token = "0x600CA02")]
|
||||
[Address(RVA = "0x2F7BA40", Offset = "0x2F7AA40", VA = "0x182F7BA40")]
|
||||
public static BasicOcspResponse GetInstance(Asn1TaggedObject obj, bool explicitly)
|
||||
{
|
||||
return BasicOcspResponse.GetInstance(Asn1Sequence.GetInstance(obj, explicitly));
|
||||
}
|
||||
|
||||
// Token: 0x0600CA03 RID: 51715 RVA: 0x002DD020 File Offset: 0x002DB220
|
||||
[Token(Token = "0x600CA03")]
|
||||
[Address(RVA = "0x2F7BA60", Offset = "0x2F7AA60", VA = "0x182F7BA60")]
|
||||
public static BasicOcspResponse GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CA03)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.BasicOcspResponse BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ocsp.BasicOcspResponse::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: 0x0600CA04 RID: 51716 RVA: 0x002DD074 File Offset: 0x002DB274
|
||||
[Token(Token = "0x600CA04")]
|
||||
[Address(RVA = "0xC5DB60", Offset = "0xC5CB60", VA = "0x180C5DB60")]
|
||||
public BasicOcspResponse(ResponseData tbsResponseData, AlgorithmIdentifier signatureAlgorithm, DerBitString signature, Asn1Sequence certs)
|
||||
{
|
||||
this.tbsResponseData = tbsResponseData;
|
||||
this.signature = signature;
|
||||
this.certs = 0;
|
||||
this.signatureAlgorithm = signatureAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA05 RID: 51717 RVA: 0x002DD0A4 File Offset: 0x002DB2A4
|
||||
[Token(Token = "0x600CA05")]
|
||||
[Address(RVA = "0x2F7BEB0", Offset = "0x2F7AEB0", VA = "0x182F7BEB0")]
|
||||
private BasicOcspResponse(Asn1Sequence seq)
|
||||
{
|
||||
for (;;)
|
||||
{
|
||||
base..ctor();
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
ResponseData responseData;
|
||||
this.tbsResponseData = responseData;
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
AlgorithmIdentifier algorithmIdentifier;
|
||||
this.signatureAlgorithm = algorithmIdentifier;
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
if (parser3 == 0)
|
||||
{
|
||||
}
|
||||
if (parser3 != 0)
|
||||
{
|
||||
this.signature = parser3;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable <= (ulong)3L)
|
||||
{
|
||||
return;
|
||||
}
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
if (parser4 == 0 || parser4 != 0)
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
Asn1Sequence asn1Sequence;
|
||||
this.certs = asn1Sequence;
|
||||
}
|
||||
|
||||
// Token: 0x0600CA06 RID: 51718 RVA: 0x002DD11C File Offset: 0x002DB31C
|
||||
[Token(Token = "0x600CA06")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
[Obsolete]
|
||||
public ResponseData GetTbsResponseData()
|
||||
{
|
||||
return this.tbsResponseData;
|
||||
}
|
||||
|
||||
// Token: 0x17001F7B RID: 8059
|
||||
// (get) Token: 0x0600CA07 RID: 51719 RVA: 0x002DD130 File Offset: 0x002DB330
|
||||
[Token(Token = "0x17001F7B")]
|
||||
public ResponseData TbsResponseData
|
||||
{
|
||||
[Token(Token = "0x600CA07")]
|
||||
[Address(RVA = "0x411530", Offset = "0x410530", VA = "0x180411530")]
|
||||
get
|
||||
{
|
||||
return this.tbsResponseData;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA08 RID: 51720 RVA: 0x002DD144 File Offset: 0x002DB344
|
||||
[Token(Token = "0x600CA08")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
[Obsolete]
|
||||
public AlgorithmIdentifier GetSignatureAlgorithm()
|
||||
{
|
||||
return this.signatureAlgorithm;
|
||||
}
|
||||
|
||||
// Token: 0x17001F7C RID: 8060
|
||||
// (get) Token: 0x0600CA09 RID: 51721 RVA: 0x002DD158 File Offset: 0x002DB358
|
||||
[Token(Token = "0x17001F7C")]
|
||||
public AlgorithmIdentifier SignatureAlgorithm
|
||||
{
|
||||
[Token(Token = "0x600CA09")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.signatureAlgorithm;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA0A RID: 51722 RVA: 0x002DD16C File Offset: 0x002DB36C
|
||||
[Token(Token = "0x600CA0A")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
[Obsolete]
|
||||
public DerBitString GetSignature()
|
||||
{
|
||||
return this.signature;
|
||||
}
|
||||
|
||||
// Token: 0x17001F7D RID: 8061
|
||||
// (get) Token: 0x0600CA0B RID: 51723 RVA: 0x002DD180 File Offset: 0x002DB380
|
||||
[Token(Token = "0x17001F7D")]
|
||||
public DerBitString Signature
|
||||
{
|
||||
[Token(Token = "0x600CA0B")]
|
||||
[Address(RVA = "0x4157C0", Offset = "0x4147C0", VA = "0x1804157C0")]
|
||||
get
|
||||
{
|
||||
return this.signature;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA0C RID: 51724 RVA: 0x002DD194 File Offset: 0x002DB394
|
||||
[Token(Token = "0x600CA0C")]
|
||||
[Address(RVA = "0xBDDB90", Offset = "0xBDCB90", VA = "0x180BDDB90")]
|
||||
public byte[] GetSignatureOctets()
|
||||
{
|
||||
Asn1Object asn1Object = this.signature.ToAsn1Object();
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0600CA0D RID: 51725 RVA: 0x002DD1B4 File Offset: 0x002DB3B4
|
||||
[Token(Token = "0x600CA0D")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
[Obsolete]
|
||||
public Asn1Sequence GetCerts()
|
||||
{
|
||||
return this.certs;
|
||||
}
|
||||
|
||||
// Token: 0x17001F7E RID: 8062
|
||||
// (get) Token: 0x0600CA0E RID: 51726 RVA: 0x002DD1C8 File Offset: 0x002DB3C8
|
||||
[Token(Token = "0x17001F7E")]
|
||||
public Asn1Sequence Certs
|
||||
{
|
||||
[Token(Token = "0x600CA0E")]
|
||||
[Address(RVA = "0x4157D0", Offset = "0x4147D0", VA = "0x1804157D0")]
|
||||
get
|
||||
{
|
||||
return this.certs;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CA0F RID: 51727 RVA: 0x002DD1DC File Offset: 0x002DB3DC
|
||||
[Token(Token = "0x600CA0F")]
|
||||
[Address(RVA = "0x2F7BC60", Offset = "0x2F7AC60", VA = "0x182F7BC60", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[3];
|
||||
ResponseData responseData = this.tbsResponseData;
|
||||
if (responseData != 0)
|
||||
{
|
||||
}
|
||||
array[0] = responseData;
|
||||
AlgorithmIdentifier algorithmIdentifier = this.signatureAlgorithm;
|
||||
if (algorithmIdentifier != 0)
|
||||
{
|
||||
}
|
||||
array[1] = algorithmIdentifier;
|
||||
DerBitString derBitString = this.signature;
|
||||
if (derBitString != 0)
|
||||
{
|
||||
}
|
||||
array[2] = derBitString;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.certs != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
Asn1Sequence asn1Sequence = this.certs;
|
||||
int num;
|
||||
DerTaggedObject derTaggedObject = new DerTaggedObject(true, num, asn1Sequence);
|
||||
num = 0;
|
||||
if (derTaggedObject != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = derTaggedObject;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x04007FA2 RID: 32674
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007FA2")]
|
||||
private readonly ResponseData tbsResponseData;
|
||||
|
||||
// Token: 0x04007FA3 RID: 32675
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4007FA3")]
|
||||
private readonly AlgorithmIdentifier signatureAlgorithm;
|
||||
|
||||
// Token: 0x04007FA4 RID: 32676
|
||||
[FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x4007FA4")]
|
||||
private readonly DerBitString signature;
|
||||
|
||||
// Token: 0x04007FA5 RID: 32677
|
||||
[FieldOffset(Offset = "0x28")]
|
||||
[Token(Token = "0x4007FA5")]
|
||||
private readonly Asn1Sequence certs;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user