Mercurial > hg > orthanc
comparison OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.h @ 4432:fcbac3e8ac1c
dicom tls for scu
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Mon, 04 Jan 2021 15:59:32 +0100 |
parents | |
children | d9473bd5ed43 |
comparison
equal
deleted
inserted
replaced
4431:b7f27b116685 | 4432:fcbac3e8ac1c |
---|---|
1 /** | |
2 * Orthanc - A Lightweight, RESTful DICOM Store | |
3 * Copyright (C) 2012-2016 Sebastien Jodogne, Medical Physics | |
4 * Department, University Hospital of Liege, Belgium | |
5 * Copyright (C) 2017-2020 Osimis S.A., Belgium | |
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, | |
49 const std::string& ownPrivateKeyFile, // This is the first argument of "+tls" option from DCMTK command-line tools | |
50 const std::string& ownCertificateFile, // This is the second argument of "+tls" option | |
51 const std::string& trustedCertificatesFile); // This is the "--add-cert-file" ("+cf") option | |
52 } | |
53 } |