scripts
This commit is contained in:
@@ -0,0 +1,194 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
using BestHTTP.SecureProtocol.Org.BouncyCastle.Math;
|
||||
using Cpp2IlInjected;
|
||||
|
||||
namespace BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.Cmp
|
||||
{
|
||||
// Token: 0x02001986 RID: 6534
|
||||
[Token(Token = "0x2001986")]
|
||||
[StructLayout(3)]
|
||||
public class PkiStatusInfo : Asn1Encodable
|
||||
{
|
||||
// Token: 0x0600AF7C RID: 44924 RVA: 0x00290FE4 File Offset: 0x0028F1E4
|
||||
[Token(Token = "0x600AF7C")]
|
||||
[Address(RVA = "0x28F9CD0", Offset = "0x28F86D0", VA = "0x1828F9CD0")]
|
||||
public static PkiStatusInfo GetInstance(Asn1TaggedObject obj, bool isExplicit)
|
||||
{
|
||||
return PkiStatusInfo.GetInstance(Asn1Sequence.GetInstance(obj, isExplicit));
|
||||
}
|
||||
|
||||
// Token: 0x0600AF7D RID: 44925 RVA: 0x00291000 File Offset: 0x0028F200
|
||||
[Token(Token = "0x600AF7D")]
|
||||
[Address(RVA = "0x28F9CF0", Offset = "0x28F86F0", VA = "0x1828F9CF0")]
|
||||
public static PkiStatusInfo GetInstance(object obj)
|
||||
{
|
||||
/*
|
||||
An exception occurred when decompiling this method (0600AF7D)
|
||||
|
||||
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 1663
|
||||
*/;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF7E RID: 44926 RVA: 0x00291050 File Offset: 0x0028F250
|
||||
[Token(Token = "0x600AF7E")]
|
||||
[Address(RVA = "0x28FA200", Offset = "0x28F8C00", VA = "0x1828FA200")]
|
||||
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: 0x0600AF7F RID: 44927 RVA: 0x002910BC File Offset: 0x0028F2BC
|
||||
[Token(Token = "0x600AF7F")]
|
||||
[Address(RVA = "0x28FA3D0", Offset = "0x28F8DD0", VA = "0x1828FA3D0")]
|
||||
public PkiStatusInfo(int status)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF80 RID: 44928 RVA: 0x002910E0 File Offset: 0x0028F2E0
|
||||
[Token(Token = "0x600AF80")]
|
||||
[Address(RVA = "0x28FA0F0", Offset = "0x28F8AF0", VA = "0x1828FA0F0")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
}
|
||||
|
||||
// Token: 0x0600AF81 RID: 44929 RVA: 0x00291108 File Offset: 0x0028F308
|
||||
[Token(Token = "0x600AF81")]
|
||||
[Address(RVA = "0x28FA170", Offset = "0x28F8B70", VA = "0x1828FA170")]
|
||||
public PkiStatusInfo(int status, PkiFreeText statusString, PkiFailureInfo failInfo)
|
||||
{
|
||||
DerInteger derInteger = new DerInteger(status);
|
||||
this.status = derInteger;
|
||||
this.statusString = statusString;
|
||||
this.failInfo = failInfo;
|
||||
}
|
||||
|
||||
// Token: 0x17001C46 RID: 7238
|
||||
// (get) Token: 0x0600AF82 RID: 44930 RVA: 0x00291138 File Offset: 0x0028F338
|
||||
[Token(Token = "0x17001C46")]
|
||||
public BigInteger Status
|
||||
{
|
||||
[Token(Token = "0x600AF82")]
|
||||
[Address(RVA = "0x1DF1A60", Offset = "0x1DF0460", VA = "0x181DF1A60")]
|
||||
get
|
||||
{
|
||||
return this.status.Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C47 RID: 7239
|
||||
// (get) Token: 0x0600AF83 RID: 44931 RVA: 0x00291158 File Offset: 0x0028F358
|
||||
[Token(Token = "0x17001C47")]
|
||||
public PkiFreeText StatusString
|
||||
{
|
||||
[Token(Token = "0x600AF83")]
|
||||
[Address(RVA = "0x3C1240", Offset = "0x3BFC40", VA = "0x1803C1240")]
|
||||
get
|
||||
{
|
||||
return this.statusString;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x17001C48 RID: 7240
|
||||
// (get) Token: 0x0600AF84 RID: 44932 RVA: 0x0029116C File Offset: 0x0028F36C
|
||||
[Token(Token = "0x17001C48")]
|
||||
public DerBitString FailInfo
|
||||
{
|
||||
[Token(Token = "0x600AF84")]
|
||||
[Address(RVA = "0x3C1220", Offset = "0x3BFC20", VA = "0x1803C1220")]
|
||||
get
|
||||
{
|
||||
return this.failInfo;
|
||||
}
|
||||
}
|
||||
|
||||
// Token: 0x0600AF85 RID: 44933 RVA: 0x00291180 File Offset: 0x0028F380
|
||||
[Token(Token = "0x600AF85")]
|
||||
[Address(RVA = "0x28F9EE0", Offset = "0x28F88E0", VA = "0x1828F9EE0", 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: 0x04007359 RID: 29529
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x10")]
|
||||
[Token(Token = "0x4007359")]
|
||||
private DerInteger status;
|
||||
|
||||
// Token: 0x0400735A RID: 29530
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x18")]
|
||||
[Token(Token = "0x400735A")]
|
||||
private PkiFreeText statusString;
|
||||
|
||||
// Token: 0x0400735B RID: 29531
|
||||
[global::Cpp2IlInjected.FieldOffset(Offset = "0x20")]
|
||||
[Token(Token = "0x400735B")]
|
||||
private DerBitString failInfo;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user