Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp @ 5487:33f8e180edcf
upgraded static build to dcmtk 3.6.8
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 09 Jan 2024 17:34:33 +0100 |
parents | 48b8dae6dc77 |
children | 317850cd46bc |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp Tue Jan 09 17:32:17 2024 +0100 +++ b/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp Tue Jan 09 17:34:33 2024 +0100 @@ -132,7 +132,18 @@ ownPrivateKeyPath); } - if (IsFailure(tls->setCertificateFile(ownCertificatePath.c_str(), DCF_Filetype_PEM /*opt_keyFileFormat*/))) + if (IsFailure(tls->setCertificateFile( + ownCertificatePath.c_str(), DCF_Filetype_PEM /*opt_keyFileFormat*/ +#if DCMTK_VERSION_NUMBER >= 368 + /** + * DICOM BCP 195 RFC 8996 TLS Profile, based on RFC 8996 and RFC 9325. + * This profile only negotiates TLS 1.2 or newer, and will not fall back to + * previous TLS versions. It provides the higher security level offered by the + * 2021 revised edition of BCP 195. + **/ + , TSP_Profile_BCP_195_RFC_8996 +#endif + ))) { throw OrthancException(ErrorCode_BadFileFormat, "Cannot parse PEM file with own certificate for DICOM TLS: " + ownCertificatePath);