Mercurial > hg > orthanc
comparison OrthancServer/Sources/main.cpp @ 5854:65f8c6dfba50 find-refactoring
cleanup
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 04 Nov 2024 17:51:46 +0100 |
parents | 272b0d0eef38 |
children |
comparison
equal
deleted
inserted
replaced
5852:ea547160f27e | 5854:65f8c6dfba50 |
---|---|
61 static const char* const KEY_DICOM_TLS_TRUSTED_CERTIFICATES = "DicomTlsTrustedCertificates"; | 61 static const char* const KEY_DICOM_TLS_TRUSTED_CERTIFICATES = "DicomTlsTrustedCertificates"; |
62 static const char* const KEY_DICOM_TLS_REMOTE_CERTIFICATE_REQUIRED = "DicomTlsRemoteCertificateRequired"; | 62 static const char* const KEY_DICOM_TLS_REMOTE_CERTIFICATE_REQUIRED = "DicomTlsRemoteCertificateRequired"; |
63 static const char* const KEY_DICOM_TLS_MINIMUM_PROTOCOL_VERSION = "DicomTlsMinimumProtocolVersion"; | 63 static const char* const KEY_DICOM_TLS_MINIMUM_PROTOCOL_VERSION = "DicomTlsMinimumProtocolVersion"; |
64 static const char* const KEY_DICOM_TLS_ACCEPTED_CIPHERS = "DicomTlsCiphersAccepted"; | 64 static const char* const KEY_DICOM_TLS_ACCEPTED_CIPHERS = "DicomTlsCiphersAccepted"; |
65 static const char* const KEY_MAXIMUM_PDU_LENGTH = "MaximumPduLength"; | 65 static const char* const KEY_MAXIMUM_PDU_LENGTH = "MaximumPduLength"; |
66 | 66 static const char* const KEY_READ_ONLY = "ReadOnly"; |
67 | 67 |
68 class OrthancStoreRequestHandler : public IStoreRequestHandler | 68 class OrthancStoreRequestHandler : public IStoreRequestHandler |
69 { | 69 { |
70 private: | 70 private: |
71 ServerContext& context_; | 71 ServerContext& context_; |
1545 { | 1545 { |
1546 LOG(WARNING) << "Setting option \"JobsHistorySize\" to zero is not recommended"; | 1546 LOG(WARNING) << "Setting option \"JobsHistorySize\" to zero is not recommended"; |
1547 } | 1547 } |
1548 | 1548 |
1549 // New option in Orthanc 1.12.5 | 1549 // New option in Orthanc 1.12.5 |
1550 readOnly = lock.GetConfiguration().GetBooleanParameter("ReadOnly", false); | 1550 readOnly = lock.GetConfiguration().GetBooleanParameter(KEY_READ_ONLY, false); |
1551 | 1551 |
1552 // Configuration of DICOM TLS for Orthanc SCU (since Orthanc 1.9.0) | 1552 // Configuration of DICOM TLS for Orthanc SCU (since Orthanc 1.9.0) |
1553 DicomAssociationParameters::SetDefaultOwnCertificatePath( | 1553 DicomAssociationParameters::SetDefaultOwnCertificatePath( |
1554 lock.GetConfiguration().GetStringParameter(KEY_DICOM_TLS_PRIVATE_KEY, ""), | 1554 lock.GetConfiguration().GetStringParameter(KEY_DICOM_TLS_PRIVATE_KEY, ""), |
1555 lock.GetConfiguration().GetStringParameter(KEY_DICOM_TLS_CERTIFICATE, "")); | 1555 lock.GetConfiguration().GetStringParameter(KEY_DICOM_TLS_CERTIFICATE, "")); |