Skip to content

Commit

Permalink
tls openssl: fixed build error for openssl < 1.1.0
Browse files Browse the repository at this point in the history
- concerns: 0.9.7 >= OPENSSL_VERSION < 1.1.0
  • Loading branch information
franku committed Oct 2, 2018
1 parent db4474b commit 9764b6b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion core/src/lib/tls_openssl.cc
Expand Up @@ -39,7 +39,6 @@
#include <openssl/x509v3.h>

#include "lib/tls_openssl.h"
#include "lib/tls_openssl_crl.h"
#include "lib/tls_openssl_private.h"

#include "parse_conf.h"
Expand Down
1 change: 1 addition & 0 deletions core/src/lib/tls_openssl_crl.cc
Expand Up @@ -27,6 +27,7 @@

#include "include/bareos.h"
#include "lib/crypto_openssl.h"
#include "lib/tls_openssl_crl.h"
#include "lib/bpoll.h"
#include <assert.h>

Expand Down
4 changes: 4 additions & 0 deletions core/src/lib/tls_openssl_crl.h
Expand Up @@ -28,10 +28,14 @@
#ifndef BAREOS_LIB_TLS_OPENSSL_CRL_H_
#define BAREOS_LIB_TLS_OPENSSL_CRL_H_

#if (OPENSSL_VERSION_NUMBER >= 0x00907000L) && (OPENSSL_VERSION_NUMBER < 0x10100000L)

#include <openssl/ssl.h>
#include <string>

bool SetCertificateRevocationList(const std::string &crlfile, SSL_CTX *openssl_ctx);


#endif /* (OPENSSL_VERSION_NUMBER >= 0x00907000L) && (OPENSSL_VERSION_NUMBER < 0x10100000L) */

#endif /* BAREOS_LIB_TLS_OPENSSL_CRL_H_ */
1 change: 1 addition & 0 deletions core/src/lib/tls_openssl_private.cc
Expand Up @@ -26,6 +26,7 @@

#include "lib/bpoll.h"
#include "lib/crypto_openssl.h"
#include "lib/tls_openssl_crl.h"

#include "lib/parse_conf.h"
#include "lib/get_tls_psk_by_fqname_callback.h"
Expand Down

0 comments on commit 9764b6b

Please sign in to comment.