Mercurial > hg > orthanc
annotate OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.h @ 4564:5a0adc1c19a9 db-changes
avoid copy of objects in ServerIndex
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 08 Mar 2021 11:08:03 +0100 |
parents | 4a4e33c9082d |
children | 82a314325351 |
rev | line source |
---|---|
4432 | 1 /** |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
4437
d9473bd5ed43
upgrade to year 2021
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4432
diff
changeset
|
5 * Copyright (C) 2017-2021 Osimis S.A., Belgium |
4432 | 6 * |
7 * This program is free software: you can redistribute it and/or | |
8 * modify it under the terms of the GNU Lesser General Public License | |
9 * as published by the Free Software Foundation, either version 3 of | |
10 * the License, or (at your option) any later version. | |
11 * | |
12 * This program is distributed in the hope that it will be useful, but | |
13 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
15 * Lesser General Public License for more details. | |
16 * | |
17 * You should have received a copy of the GNU Lesser General Public | |
18 * License along with this program. If not, see | |
19 * <http://www.gnu.org/licenses/>. | |
20 **/ | |
21 | |
22 | |
23 #pragma once | |
24 | |
25 #if ORTHANC_ENABLE_DCMTK_NETWORKING != 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 # error SSL support must be enabled to use this file | |
35 #endif | |
36 | |
37 | |
38 #include <dcmtk/dcmnet/dimse.h> | |
39 #include <dcmtk/dcmtls/tlslayer.h> | |
40 | |
41 | |
42 namespace Orthanc | |
43 { | |
44 namespace Internals | |
45 { | |
46 DcmTLSTransportLayer* InitializeDicomTls( | |
47 T_ASC_Network *network, | |
48 T_ASC_NetworkRole role, | |
4438
4a4e33c9082d
configuration options for DICOM TLS in Orthanc SCU
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
49 const std::string& ownPrivateKeyPath, // This is the first argument of "+tls" option from DCMTK command-line tools |
4a4e33c9082d
configuration options for DICOM TLS in Orthanc SCU
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
50 const std::string& ownCertificatePath, // This is the second argument of "+tls" option |
4a4e33c9082d
configuration options for DICOM TLS in Orthanc SCU
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
51 const std::string& trustedCertificatesPath); // This is the "--add-cert-file" ("+cf") option |
4432 | 52 } |
53 } |