Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomNetworking/DicomServer.h @ 4439:5209a9ff6e38
configuration options for DICOM TLS in Orthanc SCP
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 07 Jan 2021 18:18:39 +0100 |
parents | d9473bd5ed43 |
children | f4dbdb2dcba6 |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/DicomServer.h Thu Jan 07 16:53:35 2021 +0100 +++ b/OrthancFramework/Sources/DicomNetworking/DicomServer.h Thu Jan 07 18:18:39 2021 +0100 @@ -81,6 +81,12 @@ IStorageCommitmentRequestHandlerFactory* storageCommitmentFactory_; IApplicationEntityFilter* applicationEntityFilter_; + // New in Orthanc 1.9.0 for DICOM TLS + bool useDicomTls_; + std::string ownPrivateKeyPath_; + std::string ownCertificatePath_; + std::string trustedCertificatesPath_; + static void ServerThread(DicomServer* server, bool useDicomTls); @@ -137,6 +143,17 @@ void Stop(); bool IsMyAETitle(const std::string& aet) const; + + void SetDicomTlsEnabled(bool enabled); + bool IsDicomTlsEnabled() const; + + void SetOwnCertificatePath(const std::string& privateKeyPath, + const std::string& certificatePath); + const std::string& GetOwnPrivateKeyPath() const; + const std::string& GetOwnCertificatePath() const; + + void SetTrustedCertificatesPath(const std::string& path); + const std::string& GetTrustedCertificatesPath() const; }; }