Mercurial > hg > orthanc
diff OrthancServer/Sources/main.cpp @ 4656:82a314325351
New configuration option: "DicomTlsRemoteCertificateRequired"
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 06 May 2021 18:39:19 +0200 |
parents | e915102093de |
children | f0038043fb97 ec8aef42a7db |
line wrap: on
line diff
--- a/OrthancServer/Sources/main.cpp Thu May 06 16:54:46 2021 +0200 +++ b/OrthancServer/Sources/main.cpp Thu May 06 18:39:19 2021 +0200 @@ -69,6 +69,7 @@ static const char* const KEY_DICOM_TLS_CERTIFICATE = "DicomTlsCertificate"; static const char* const KEY_DICOM_TLS_TRUSTED_CERTIFICATES = "DicomTlsTrustedCertificates"; static const char* const KEY_MAXIMUM_PDU_LENGTH = "MaximumPduLength"; +static const char* const KEY_DICOM_TLS_REMOTE_CERTIFICATE_REQUIRED = "DicomTlsRemoteCertificateRequired"; class OrthancStoreRequestHandler : public IStoreRequestHandler @@ -1209,6 +1210,10 @@ } dicomServer.SetMaximumPduLength(lock.GetConfiguration().GetUnsignedIntegerParameter(KEY_MAXIMUM_PDU_LENGTH, 16384)); + + // New option in Orthanc 1.9.3 + dicomServer.SetRemoteCertificateRequired( + lock.GetConfiguration().GetBooleanParameter(KEY_DICOM_TLS_REMOTE_CERTIFICATE_REQUIRED, true)); } #if ORTHANC_ENABLE_PLUGINS == 1 @@ -1467,6 +1472,10 @@ lock.GetConfiguration().GetStringParameter(KEY_DICOM_TLS_TRUSTED_CERTIFICATES, "")); DicomAssociationParameters::SetDefaultMaximumPduLength( lock.GetConfiguration().GetUnsignedIntegerParameter(KEY_MAXIMUM_PDU_LENGTH, 16384)); + + // New option in Orthanc 1.9.3 + DicomAssociationParameters::SetDefaultRemoteCertificateRequired( + lock.GetConfiguration().GetBooleanParameter(KEY_DICOM_TLS_REMOTE_CERTIFICATE_REQUIRED, true)); } ServerContext context(database, storageArea, false /* not running unit tests */, maxCompletedJobs);