Mercurial > hg > orthanc
comparison Core/HttpClient.cpp @ 2140:aa4b8895cd23
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 16:12:47 +0100 |
parents | dd609a99d39a |
children | fd5875662670 |
comparison
equal
deleted
inserted
replaced
2139:764c9157301b | 2140:aa4b8895cd23 |
---|---|
771 if (certificateFile.empty()) | 771 if (certificateFile.empty()) |
772 { | 772 { |
773 throw OrthancException(ErrorCode_ParameterOutOfRange); | 773 throw OrthancException(ErrorCode_ParameterOutOfRange); |
774 } | 774 } |
775 | 775 |
776 if (!Toolbox::IsRegularFile(certificateFile)) | 776 if (!SystemToolbox::IsRegularFile(certificateFile)) |
777 { | 777 { |
778 LOG(ERROR) << "Cannot open certificate file: " << certificateFile; | 778 LOG(ERROR) << "Cannot open certificate file: " << certificateFile; |
779 throw OrthancException(ErrorCode_InexistentFile); | 779 throw OrthancException(ErrorCode_InexistentFile); |
780 } | 780 } |
781 | 781 |
782 if (!certificateKeyFile.empty() && | 782 if (!certificateKeyFile.empty() && |
783 !Toolbox::IsRegularFile(certificateKeyFile)) | 783 !SystemToolbox::IsRegularFile(certificateKeyFile)) |
784 { | 784 { |
785 LOG(ERROR) << "Cannot open key file: " << certificateKeyFile; | 785 LOG(ERROR) << "Cannot open key file: " << certificateKeyFile; |
786 throw OrthancException(ErrorCode_InexistentFile); | 786 throw OrthancException(ErrorCode_InexistentFile); |
787 } | 787 } |
788 | 788 |