comparison OrthancFramework/Sources/DicomNetworking/DicomAssociationParameters.cpp @ 5658:4b7bc21db336

DicomTlsTrustedCertificates not required anymore for SCU when DicomTlsRemoteCertificateRequired is false
author Alain Mazy <am@orthanc.team>
date Tue, 18 Jun 2024 10:27:28 +0200
parents b1a18218860c
children
comparison
equal deleted inserted replaced
5657:dedbf019a707 5658:4b7bc21db336
193 else if (ownCertificatePath_.empty()) 193 else if (ownCertificatePath_.empty())
194 { 194 {
195 throw OrthancException(ErrorCode_BadSequenceOfCalls, 195 throw OrthancException(ErrorCode_BadSequenceOfCalls,
196 "DICOM TLS - No path to the local certificate was provided"); 196 "DICOM TLS - No path to the local certificate was provided");
197 } 197 }
198 else if (trustedCertificatesPath_.empty()) 198 else if (remoteCertificateRequired_ && trustedCertificatesPath_.empty())
199 { 199 {
200 throw OrthancException(ErrorCode_BadSequenceOfCalls, 200 throw OrthancException(ErrorCode_BadSequenceOfCalls,
201 "DICOM TLS - No path to the trusted remote certificates was provided"); 201 "DICOM TLS - No path to the trusted remote certificates was provided");
202 } 202 }
203 } 203 }