diff Core/HttpClient.h @ 2022:fefbe71c2272

Possibility to use PKCS#11 authentication for hardware security modules with Orthanc peers
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 17 Jun 2016 17:09:50 +0200
parents a0bd8cd55da7
children 7fe860db9664
line wrap: on
line diff
--- a/Core/HttpClient.h	Wed Jun 15 17:20:52 2016 +0200
+++ b/Core/HttpClient.h	Fri Jun 17 17:09:50 2016 +0200
@@ -62,6 +62,7 @@
     std::string clientCertificateFile_;
     std::string clientCertificateKeyFile_;
     std::string clientCertificateKeyPassword_;
+    bool pkcs11Enabled_;
 
     void Setup();
 
@@ -179,6 +180,16 @@
                               const std::string& certificateKeyFile,
                               const std::string& certificateKeyPassword);
 
+    void SetPkcs11Enabled(bool enabled)
+    {
+      pkcs11Enabled_ = enabled;
+    }
+
+    bool IsPkcs11Enabled() const
+    {
+      return pkcs11Enabled_;
+    }
+
     const std::string& GetClientCertificateFile() const
     {
       return clientCertificateFile_;
@@ -198,6 +209,10 @@
   
     static void GlobalFinalize();
 
+    static void InitializePkcs11(const std::string& module,
+                                 const std::string& pin,
+                                 bool verbose);
+
     static void ConfigureSsl(bool httpsVerifyPeers,
                              const std::string& httpsCACertificates);