Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
4194:2bc49197f806 | 4195:db38b2ad4c4a |
---|---|
786 else if (!clientCertificateFile_.empty()) | 786 else if (!clientCertificateFile_.empty()) |
787 { | 787 { |
788 #if ORTHANC_ENABLE_SSL == 1 | 788 #if ORTHANC_ENABLE_SSL == 1 |
789 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_SSLCERTTYPE, "PEM")); | 789 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_SSLCERTTYPE, "PEM")); |
790 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_SSLCERT, clientCertificateFile_.c_str())); | 790 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_SSLCERT, clientCertificateFile_.c_str())); |
791 | 791 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_KEYPASSWD, clientCertificateKeyPassword_.c_str())); |
792 if (!clientCertificateKeyPassword_.empty()) | |
793 { | |
794 CheckCode(curl_easy_setopt(pimpl_->curl_, CURLOPT_KEYPASSWD, clientCertificateKeyPassword_.c_str())); | |
795 } | |
796 | 792 |
797 // NB: If no "clientKeyFile_" is provided, the key must be | 793 // NB: If no "clientKeyFile_" is provided, the key must be |
798 // prepended to the certificate file | 794 // prepended to the certificate file |
799 if (!clientCertificateKeyFile_.empty()) | 795 if (!clientCertificateKeyFile_.empty()) |
800 { | 796 { |