Merge "Upgrade TLS version in integration tests" into nyc-dev

This commit is contained in:
Rahul Frias
2016-06-20 19:55:27 +00:00
committed by Android (Google) Code Review

View File

@@ -41,9 +41,12 @@ SSL_CTX* InitSslContext() {
OpenSSL_add_all_algorithms();
SSL_load_error_strings();
method = SSLv3_client_method();
method = TLSv1_2_client_method();
ctx = SSL_CTX_new(method);
if (!ctx) LOGE("failed to create SSL context");
int ret = SSL_CTX_set_cipher_list(
ctx, "ALL:!RC4-MD5:!RC4-SHA:!ECDHE-ECDSA-RC4-SHA:!ECDHE-RSA-RC4-SHA");
if (0 != ret) LOGE("error disabling vulnerable ciphers");
return ctx;
}