diff 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
line wrap: on
line diff
--- a/Core/HttpClient.h	Tue Jun 14 15:51:00 2016 +0200
+++ b/Core/HttpClient.h	Tue Jun 14 17:53:23 2016 +0200
@@ -58,6 +58,9 @@
     std::string proxy_;
     bool verifyPeers_;
     std::string caCertificates_;
+    std::string clientCertificateFile_;
+    std::string clientCertificateKeyFile_;
+    std::string clientCertificateKeyPassword_;
 
     void Setup();
 
@@ -168,6 +171,25 @@
       return caCertificates_;
     }
 
+    void SetClientCertificate(const std::string& certificateFile,
+                              const std::string& certificateKeyFile,
+                              const std::string& certificateKeyPassword);
+
+    const std::string& GetClientCertificateFile() const
+    {
+      return clientCertificateFile_;
+    }
+
+    const std::string& GetClientCertificateKeyFile() const
+    {
+      return clientCertificateKeyFile_;
+    }
+
+    const std::string& GetClientCertificateKeyPassword() const
+    {
+      return clientCertificateKeyPassword_;
+    }
+
     static void GlobalInitialize();
   
     static void GlobalFinalize();