# HG changeset patch # User Alain Mazy # Date 1730739106 -3600 # Node ID 65f8c6dfba501dd4046398b837ee8522d6869087 # Parent ea547160f27eb3149fd5e3b9389d6a7b3fbd47a9 cleanup diff -r ea547160f27e -r 65f8c6dfba50 OrthancServer/Sources/main.cpp --- a/OrthancServer/Sources/main.cpp Tue Oct 29 15:57:53 2024 +0000 +++ b/OrthancServer/Sources/main.cpp Mon Nov 04 17:51:46 2024 +0100 @@ -63,7 +63,7 @@ static const char* const KEY_DICOM_TLS_MINIMUM_PROTOCOL_VERSION = "DicomTlsMinimumProtocolVersion"; static const char* const KEY_DICOM_TLS_ACCEPTED_CIPHERS = "DicomTlsCiphersAccepted"; static const char* const KEY_MAXIMUM_PDU_LENGTH = "MaximumPduLength"; - +static const char* const KEY_READ_ONLY = "ReadOnly"; class OrthancStoreRequestHandler : public IStoreRequestHandler { @@ -1547,7 +1547,7 @@ } // New option in Orthanc 1.12.5 - readOnly = lock.GetConfiguration().GetBooleanParameter("ReadOnly", false); + readOnly = lock.GetConfiguration().GetBooleanParameter(KEY_READ_ONLY, false); // Configuration of DICOM TLS for Orthanc SCU (since Orthanc 1.9.0) DicomAssociationParameters::SetDefaultOwnCertificatePath(