diff OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp @ 4430:f5d44e30b429

testing DICOM TLS in Orthanc SCP
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 04 Jan 2021 12:42:45 +0100
parents 5b254bd435d3
children d9473bd5ed43
line wrap: on
line diff
--- a/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp	Sat Jan 02 14:53:24 2021 +0100
+++ b/OrthancFramework/Sources/DicomNetworking/Internals/CommandDispatcher.cpp	Mon Jan 04 12:42:45 2021 +0100
@@ -253,7 +253,9 @@
 
 
 
-    CommandDispatcher* AcceptAssociation(const DicomServer& server, T_ASC_Network *net)
+    CommandDispatcher* AcceptAssociation(const DicomServer& server,
+                                         T_ASC_Network *net,
+                                         bool useDicomTls)
     {
       DcmAssociationConfiguration asccfg;
       char buf[BUFSIZ];
@@ -265,7 +267,7 @@
       cond = ASC_receiveAssociation(net, &assoc, 
                                     /*opt_maxPDU*/ ASC_DEFAULTMAXPDU, 
                                     NULL, NULL,
-                                    /*opt_secureConnection*/ OFFalse,
+                                    useDicomTls /*opt_secureConnection*/,
                                     DUL_NOBLOCK, 1);
 
       if (cond == DUL_NOASSOCIATIONREQUEST)