Mercurial > hg > orthanc
comparison Core/WebServiceParameters.cpp @ 2140:aa4b8895cd23
reorganization
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 09 Nov 2016 16:12:47 +0100 |
parents | 5b93382f88e1 |
children | fd5875662670 |
comparison
equal
deleted
inserted
replaced
2139:764c9157301b | 2140:aa4b8895cd23 |
---|---|
64 if (certificateFile.empty()) | 64 if (certificateFile.empty()) |
65 { | 65 { |
66 throw OrthancException(ErrorCode_ParameterOutOfRange); | 66 throw OrthancException(ErrorCode_ParameterOutOfRange); |
67 } | 67 } |
68 | 68 |
69 if (!Toolbox::IsRegularFile(certificateFile)) | 69 if (!SystemToolbox::IsRegularFile(certificateFile)) |
70 { | 70 { |
71 LOG(ERROR) << "Cannot open certificate file: " << certificateFile; | 71 LOG(ERROR) << "Cannot open certificate file: " << certificateFile; |
72 throw OrthancException(ErrorCode_InexistentFile); | 72 throw OrthancException(ErrorCode_InexistentFile); |
73 } | 73 } |
74 | 74 |
75 if (!certificateKeyFile.empty() && | 75 if (!certificateKeyFile.empty() && |
76 !Toolbox::IsRegularFile(certificateKeyFile)) | 76 !SystemToolbox::IsRegularFile(certificateKeyFile)) |
77 { | 77 { |
78 LOG(ERROR) << "Cannot open key file: " << certificateKeyFile; | 78 LOG(ERROR) << "Cannot open key file: " << certificateKeyFile; |
79 throw OrthancException(ErrorCode_InexistentFile); | 79 throw OrthancException(ErrorCode_InexistentFile); |
80 } | 80 } |
81 | 81 |