Skip to content

Commit

Permalink
openssl: require at least OpenSSL v1.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
franku committed Aug 26, 2020
1 parent 55da82c commit 6cb95b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/cmake/BareosFindAllLibraries.cmake
Expand Up @@ -44,6 +44,9 @@ include(FindOpenSSL)

if(${OPENSSL_FOUND})
set(HAVE_OPENSSL 1)
if(OPENSSL_VERSION VERSION_LESS "1.0.2")
message(FATAL_ERROR "Need at least OpenSSL version 1.0.2")
endif()
endif()

include(BareosFindLibraryAndHeaders)
Expand Down
3 changes: 3 additions & 0 deletions core/src/lib/tls_openssl_private.cc
Expand Up @@ -66,6 +66,9 @@ TlsOpenSslPrivate::TlsOpenSslPrivate()

/* the SSL_CTX object is the factory that creates
* openssl objects, so initialize this first */
#if (OPENSSL_VERSION_NUMBER < 0x10002000L)
#error "OPENSSL VERSION < 1.0.2 not supported"
#endif

#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
openssl_ctx_ = SSL_CTX_new(TLS_method());
Expand Down

0 comments on commit 6cb95b5

Please sign in to comment.