comparison 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
comparison
equal deleted inserted replaced
4431:b7f27b116685 4432:fcbac3e8ac1c
22 22
23 #pragma once 23 #pragma once
24 24
25 #if ORTHANC_ENABLE_DCMTK_NETWORKING != 1 25 #if ORTHANC_ENABLE_DCMTK_NETWORKING != 1
26 # error The macro ORTHANC_ENABLE_DCMTK_NETWORKING must be set to 1 26 # error The macro ORTHANC_ENABLE_DCMTK_NETWORKING must be set to 1
27 #endif
28
29 #if !defined(ORTHANC_ENABLE_SSL)
30 # error The macro ORTHANC_ENABLE_SSL must be defined
31 #endif
32
33 #if ORTHANC_ENABLE_SSL == 1
34 # include "Internals/DicomTls.h"
27 #endif 35 #endif
28 36
29 #include "DicomAssociationParameters.h" 37 #include "DicomAssociationParameters.h"
30 38
31 #include <dcmtk/dcmnet/dimse.h> 39 #include <dcmtk/dcmnet/dimse.h>
58 std::vector<ProposedPresentationContext> proposed_; 66 std::vector<ProposedPresentationContext> proposed_;
59 AcceptedPresentationContexts accepted_; 67 AcceptedPresentationContexts accepted_;
60 T_ASC_Network* net_; 68 T_ASC_Network* net_;
61 T_ASC_Parameters* params_; 69 T_ASC_Parameters* params_;
62 T_ASC_Association* assoc_; 70 T_ASC_Association* assoc_;
71
72 #if ORTHANC_ENABLE_SSL == 1
73 std::unique_ptr<DcmTLSTransportLayer> tls_;
74 #endif
63 75
64 void Initialize(); 76 void Initialize();
65 77
66 void CheckConnecting(const DicomAssociationParameters& parameters, 78 void CheckConnecting(const DicomAssociationParameters& parameters,
67 const OFCondition& cond); 79 const OFCondition& cond);