Merge \"Upgrade TLS version in integration tests\" into nyc-dev
am: 1ebaf6ad82
Change-Id: I87127e320f65c48c95496815a634c6ad854af58a
This commit is contained in:
@@ -41,9 +41,12 @@ SSL_CTX* InitSslContext() {
|
|||||||
|
|
||||||
OpenSSL_add_all_algorithms();
|
OpenSSL_add_all_algorithms();
|
||||||
SSL_load_error_strings();
|
SSL_load_error_strings();
|
||||||
method = SSLv3_client_method();
|
method = TLSv1_2_client_method();
|
||||||
ctx = SSL_CTX_new(method);
|
ctx = SSL_CTX_new(method);
|
||||||
if (!ctx) LOGE("failed to create SSL context");
|
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;
|
return ctx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user