comparison OrthancServer/DicomProtocol/DicomServer.cpp @ 690:2e67366aab83

case-insensitive matching of Application Entity Titles
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 04 Feb 2014 15:54:46 +0100
parents 2d0a347e8cfc
children 401a9633e492
comparison
equal deleted inserted replaced
689:2d0a347e8cfc 690:2e67366aab83
34 34
35 #include "../../Core/OrthancException.h" 35 #include "../../Core/OrthancException.h"
36 #include "../../Core/Toolbox.h" 36 #include "../../Core/Toolbox.h"
37 #include "../../Core/Uuid.h" 37 #include "../../Core/Uuid.h"
38 #include "../Internals/CommandDispatcher.h" 38 #include "../Internals/CommandDispatcher.h"
39 #include "../OrthancInitialization.h"
39 #include "EmbeddedResources.h" 40 #include "EmbeddedResources.h"
40 41
41 #include <boost/thread.hpp> 42 #include <boost/thread.hpp>
42 #include <boost/filesystem.hpp> 43 #include <boost/filesystem.hpp>
43 #include <dcmtk/dcmdata/dcdict.h> 44 #include <dcmtk/dcmdata/dcdict.h>
402 pimpl_->thread_.join(); 403 pimpl_->thread_.join();
403 } 404 }
404 405
405 bagOfDispatchers_.StopAll(); 406 bagOfDispatchers_.StopAll();
406 } 407 }
408
409 bool DicomServer::IsMyAETitle(const std::string& aet) const
410 {
411 if (!HasCalledApplicationEntityTitleCheck())
412 {
413 // OK, no check on the AET.
414 return true;
415 }
416
417 return Orthanc::IsSameAETitle(aet, GetApplicationEntityTitle());
418 }
419
407 } 420 }