Mercurial > hg > orthanc
changeset 5623:56e1e7d0f92a tls-ignore-unexpected-tls
TLS test code
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Tue, 14 May 2024 09:44:01 +0200 |
parents | 335e2079de1f |
children | d9824edad40a |
files | OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp Mon May 13 12:13:50 2024 +0200 +++ b/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp Tue May 14 09:44:01 2024 +0200 @@ -156,7 +156,9 @@ } #if DCMTK_VERSION_NUMBER >= 364 - if (IsFailure(tls->setTLSProfile(TSP_Profile_BCP195 /*opt_tlsProfile*/))) + // TODO: add parameters to select TSP_Profile ? + if (IsFailure(tls->setTLSProfile(TSP_Profile_AES /*opt_tlsProfile*/))) + //if (IsFailure(tls->setTLSProfile(TSP_Profile_BCP195 /*opt_tlsProfile*/))) { throw OrthancException(ErrorCode_InternalError, "Cannot set the DICOM TLS profile"); } @@ -166,8 +168,10 @@ throw OrthancException(ErrorCode_InternalError, "Cannot activate the cipher suites for DICOM TLS"); } + // TODO: add parameters to enable/disable IGNORE_UNEXPECTED_EOF ? DcmTLSTransportLayer::native_handle_type sslNativeHandle = tls->getNativeHandle(); SSL_CTX_set_options(sslNativeHandle, SSL_OP_IGNORE_UNEXPECTED_EOF); + #else CLOG(INFO, DICOM) << "Using the following cipher suites for DICOM TLS: " << opt_ciphersuites; if (IsFailure(tls->setCipherSuites(opt_ciphersuites.c_str())))