Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 2872:9d08edde614b
Possibility to restrict the allowed DICOM commands for each modality
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Oct 2018 14:19:48 +0200 |
parents | 8aa6aef11b70 |
children | 1153b1a128fe |
comparison
equal
deleted
inserted
replaced
2871:6eebc2eb3168 | 2872:9d08edde614b |
---|---|
210 alwaysAllowStore_) | 210 alwaysAllowStore_) |
211 { | 211 { |
212 // Incoming C-Store requests are always accepted, even from unknown AET | 212 // Incoming C-Store requests are always accepted, even from unknown AET |
213 return true; | 213 return true; |
214 } | 214 } |
215 else if (!Configuration::IsKnownAETitle(remoteAet, remoteIp)) | |
216 { | |
217 return false; | |
218 } | |
219 else | 215 else |
220 { | 216 { |
221 return true; | 217 RemoteModalityParameters modality; |
218 | |
219 if (Configuration::LookupDicomModalityUsingAETitle(modality, remoteAet)) | |
220 { | |
221 return modality.IsRequestAllowed(type); | |
222 } | |
223 else | |
224 { | |
225 return false; | |
226 } | |
222 } | 227 } |
223 } | 228 } |
224 | 229 |
225 virtual bool IsAllowedTransferSyntax(const std::string& remoteIp, | 230 virtual bool IsAllowedTransferSyntax(const std::string& remoteIp, |
226 const std::string& remoteAet, | 231 const std::string& remoteAet, |