diff OrthancFramework/Sources/DicomNetworking/DicomServer.h @ 5643:b1a18218860c

2 new configurations: DicomTlsMinimumProtocolVersion + DicomTlsCiphersAccepted
author Alain Mazy <am@orthanc.team>
date Fri, 31 May 2024 16:56:35 +0200
parents f7adfb22e20e
children
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/DicomServer.h	Fri May 31 09:20:35 2024 +0200
+++ b/OrthancFramework/Sources/DicomNetworking/DicomServer.h	Fri May 31 16:56:35 2024 +0200
@@ -91,6 +91,8 @@
     std::string  trustedCertificatesPath_;
     unsigned int maximumPduLength_;
     bool         remoteCertificateRequired_;  // New in 1.9.3
+    unsigned int minimumTlsVersion_;          // New in 1.12.4
+    std::set<std::string> acceptedCiphers_;   // New in 1.12.4
 
 
     static void ServerThread(DicomServer* server,
@@ -154,6 +156,9 @@
     void SetDicomTlsEnabled(bool enabled);
     bool IsDicomTlsEnabled() const;
 
+    void SetMinimumTlsVersion(unsigned int version);
+    void SetAcceptedCiphers(const std::set<std::string>& ciphers);
+
     void SetOwnCertificatePath(const std::string& privateKeyPath,
                                const std::string& certificatePath);
     const std::string& GetOwnPrivateKeyPath() const;