2016-05-13 22:46:56 +00:00
|
|
|
|
using System.Collections.ObjectModel;
|
2015-07-31 19:27:59 +00:00
|
|
|
|
|
|
|
|
|
namespace CurlSharp
|
|
|
|
|
{
|
2016-05-13 22:46:56 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Our SSL FIX for CURL contain authorized Ciphers for SSL Communications
|
|
|
|
|
/// </summary>
|
2015-07-31 19:27:59 +00:00
|
|
|
|
public class SSLFix
|
|
|
|
|
{
|
2016-05-13 22:46:56 +00:00
|
|
|
|
// Our CiphersList
|
|
|
|
|
private static readonly ReadOnlyCollection<string> Ciphers = new ReadOnlyCollection<string>( new[] {
|
|
|
|
|
// Default supported ciphers by Jackett
|
|
|
|
|
"rsa_aes_128_sha",
|
|
|
|
|
"ecdhe_rsa_aes_256_sha",
|
|
|
|
|
"ecdhe_ecdsa_aes_128_sha"
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// List of ciphers supported by Jackett
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns>Formatted string of ciphers</returns>
|
|
|
|
|
public static string CiphersList()
|
|
|
|
|
{
|
|
|
|
|
// Comma-Separated list of ciphers
|
|
|
|
|
return string.Join(",", Ciphers);
|
|
|
|
|
}
|
2015-07-31 19:27:59 +00:00
|
|
|
|
}
|
|
|
|
|
}
|