CernVM-FS  2.12.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
openssl_version.h
Go to the documentation of this file.
1 
5 #ifndef CVMFS_CRYPTO_OPENSSL_VERSION_H_
6 #define CVMFS_CRYPTO_OPENSSL_VERSION_H_
7 
8 #include <openssl/opensslv.h>
9 
10 // Safeguard when compiling libcvmfs_crypto: make sure we pick up the built-in
11 // LibreSSL and not the system's OpenSSL
12 #ifdef CVMFS_LIBRARY
13 #ifndef LIBRESSL_VERSION_NUMBER
14 #error "picking up OpenSSL includes instead of LibreSSL"
15 #endif
16 #endif
17 
18 #if OPENSSL_VERSION_NUMBER >= 0x10100000L
19  #define OPENSSL_API_INTERFACE_V11
20  #if OPENSSL_VERSION_NUMBER >= 0x10101000L
21  #define OPENSSL_API_INTERFACE_V111
22  #endif
23 #elif OPENSSL_VERSION_NUMBER < 0x00908000L
24  #define OPENSSL_API_INTERFACE_V09
25 #else
26  #define OPENSSL_API_INTERFACE_V10
27 #endif
28 
29 #endif // CVMFS_CRYPTO_OPENSSL_VERSION_H_