m
This commit is contained in:
@@ -0,0 +1,157 @@
|
||||
using System;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Oiw;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess
|
||||
{
|
||||
// Token: 0x02001FBB RID: 8123
|
||||
[Token(Token = "0x2001FBB")]
|
||||
[Obsolete]
|
||||
public class OtherCertID : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600CB57 RID: 52055 RVA: 0x002E2DF0 File Offset: 0x002E0FF0
|
||||
[Token(Token = "0x600CB57")]
|
||||
[Address(RVA = "0x2EB2C40", Offset = "0x2EB1C40", VA = "0x182EB2C40")]
|
||||
public static OtherCertID GetInstance(object o)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600CB57)
|
||||
|
||||
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherCertID BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Ess.OtherCertID::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(o)))
|
||||
stloc:ArgumentException(var_7_44, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("unknown object in 'OtherCertID' factory : "), ldloc:string(var_6_2C), ldstr:string("."))))
|
||||
}
|
||||
|
||||
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: 0x0600CB58 RID: 52056 RVA: 0x002E2E44 File Offset: 0x002E1044
|
||||
[Token(Token = "0x600CB58")]
|
||||
[Address(RVA = "0x2EB34C0", Offset = "0x2EB24C0", VA = "0x182EB34C0")]
|
||||
public OtherCertID(Asn1Sequence seq)
|
||||
{
|
||||
Asn1SequenceParser parser = seq.Parser;
|
||||
if (parser != 0 && parser != 0)
|
||||
{
|
||||
Asn1SequenceParser parser2 = seq.Parser;
|
||||
}
|
||||
Asn1SequenceParser parser3 = seq.Parser;
|
||||
DigestInfo digestInfo;
|
||||
this.otherCertHash = digestInfo;
|
||||
Asn1Encodable asn1Encodable;
|
||||
if (asn1Encodable > (ulong)1L)
|
||||
{
|
||||
Asn1SequenceParser parser4 = seq.Parser;
|
||||
Asn1Sequence asn1Sequence;
|
||||
IssuerSerial instance = IssuerSerial.GetInstance(asn1Sequence);
|
||||
this.issuerSerial = instance;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB59 RID: 52057 RVA: 0x002E2EAC File Offset: 0x002E10AC
|
||||
[Token(Token = "0x600CB59")]
|
||||
[Address(RVA = "0x2EB3440", Offset = "0x2EB2440", VA = "0x182EB3440")]
|
||||
public OtherCertID(AlgorithmIdentifier algId, byte[] digest)
|
||||
{
|
||||
DigestInfo digestInfo = new DigestInfo(algId, digest);
|
||||
this.otherCertHash = digestInfo;
|
||||
}
|
||||
|
||||
// Token: 0x0600CB5A RID: 52058 RVA: 0x002E2ED0 File Offset: 0x002E10D0
|
||||
[Token(Token = "0x600CB5A")]
|
||||
[Address(RVA = "0x2EB3150", Offset = "0x2EB2150", VA = "0x182EB3150")]
|
||||
public OtherCertID(AlgorithmIdentifier algId, byte[] digest, IssuerSerial issuerSerial)
|
||||
{
|
||||
DigestInfo digestInfo = new DigestInfo(algId, digest);
|
||||
this.otherCertHash = digestInfo;
|
||||
this.issuerSerial = issuerSerial;
|
||||
}
|
||||
|
||||
// Token: 0x17001FD0 RID: 8144
|
||||
// (get) Token: 0x0600CB5B RID: 52059 RVA: 0x002E2EFC File Offset: 0x002E10FC
|
||||
[Token(Token = "0x17001FD0")]
|
||||
public AlgorithmIdentifier AlgorithmHash
|
||||
{
|
||||
[Token(Token = "0x600CB5B")]
|
||||
[Address(RVA = "0x2EB3750", Offset = "0x2EB2750", VA = "0x182EB3750")]
|
||||
get
|
||||
{
|
||||
Asn1Object asn1Object = this.otherCertHash.ToAsn1Object();
|
||||
if (asn1Object != 0 && asn1Object != 0)
|
||||
{
|
||||
return new AlgorithmIdentifier(OiwObjectIdentifiers.IdSha1);
|
||||
}
|
||||
return DigestInfo.GetInstance(this.otherCertHash).algID;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB5C RID: 52060 RVA: 0x0000220F File Offset: 0x0000040F
|
||||
[Token(Token = "0x600CB5C")]
|
||||
[Address(RVA = "0x2EB28C0", Offset = "0x2EB18C0", VA = "0x182EB28C0")]
|
||||
public byte[] GetCertHash()
|
||||
{
|
||||
throw new AnalysisFailedException("CPP2IL failed to recover any usable IL for this method.");
|
||||
}
|
||||
|
||||
// Token: 0x17001FD1 RID: 8145
|
||||
// (get) Token: 0x0600CB5D RID: 52061 RVA: 0x002E2F40 File Offset: 0x002E1140
|
||||
[Token(Token = "0x17001FD1")]
|
||||
public IssuerSerial IssuerSerial
|
||||
{
|
||||
[Token(Token = "0x600CB5D")]
|
||||
[Address(RVA = "0x4157B0", Offset = "0x4147B0", VA = "0x1804157B0")]
|
||||
get
|
||||
{
|
||||
return this.issuerSerial;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600CB5E RID: 52062 RVA: 0x002E2F54 File Offset: 0x002E1154
|
||||
[Token(Token = "0x600CB5E")]
|
||||
[Address(RVA = "0x2EB2FE0", Offset = "0x2EB1FE0", VA = "0x182EB2FE0", Slot = "5")]
|
||||
public override Asn1Object ToAsn1Object()
|
||||
{
|
||||
Asn1Encodable[] array = new Asn1Encodable[1];
|
||||
Asn1Encodable asn1Encodable = this.otherCertHash;
|
||||
if (asn1Encodable != 0)
|
||||
{
|
||||
}
|
||||
array[0] = asn1Encodable;
|
||||
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
||||
if (this.issuerSerial != (ulong)0L)
|
||||
{
|
||||
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
||||
IssuerSerial issuerSerial = this.issuerSerial;
|
||||
if (issuerSerial != 0)
|
||||
{
|
||||
}
|
||||
array2[0] = issuerSerial;
|
||||
asn1EncodableVector.Add(array2);
|
||||
}
|
||||
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
||||
throw new NullReferenceException();
|
||||
}
|
||||
|
||||
// Token: 0x0400811F RID: 33055
|
||||
[FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x400811F")]
|
||||
private Asn1Encodable otherCertHash;
|
||||
|
||||
// Token: 0x04008120 RID: 33056
|
||||
[FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x4008120")]
|
||||
private IssuerSerial issuerSerial;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user