diff --git a/mindspore/ccsrc/ps/core/communicator/http_request_handler.cc b/mindspore/ccsrc/ps/core/communicator/http_request_handler.cc index d5713728933..929ffe318ee 100644 --- a/mindspore/ccsrc/ps/core/communicator/http_request_handler.cc +++ b/mindspore/ccsrc/ps/core/communicator/http_request_handler.cc @@ -34,9 +34,8 @@ bool HttpRequestHandler::Initialize(int fd, const std::unordered_mapenable_ssl()) { MS_LOG(INFO) << "Enable ssl support."; - if (!SSL_CTX_set_options(SSLHTTP::GetInstance().GetSSLCtx(), SSL_OP_SINGLE_DH_USE | SSL_OP_SINGLE_ECDH_USE | - SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3 | SSL_OP_NO_TLSv1 | - SSL_OP_NO_TLSv1_1)) { + if (!SSL_CTX_set_options(SSLHTTP::GetInstance().GetSSLCtx(), + SSL_OP_SINGLE_DH_USE | SSL_OP_SINGLE_ECDH_USE | SSL_OP_NO_SSLv2 | SSL_OP_NO_SSLv3)) { if (evbase_) { event_base_free(evbase_); evbase_ = nullptr;