Mercurial > hg > orthanc
comparison OrthancServer/Sources/main.cpp @ 4438:4a4e33c9082d
configuration options for DICOM TLS in Orthanc SCU
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 07 Jan 2021 16:53:35 +0100 |
parents | d9473bd5ed43 |
children | 5209a9ff6e38 |
comparison
equal
deleted
inserted
replaced
4437:d9473bd5ed43 | 4438:4a4e33c9082d |
---|---|
1435 | 1435 |
1436 if (maxCompletedJobs == 0) | 1436 if (maxCompletedJobs == 0) |
1437 { | 1437 { |
1438 LOG(WARNING) << "Setting option \"JobsHistorySize\" to zero is not recommended"; | 1438 LOG(WARNING) << "Setting option \"JobsHistorySize\" to zero is not recommended"; |
1439 } | 1439 } |
1440 | |
1441 // Configuration of DICOM TLS (since Orthanc 1.9.0) | |
1442 DicomAssociationParameters::SetDefaultOwnCertificatePath( | |
1443 lock.GetConfiguration().GetStringParameter("DicomTlsPrivateKey", ""), | |
1444 lock.GetConfiguration().GetStringParameter("DicomTlsCertificate", "")); | |
1445 DicomAssociationParameters::SetDefaultTrustedCertificatesPath( | |
1446 lock.GetConfiguration().GetStringParameter("DicomTlsTrustedCertificates", "")); | |
1440 } | 1447 } |
1441 | 1448 |
1442 ServerContext context(database, storageArea, false /* not running unit tests */, maxCompletedJobs); | 1449 ServerContext context(database, storageArea, false /* not running unit tests */, maxCompletedJobs); |
1443 | 1450 |
1444 { | 1451 { |