пн, 16 дек. 2019 г. в 12:47, William Lallemand <wlallem...@haproxy.com>:
> Hello Rosen, > > On Sun, Dec 15, 2019 at 11:04:37PM -0800, Rosen Penev wrote: > > -#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || (LIBRESSL_VERSION_NUMBER > < 0x20700000L) > > +#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || \ > > + (defined(LIBRESSL_VERSION_NUMBER) && (LIBRESSL_VERSION_NUMBER < > 0x20700000L)) > > > > It's probably cleaner to use the HA_OPENSSL_VERSION_NUMBER function and > something like this: > @Rosen Penev <ros...@gmail.com> there was some discussion whether to trust OPENSSL_VERSION_NUMBER or not. LibreSSL pollutes that macro, it sets it to 2.0.0 so ... new macro was introduced instead: HA_OPENSSL_VERSION_NUMBER https://github.com/haproxy/haproxy/blob/master/include/common/openssl-compat.h#L27-L36 > > #if (HA_OPENSSL_VERSION_NUMBER < 0x1010000fL) && > (LIBRESSL_VERSION_NUMBER < 0x2070000fL) > > -- > William Lallemand > >