1 /*
2    BAREOS® - Backup Archiving REcovery Open Sourced
3 
4    Copyright (C) 2005-2010 Free Software Foundation Europe e.V.
5    Copyright (C) 2014-2018 Bareos GmbH & Co. KG
6 
7    This program is Free Software; you can redistribute it and/or
8    modify it under the terms of version three of the GNU Affero General Public
9    License as published by the Free Software Foundation and included
10    in the file LICENSE.
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    Affero General Public License for more details.
16 
17    You should have received a copy of the GNU Affero General Public License
18    along with this program; if not, write to the Free Software
19    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
20    02110-1301, USA.
21 */
22 /*
23  * tls_openssl.c TLS support functions when using OPENSSL backend.
24  *
25  * Author: Landon Fuller <landonf@threerings.net>
26  */
27 
28 #ifndef BAREOS_LIB_TLS_OPENSSL_CRL_H_
29 #define BAREOS_LIB_TLS_OPENSSL_CRL_H_
30 
31 #if (OPENSSL_VERSION_NUMBER >= 0x00907000L) \
32     && (OPENSSL_VERSION_NUMBER < 0x10100000L)
33 
34 #  include <openssl/ssl.h>
35 #  include <string>
36 
37 bool SetCertificateRevocationList(const std::string& crlfile_,
38                                   SSL_CTX* openssl_ctx);
39 
40 
41 #endif /* (OPENSSL_VERSION_NUMBER >= 0x00907000L) && (OPENSSL_VERSION_NUMBER < \
42           0x10100000L) */
43 
44 #endif /* BAREOS_LIB_TLS_OPENSSL_CRL_H_ */
45