# HG changeset patch # User Alain Mazy # Date 1715595230 -7200 # Node ID 335e2079de1f8819e88ecd35810d7429afe7e30d # Parent 1a995c6f9dae5f2c2e24435cba245ac5455ebc46 testing OpenSSL ignore_unexpected_eof option diff -r 1a995c6f9dae -r 335e2079de1f OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp --- a/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp Thu May 09 10:43:10 2024 +0200 +++ b/OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp Mon May 13 12:13:50 2024 +0200 @@ -27,7 +27,7 @@ #include "../../Logging.h" #include "../../OrthancException.h" #include "../../SystemToolbox.h" - +#include #if DCMTK_VERSION_NUMBER < 364 # define DCF_Filetype_PEM SSL_FILETYPE_PEM @@ -165,6 +165,9 @@ { throw OrthancException(ErrorCode_InternalError, "Cannot activate the cipher suites for DICOM TLS"); } + + 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())))