From 9c11ab39007637d89e5faa437df5de6d37d0d2b8 Mon Sep 17 00:00:00 2001 From: ZPaC Date: Tue, 10 May 2022 11:01:15 +0800 Subject: [PATCH] delete tlsv1 --- mindspore/ccsrc/ps/core/communicator/http_request_handler.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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;