comparison Core/HttpClient.h @ 2019:9c9332e486ca

HTTPS client certificates can be associated with Orthanc peers to enhance security over Internet
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 14 Jun 2016 17:53:23 +0200
parents ce90d109bb64
children a0bd8cd55da7
comparison
equal deleted inserted replaced
2018:300599489cab 2019:9c9332e486ca
56 bool isVerbose_; 56 bool isVerbose_;
57 long timeout_; 57 long timeout_;
58 std::string proxy_; 58 std::string proxy_;
59 bool verifyPeers_; 59 bool verifyPeers_;
60 std::string caCertificates_; 60 std::string caCertificates_;
61 std::string clientCertificateFile_;
62 std::string clientCertificateKeyFile_;
63 std::string clientCertificateKeyPassword_;
61 64
62 void Setup(); 65 void Setup();
63 66
64 void operator= (const HttpClient&); // Assignment forbidden 67 void operator= (const HttpClient&); // Assignment forbidden
65 HttpClient(const HttpClient& base); // Copy forbidden 68 HttpClient(const HttpClient& base); // Copy forbidden
164 } 167 }
165 168
166 const std::string& GetHttpsCACertificates() const 169 const std::string& GetHttpsCACertificates() const
167 { 170 {
168 return caCertificates_; 171 return caCertificates_;
172 }
173
174 void SetClientCertificate(const std::string& certificateFile,
175 const std::string& certificateKeyFile,
176 const std::string& certificateKeyPassword);
177
178 const std::string& GetClientCertificateFile() const
179 {
180 return clientCertificateFile_;
181 }
182
183 const std::string& GetClientCertificateKeyFile() const
184 {
185 return clientCertificateKeyFile_;
186 }
187
188 const std::string& GetClientCertificateKeyPassword() const
189 {
190 return clientCertificateKeyPassword_;
169 } 191 }
170 192
171 static void GlobalInitialize(); 193 static void GlobalInitialize();
172 194
173 static void GlobalFinalize(); 195 static void GlobalFinalize();