Don't special case 1.0.1
It appears that 1.0.1's defaults are actually okay.
This commit is contained in:
parent
7192a5291f
commit
6977e9e89f
|
|
@ -7,13 +7,6 @@ use ssl::{HandshakeError, Ssl, SslContext, SslContextBuilder, SslMethod, SslMode
|
||||||
SslRef, SslStream, SslVerifyMode};
|
SslRef, SslStream, SslVerifyMode};
|
||||||
use version;
|
use version;
|
||||||
|
|
||||||
// From https://github.com/python/cpython/blob/a170fa162dc03f0a014373349e548954fff2e567/Lib/ssl.py#L193
|
|
||||||
#[cfg(ossl101)]
|
|
||||||
const CLIENT_CIPHERS: &'static str =
|
|
||||||
"ECDH+AESGCM:DH+AESGCM:ECDH+AES256:DH+AES256:ECDH+AES128:DH+AES:ECDH+HIGH:DH+HIGH:RSA+AESGCM:\
|
|
||||||
RSA+AES:RSA+HIGH:!aNULL:!eNULL:!MD5:!3DES";
|
|
||||||
// From https://github.com/python/cpython/blob/892d66e422d5367673163d62ba40cd70a37d5cf7/Modules/_ssl.c#L254
|
|
||||||
#[cfg(not(ossl101))]
|
|
||||||
const CLIENT_CIPHERS: &'static str =
|
const CLIENT_CIPHERS: &'static str =
|
||||||
"DEFAULT:!aNULL:!eNULL:!MD5:!3DES:!DES:!RC4:!IDEA:!SEED:!aDSS:!SRP:!PSK";
|
"DEFAULT:!aNULL:!eNULL:!MD5:!3DES:!DES:!RC4:!IDEA:!SEED:!aDSS:!SRP:!PSK";
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue