Mercurial > hg > orthanc
changeset 5622:335e2079de1f tls-ignore-unexpected-tls
testing OpenSSL ignore_unexpected_eof option
author | Alain Mazy <am@orthanc.team> |
---|---|
date | Mon, 13 May 2024 12:13:50 +0200 |
parents | 1a995c6f9dae |
children | 56e1e7d0f92a |
files | OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.cpp |
diffstat | 1 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 <openssl/ssl.h> #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())))