193 lines
7.7 KiB
C#
193 lines
7.7 KiB
C#
using System;
|
|
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
|
{
|
|
// Token: 0x02001F63 RID: 8035
|
|
[Token(Token = "0x2001F63")]
|
|
public class PkiStatusInfo : Asn1Encodable
|
|
{
|
|
// Token: 0x0600CB56 RID: 52054 RVA: 0x002E9538 File Offset: 0x002E7738
|
|
[Token(Token = "0x600CB56")]
|
|
[Address(RVA = "0x2AE0410", Offset = "0x2ADF210", VA = "0x182AE0410")]
|
|
public static PkiStatusInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
|
{
|
|
return PkiStatusInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
|
}
|
|
|
|
// Token: 0x0600CB57 RID: 52055 RVA: 0x002E9554 File Offset: 0x002E7754
|
|
[Token(Token = "0x600CB57")]
|
|
[Address(RVA = "0x2AE0430", Offset = "0x2ADF230", VA = "0x182AE0430")]
|
|
public static PkiStatusInfo GetInstance(object obj)
|
|
{
|
|
/*
|
|
An exception occurred when decompiling this method (0600CB57)
|
|
|
|
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp.PkiStatusInfo::GetInstance(System.Object)
|
|
|
|
---> System.Exception: Basic block has to end with unconditional control flow.
|
|
{
|
|
IL_22:
|
|
stloc:string(var_6_28, call:string(Platform::GetTypeName, ldloc:object(obj)))
|
|
stloc:ArgumentException(var_7_40, newobj:ArgumentException(ArgumentException::.ctor, call:string(string::Concat, ldstr:string("Unknown object in factory: "), ldloc:string(var_6_28)), 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: 0x0600CB58 RID: 52056 RVA: 0x002E95A4 File Offset: 0x002E77A4
|
|
[Token(Token = "0x600CB58")]
|
|
[Address(RVA = "0x2AE0940", Offset = "0x2ADF740", VA = "0x182AE0940")]
|
|
public PkiStatusInfo(Asn1Sequence seq)
|
|
{
|
|
Asn1SequenceParser parser = seq.Parser;
|
|
DerInteger derInteger;
|
|
this.status = derInteger;
|
|
int num = 0;
|
|
this.statusString = num;
|
|
this.failInfo = num;
|
|
Asn1Encodable asn1Encodable;
|
|
if (asn1Encodable > (ulong)1L)
|
|
{
|
|
Asn1SequenceParser parser2 = seq.Parser;
|
|
if (parser2 == 0 || parser2 == 0)
|
|
{
|
|
PkiFreeText pkiFreeText;
|
|
this.statusString = pkiFreeText;
|
|
return;
|
|
}
|
|
DerBitString derBitString;
|
|
this.failInfo = derBitString;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CB59 RID: 52057 RVA: 0x002E9610 File Offset: 0x002E7810
|
|
[Token(Token = "0x600CB59")]
|
|
[Address(RVA = "0x2AE0B10", Offset = "0x2ADF910", VA = "0x182AE0B10")]
|
|
public PkiStatusInfo(int status)
|
|
{
|
|
DerInteger derInteger = new DerInteger(status);
|
|
this.status = derInteger;
|
|
}
|
|
|
|
// Token: 0x0600CB5A RID: 52058 RVA: 0x002E9634 File Offset: 0x002E7834
|
|
[Token(Token = "0x600CB5A")]
|
|
[Address(RVA = "0x2AE0830", Offset = "0x2ADF630", VA = "0x182AE0830")]
|
|
public PkiStatusInfo(int status, PkiFreeText statusString)
|
|
{
|
|
DerInteger derInteger = new DerInteger(status);
|
|
this.status = derInteger;
|
|
this.statusString = statusString;
|
|
}
|
|
|
|
// Token: 0x0600CB5B RID: 52059 RVA: 0x002E965C File Offset: 0x002E785C
|
|
[Token(Token = "0x600CB5B")]
|
|
[Address(RVA = "0x2AE08B0", Offset = "0x2ADF6B0", VA = "0x182AE08B0")]
|
|
public PkiStatusInfo(int status, PkiFreeText statusString, PkiFailureInfo failInfo)
|
|
{
|
|
DerInteger derInteger = new DerInteger(status);
|
|
this.status = derInteger;
|
|
this.statusString = statusString;
|
|
this.failInfo = failInfo;
|
|
}
|
|
|
|
// Token: 0x17002047 RID: 8263
|
|
// (get) Token: 0x0600CB5C RID: 52060 RVA: 0x002E968C File Offset: 0x002E788C
|
|
[Token(Token = "0x17002047")]
|
|
public BigInteger Status
|
|
{
|
|
[Token(Token = "0x600CB5C")]
|
|
[Address(RVA = "0x283C9E0", Offset = "0x283B7E0", VA = "0x18283C9E0")]
|
|
get
|
|
{
|
|
return this.status.Value;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002048 RID: 8264
|
|
// (get) Token: 0x0600CB5D RID: 52061 RVA: 0x002E96AC File Offset: 0x002E78AC
|
|
[Token(Token = "0x17002048")]
|
|
public PkiFreeText StatusString
|
|
{
|
|
[Token(Token = "0x600CB5D")]
|
|
[Address(RVA = "0x3F5F40", Offset = "0x3F4D40", VA = "0x1803F5F40")]
|
|
get
|
|
{
|
|
return this.statusString;
|
|
}
|
|
}
|
|
|
|
// Token: 0x17002049 RID: 8265
|
|
// (get) Token: 0x0600CB5E RID: 52062 RVA: 0x002E96C0 File Offset: 0x002E78C0
|
|
[Token(Token = "0x17002049")]
|
|
public DerBitString FailInfo
|
|
{
|
|
[Token(Token = "0x600CB5E")]
|
|
[Address(RVA = "0x3F6400", Offset = "0x3F5200", VA = "0x1803F6400")]
|
|
get
|
|
{
|
|
return this.failInfo;
|
|
}
|
|
}
|
|
|
|
// Token: 0x0600CB5F RID: 52063 RVA: 0x002E96D4 File Offset: 0x002E78D4
|
|
[Token(Token = "0x600CB5F")]
|
|
[Address(RVA = "0x2AE0620", Offset = "0x2ADF420", VA = "0x182AE0620", Slot = "5")]
|
|
public override Asn1Object ToAsn1Object()
|
|
{
|
|
Asn1Encodable[] array = new Asn1Encodable[1];
|
|
DerInteger derInteger = this.status;
|
|
if (derInteger != 0)
|
|
{
|
|
}
|
|
array[0] = derInteger;
|
|
Asn1EncodableVector asn1EncodableVector = new Asn1EncodableVector(array);
|
|
if (this.statusString != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array2 = new Asn1Encodable[1];
|
|
PkiFreeText pkiFreeText = this.statusString;
|
|
if (pkiFreeText != 0)
|
|
{
|
|
}
|
|
array2[0] = pkiFreeText;
|
|
asn1EncodableVector.Add(array2);
|
|
}
|
|
if (this.failInfo != (ulong)0L)
|
|
{
|
|
Asn1Encodable[] array3 = new Asn1Encodable[1];
|
|
DerBitString derBitString = this.failInfo;
|
|
if (derBitString != 0)
|
|
{
|
|
}
|
|
array3[0] = derBitString;
|
|
asn1EncodableVector.Add(array3);
|
|
}
|
|
DerSequence derSequence = new DerSequence(asn1EncodableVector);
|
|
throw new NullReferenceException();
|
|
}
|
|
|
|
// Token: 0x0400819C RID: 33180
|
|
[FieldOffset(Offset = "0x10")]
|
|
[Token(Token = "0x400819C")]
|
|
private DerInteger status;
|
|
|
|
// Token: 0x0400819D RID: 33181
|
|
[FieldOffset(Offset = "0x18")]
|
|
[Token(Token = "0x400819D")]
|
|
private PkiFreeText statusString;
|
|
|
|
// Token: 0x0400819E RID: 33182
|
|
[FieldOffset(Offset = "0x20")]
|
|
[Token(Token = "0x400819E")]
|
|
private DerBitString failInfo;
|
|
}
|
|
}
|