forked from mindspore-Ecosystem/mindspore
commit
69d4f96c81
|
@ -34,9 +34,8 @@ bool HttpRequestHandler::Initialize(int fd, const std::unordered_map<std::string
|
|||
|
||||
if (PSContext::instance()->enable_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;
|
||||
|
|
Loading…
Reference in New Issue