This commit is contained in:
niko
2026-04-10 22:50:51 +02:00
parent 6d1607d5a2
commit f18d448581
17033 changed files with 2863270 additions and 0 deletions
@@ -0,0 +1,26 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace Org.BouncyCastle.Crypto.Tls
{
// Token: 0x0200187F RID: 6271
[Token(Token = "0x200187F")]
public class AlwaysValidVerifyer : ICertificateVerifyer
{
// Token: 0x0600928B RID: 37515 RVA: 0x001E0838 File Offset: 0x001DEA38
[Token(Token = "0x600928B")]
[Address(RVA = "0x460D40", Offset = "0x45FB40", VA = "0x180460D40", Slot = "4")]
public bool IsValid(Uri targetUri, X509CertificateStructure[] certs)
{
return true;
}
// Token: 0x0600928C RID: 37516 RVA: 0x001E0848 File Offset: 0x001DEA48
[Token(Token = "0x600928C")]
[Address(RVA = "0x3F5100", Offset = "0x3F3F00", VA = "0x1803F5100")]
public AlwaysValidVerifyer()
{
}
}
}
@@ -0,0 +1,16 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Asn1.X509;
using Cpp2IlInjected;
namespace Org.BouncyCastle.Crypto.Tls
{
// Token: 0x02001880 RID: 6272
[Token(Token = "0x2001880")]
public interface ICertificateVerifyer
{
// Token: 0x0600928D RID: 37517
[Token(Token = "0x600928D")]
[Address(Slot = "0")]
bool IsValid(Uri targetUri, X509CertificateStructure[] certs);
}
}
@@ -0,0 +1,16 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls;
using Cpp2IlInjected;
namespace Org.BouncyCastle.Crypto.Tls
{
// Token: 0x02001881 RID: 6273
[Token(Token = "0x2001881")]
public interface IClientCredentialsProvider
{
// Token: 0x0600928E RID: 37518
[Token(Token = "0x600928E")]
[Address(Slot = "0")]
TlsCredentials GetClientCredentials(TlsContext context, CertificateRequest certificateRequest);
}
}
@@ -0,0 +1,83 @@
using System;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls;
using Cpp2IlInjected;
namespace Org.BouncyCastle.Crypto.Tls
{
// Token: 0x02001882 RID: 6274
[Token(Token = "0x2001882")]
public class LegacyTlsAuthentication : TlsAuthentication
{
// Token: 0x0600928F RID: 37519 RVA: 0x001E085C File Offset: 0x001DEA5C
[Token(Token = "0x600928F")]
[Address(RVA = "0x134E510", Offset = "0x134D310", VA = "0x18134E510")]
public LegacyTlsAuthentication(Uri targetUri, ICertificateVerifyer verifyer, IClientCredentialsProvider prov)
{
this.TargetUri = targetUri;
this.verifyer = verifyer;
this.credProvider = prov;
}
// Token: 0x06009290 RID: 37520 RVA: 0x001E0884 File Offset: 0x001DEA84
[Token(Token = "0x6009290")]
[Address(RVA = "0x134E3F0", Offset = "0x134D1F0", VA = "0x18134E3F0", Slot = "6")]
public virtual void NotifyServerCertificate(Certificate serverCertificate)
{
/*
An exception occurred when decompiling this method (06009290)
ICSharpCode.Decompiler.DecompilerException: Error decompiling System.Void Org.BouncyCastle.Crypto.Tls.LegacyTlsAuthentication::NotifyServerCertificate(BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.Certificate)
---> System.Exception: Basic block has to end with unconditional control flow.
{
IL_28:
stloc:TlsFatalAlert(var_4_2F, newobj:TlsFatalAlert(TlsFatalAlert::.ctor, ldloc:uint64[exp:uint8](var_5)))
}
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.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1878
at ICSharpCode.Decompiler.ILAst.ILAstOptimizer.FlattenBasicBlocks(ILNode node) in D:\a\dnSpy\dnSpy\Extensions\ILSpy.Decompiler\ICSharpCode.Decompiler\ICSharpCode.Decompiler\ILAst\ILAstOptimizer.cs:line 1846
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: 0x06009291 RID: 37521 RVA: 0x001E08C4 File Offset: 0x001DEAC4
[Token(Token = "0x6009291")]
[Address(RVA = "0x134E320", Offset = "0x134D120", VA = "0x18134E320", Slot = "7")]
public virtual TlsCredentials GetClientCredentials(TlsContext context, CertificateRequest certificateRequest)
{
IClientCredentialsProvider clientCredentialsProvider = this.credProvider;
if (clientCredentialsProvider == 0)
{
}
int num = 0;
if (num < certificateRequest)
{
num += num;
num++;
}
return clientCredentialsProvider.GetClientCredentials(context, certificateRequest);
}
// Token: 0x04006455 RID: 25685
[FieldOffset(Offset = "0x10")]
[Token(Token = "0x4006455")]
protected ICertificateVerifyer verifyer;
// Token: 0x04006456 RID: 25686
[FieldOffset(Offset = "0x18")]
[Token(Token = "0x4006456")]
protected IClientCredentialsProvider credProvider;
// Token: 0x04006457 RID: 25687
[FieldOffset(Offset = "0x20")]
[Token(Token = "0x4006457")]
protected Uri TargetUri;
}
}
@@ -0,0 +1,69 @@
using System;
using System.Collections.Generic;
using BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls;
using Cpp2IlInjected;
namespace Org.BouncyCastle.Crypto.Tls
{
// Token: 0x02001883 RID: 6275
[Token(Token = "0x2001883")]
public sealed class LegacyTlsClient : DefaultTlsClient
{
// Token: 0x06009292 RID: 37522 RVA: 0x001E08F4 File Offset: 0x001DEAF4
[Token(Token = "0x6009292")]
[Address(RVA = "0x134E5E0", Offset = "0x134D3E0", VA = "0x18134E5E0")]
public LegacyTlsClient(Uri targetUri, ICertificateVerifyer verifyer, IClientCredentialsProvider prov, List<string> hostNames)
{
this.TargetUri = targetUri;
this.credProvider = prov;
this.<HostNames>k__BackingField = 0;
this.verifyer = verifyer;
}
// Token: 0x06009293 RID: 37523 RVA: 0x001E0924 File Offset: 0x001DEB24
[Token(Token = "0x6009293")]
[Address(RVA = "0x134E560", Offset = "0x134D360", VA = "0x18134E560", Slot = "58")]
public override TlsAuthentication GetAuthentication()
{
/*
An exception occurred when decompiling this method (06009293)
ICSharpCode.Decompiler.DecompilerException: Error decompiling BestHTTP.SecureProtocol.Org.BouncyCastle.Crypto.Tls.TlsAuthentication Org.BouncyCastle.Crypto.Tls.LegacyTlsClient::GetAuthentication()
---> System.Exception: Basic block has to end with unconditional control flow.
{
Block_0:
stloc:Uri(var_0_06, ldfld:Uri(LegacyTlsClient::TargetUri, ldloc:LegacyTlsClient(this)))
stloc:ICertificateVerifyer(var_1_0D, ldfld:ICertificateVerifyer(LegacyTlsClient::verifyer, ldloc:LegacyTlsClient(this)))
stloc:IClientCredentialsProvider(var_2_14, ldfld:IClientCredentialsProvider(LegacyTlsClient::credProvider, ldloc:LegacyTlsClient(this)))
stfld:ICertificateVerifyer(LegacyTlsAuthentication::verifyer, ldloc:LegacyTlsAuthentication(var_3), ldloc:ICertificateVerifyer(var_1_0D))
stfld:IClientCredentialsProvider(LegacyTlsAuthentication::credProvider, ldloc:LegacyTlsAuthentication(var_3), ldloc:IClientCredentialsProvider(var_2_14))
stfld:Uri(LegacyTlsAuthentication::TargetUri, ldloc:LegacyTlsAuthentication(var_3), ldloc:Uri(var_0_06))
}
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: 0x04006458 RID: 25688
[FieldOffset(Offset = "0x58")]
[Token(Token = "0x4006458")]
private readonly Uri TargetUri;
// Token: 0x04006459 RID: 25689
[FieldOffset(Offset = "0x60")]
[Token(Token = "0x4006459")]
private readonly ICertificateVerifyer verifyer;
// Token: 0x0400645A RID: 25690
[FieldOffset(Offset = "0x68")]
[Token(Token = "0x400645A")]
private readonly IClientCredentialsProvider credProvider;
}
}