# HG changeset patch # User Alain Mazy # Date 1715672641 -7200 # Node ID 56e1e7d0f92adffbfa801135b178568aa82157a5 # Parent 335e2079de1f8819e88ecd35810d7429afe7e30d TLS test code diff -r 335e2079de1f -r 56e1e7d0f92a OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp --- 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())))