Mercurial > hg > orthanc
diff OrthancFramework/Sources/DicomNetworking/DicomAssociation.h @ 4432:fcbac3e8ac1c
dicom tls for scu
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Jan 2021 15:59:32 +0100 |
parents | bf7b9edf6b81 |
children | 442c5632177e |
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/DicomAssociation.h Mon Jan 04 14:34:44 2021 +0100 +++ b/OrthancFramework/Sources/DicomNetworking/DicomAssociation.h Mon Jan 04 15:59:32 2021 +0100 @@ -26,6 +26,14 @@ # error The macro ORTHANC_ENABLE_DCMTK_NETWORKING must be set to 1 #endif +#if !defined(ORTHANC_ENABLE_SSL) +# error The macro ORTHANC_ENABLE_SSL must be defined +#endif + +#if ORTHANC_ENABLE_SSL == 1 +# include "Internals/DicomTls.h" +#endif + #include "DicomAssociationParameters.h" #include <dcmtk/dcmnet/dimse.h> @@ -61,6 +69,10 @@ T_ASC_Parameters* params_; T_ASC_Association* assoc_; +#if ORTHANC_ENABLE_SSL == 1 + std::unique_ptr<DcmTLSTransportLayer> tls_; +#endif + void Initialize(); void CheckConnecting(const DicomAssociationParameters& parameters,