From 406a24b25d6a2bdd70cacd16de7e899dcb2a8829 Mon Sep 17 00:00:00 2001 From: Damien Miller Date: Fri, 26 Oct 2018 13:43:28 +1100 Subject: fix builds on OpenSSL <= 1.0.x I thought OpenSSL 1.0.x offered the new-style OpenSSL_version_num() API to obtain version number, but they don't. --- openbsd-compat/openssl-compat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'openbsd-compat') diff --git a/openbsd-compat/openssl-compat.h b/openbsd-compat/openssl-compat.h index 9e0264c04..0fbf60df4 100644 --- a/openbsd-compat/openssl-compat.h +++ b/openbsd-compat/openssl-compat.h @@ -33,6 +33,12 @@ int ssh_compatible_openssl(long, long); # error OpenSSL 0.9.8f or greater is required #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L +# define OpenSSL_version_num SSLeay +# define OpenSSL_version SSLeay_version +# define OPENSSL_VERSION SSLEAY_VERSION +#endif + #if OPENSSL_VERSION_NUMBER < 0x10000001L # define LIBCRYPTO_EVP_INL_TYPE unsigned int #else -- cgit v1.2.3