Mercurial > hg > orthanc
diff Core/WebServiceParameters.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 | 39f4207727db |
line wrap: on
line diff
--- a/Core/WebServiceParameters.h Wed Jun 15 17:20:52 2016 +0200 +++ b/Core/WebServiceParameters.h Fri Jun 17 17:09:50 2016 +0200 @@ -47,6 +47,7 @@ std::string certificateFile_; std::string certificateKeyFile_; std::string certificateKeyPassword_; + bool pkcs11Enabled_; void FromJsonArray(const Json::Value& peer); @@ -85,6 +86,8 @@ password_ = password; } + void ClearClientCertificate(); + void SetClientCertificate(const std::string& certificateFile, const std::string& certificateKeyFile, const std::string& certificateKeyPassword); @@ -104,6 +107,16 @@ return certificateKeyPassword_; } + void SetPkcs11Enabled(bool pkcs11Enabled) + { + pkcs11Enabled_ = pkcs11Enabled; + } + + bool IsPkcs11Enabled() const + { + return pkcs11Enabled_; + } + void FromJson(const Json::Value& peer); void ToJson(Json::Value& value) const;