Mercurial > hg > orthanc
diff OrthancFramework/Sources/HttpClient.cpp @ 4195:db38b2ad4c4a
fix
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 16 Sep 2020 11:24:08 +0200 |
parents | 8c559dd5034b |
children | 2d5209153b32 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/HttpClient.cpp Wed Sep 16 10:22:25 2020 +0200 +++ b/OrthancFramework/Sources/HttpClient.cpp Wed Sep 16 11:24:08 2020 +0200 @@ -788,11 +788,7 @@ #if ORTHANC_ENABLE_SSL == 1 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_SSLCERTTYPE, "PEM")); CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_SSLCERT, clientCertificateFile_.c_str())); - - if (!clientCertificateKeyPassword_.empty()) - { - CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_KEYPASSWD, clientCertificateKeyPassword_.c_str())); - } + CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_KEYPASSWD, clientCertificateKeyPassword_.c_str())); // NB: If no "clientKeyFile_" is provided, the key must be // prepended to the certificate file