Mercurial > hg > orthanc
annotate OrthancFramework/Sources/DicomNetworking/Internals/DicomTls.h @ 5088:8d2c39e8880b
more doc
author | Alain Mazy <am@osimis.io> |
---|---|
date | Mon, 26 Sep 2022 19:08:03 +0200 |
parents | 43e613a7756b |
children | 0ea402b4d901 |
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 | |
4870
43e613a7756b
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4831
diff
changeset
|
5 * Copyright (C) 2017-2022 Osimis S.A., Belgium |
43e613a7756b
upgrade to year 2022
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4831
diff
changeset
|
6 * Copyright (C) 2021-2022 Sebastien Jodogne, ICTEAM UCLouvain, Belgium |
4432 | 7 * |
8 * This program is free software: you can redistribute it and/or | |
9 * modify it under the terms of the GNU Lesser General Public License | |
10 * as published by the Free Software Foundation, either version 3 of | |
11 * the License, or (at your option) any later version. | |
12 * | |
13 * This program is distributed in the hope that it will be useful, but | |
14 * WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
16 * Lesser General Public License for more details. | |
17 * | |
18 * You should have received a copy of the GNU Lesser General Public | |
19 * License along with this program. If not, see | |
20 * <http://www.gnu.org/licenses/>. | |
21 **/ | |
22 | |
23 | |
24 #pragma once | |
25 | |
26 #if ORTHANC_ENABLE_DCMTK_NETWORKING != 1 | |
27 # error The macro ORTHANC_ENABLE_DCMTK_NETWORKING must be set to 1 | |
28 #endif | |
29 | |
30 #if !defined(ORTHANC_ENABLE_SSL) | |
31 # error The macro ORTHANC_ENABLE_SSL must be defined | |
32 #endif | |
33 | |
34 #if ORTHANC_ENABLE_SSL != 1 | |
35 # error SSL support must be enabled to use this file | |
36 #endif | |
37 | |
38 | |
39 #include <dcmtk/dcmnet/dimse.h> | |
40 #include <dcmtk/dcmtls/tlslayer.h> | |
41 | |
42 | |
43 namespace Orthanc | |
44 { | |
45 namespace Internals | |
46 { | |
47 DcmTLSTransportLayer* InitializeDicomTls( | |
48 T_ASC_Network *network, | |
49 T_ASC_NetworkRole role, | |
4438
4a4e33c9082d
configuration options for DICOM TLS in Orthanc SCU
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4437
diff
changeset
|
50 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
|
51 const std::string& ownCertificatePath, // This is the second argument of "+tls" option |
4656
82a314325351
New configuration option: "DicomTlsRemoteCertificateRequired"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4438
diff
changeset
|
52 const std::string& trustedCertificatesPath, // This is the "--add-cert-file" ("+cf") option |
82a314325351
New configuration option: "DicomTlsRemoteCertificateRequired"
Sebastien Jodogne <s.jodogne@gmail.com>
parents:
4438
diff
changeset
|
53 bool requireRemoteCertificate); // "true" means "--require-peer-cert", "false" means "--verify-peer-cert" |
4432 | 54 } |
55 } |