comparison 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
comparison
equal deleted inserted replaced
4438:4a4e33c9082d 4439:5209a9ff6e38
79 IStoreRequestHandlerFactory* storeRequestHandlerFactory_; 79 IStoreRequestHandlerFactory* storeRequestHandlerFactory_;
80 IWorklistRequestHandlerFactory* worklistRequestHandlerFactory_; 80 IWorklistRequestHandlerFactory* worklistRequestHandlerFactory_;
81 IStorageCommitmentRequestHandlerFactory* storageCommitmentFactory_; 81 IStorageCommitmentRequestHandlerFactory* storageCommitmentFactory_;
82 IApplicationEntityFilter* applicationEntityFilter_; 82 IApplicationEntityFilter* applicationEntityFilter_;
83 83
84 // New in Orthanc 1.9.0 for DICOM TLS
85 bool useDicomTls_;
86 std::string ownPrivateKeyPath_;
87 std::string ownCertificatePath_;
88 std::string trustedCertificatesPath_;
89
84 static void ServerThread(DicomServer* server, 90 static void ServerThread(DicomServer* server,
85 bool useDicomTls); 91 bool useDicomTls);
86 92
87 public: 93 public:
88 DicomServer(); 94 DicomServer();
135 void Start(); 141 void Start();
136 142
137 void Stop(); 143 void Stop();
138 144
139 bool IsMyAETitle(const std::string& aet) const; 145 bool IsMyAETitle(const std::string& aet) const;
146
147 void SetDicomTlsEnabled(bool enabled);
148 bool IsDicomTlsEnabled() const;
149
150 void SetOwnCertificatePath(const std::string& privateKeyPath,
151 const std::string& certificatePath);
152 const std::string& GetOwnPrivateKeyPath() const;
153 const std::string& GetOwnCertificatePath() const;
154
155 void SetTrustedCertificatesPath(const std::string& path);
156 const std::string& GetTrustedCertificatesPath() const;
140 }; 157 };
141 158
142 } 159 }