diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2021-01-30 15:10:52 +0100 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2021-01-30 15:56:28 +0100 |
commit | 2f44ef51f48d39eb42d475cf753b93838844de15 (patch) | |
tree | f71be2fd1e70eddb95fef58c54f09c3c23d2f1ff /tls-aux.h | |
parent | f2626bc6f79d7a48da2e281ba3736504ed078e04 (diff) | |
download | fetchmail-2f44ef51f48d39eb42d475cf753b93838844de15.tar.gz fetchmail-2f44ef51f48d39eb42d475cf753b93838844de15.tar.bz2 fetchmail-2f44ef51f48d39eb42d475cf753b93838844de15.zip |
--version: print OpenSSL versions build/run-time and directories
Diffstat (limited to 'tls-aux.h')
-rw-r--r-- | tls-aux.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tls-aux.h b/tls-aux.h new file mode 100644 index 00000000..696020a3 --- /dev/null +++ b/tls-aux.h @@ -0,0 +1,25 @@ +#ifndef TLS_AUX_H +#define TLS_AUX_H 1 + +#include "config.h" +#include "fetchmail.h" + + +#ifdef SSL_ENABLE +#include <openssl/opensslv.h> + +# if defined(LIBRESSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER < 0x1010000fL +# undef OSSL110_API +# else +# define OSSL110_API 1 +# endif +# if OPENSSL_VERSION_NUMBER < 0x1010000fL +# define OpenSSL_version(t) SSLeay_version((t)) +# define OpenSSL_version_num() SSLeay() +# define OPENSSL_VERSION (SSLEAY_VERSION) +# define OPENSSL_DIR (SSLEAY_DIR) +# define OPENSSL_ENGINES_DIR (-1) +# endif +#endif /* SSL_ENABLE */ + +#endif /* TLS_AUX_H */ |