comparison OrthancFramework/Sources/WebServiceParameters.cpp @ 4194:2bc49197f806

HTTP client: allow empty CertificateKeyPassword
author Alain Mazy <alain@mazy.be>
date Wed, 16 Sep 2020 10:22:25 +0200
parents bf7b9edf6b81
children b30a8de92ad9
comparison
equal deleted inserted replaced
4193:ff24a06b3474 4194:2bc49197f806
138 throw OrthancException(ErrorCode_ParameterOutOfRange); 138 throw OrthancException(ErrorCode_ParameterOutOfRange);
139 } 139 }
140 140
141 if (certificateKeyPassword.empty()) 141 if (certificateKeyPassword.empty())
142 { 142 {
143 throw OrthancException( 143 LOG(WARNING) << "No password specified for certificate key file: " << certificateKeyFile;
144 ErrorCode_BadFileFormat,
145 "The password for the HTTPS certificate is not provided: " + certificateFile);
146 } 144 }
147 145
148 certificateFile_ = certificateFile; 146 certificateFile_ = certificateFile;
149 certificateKeyFile_ = certificateKeyFile; 147 certificateKeyFile_ = certificateKeyFile;
150 certificateKeyPassword_ = certificateKeyPassword; 148 certificateKeyPassword_ = certificateKeyPassword;