comparison 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
comparison
equal deleted inserted replaced
4429:48ff722fad1f 4430:f5d44e30b429
251 return cond; 251 return cond;
252 } 252 }
253 253
254 254
255 255
256 CommandDispatcher* AcceptAssociation(const DicomServer& server, T_ASC_Network *net) 256 CommandDispatcher* AcceptAssociation(const DicomServer& server,
257 T_ASC_Network *net,
258 bool useDicomTls)
257 { 259 {
258 DcmAssociationConfiguration asccfg; 260 DcmAssociationConfiguration asccfg;
259 char buf[BUFSIZ]; 261 char buf[BUFSIZ];
260 T_ASC_Association *assoc; 262 T_ASC_Association *assoc;
261 OFCondition cond; 263 OFCondition cond;
263 OFString temp_str; 265 OFString temp_str;
264 266
265 cond = ASC_receiveAssociation(net, &assoc, 267 cond = ASC_receiveAssociation(net, &assoc,
266 /*opt_maxPDU*/ ASC_DEFAULTMAXPDU, 268 /*opt_maxPDU*/ ASC_DEFAULTMAXPDU,
267 NULL, NULL, 269 NULL, NULL,
268 /*opt_secureConnection*/ OFFalse, 270 useDicomTls /*opt_secureConnection*/,
269 DUL_NOBLOCK, 1); 271 DUL_NOBLOCK, 1);
270 272
271 if (cond == DUL_NOASSOCIATIONREQUEST) 273 if (cond == DUL_NOASSOCIATIONREQUEST)
272 { 274 {
273 // Timeout 275 // Timeout