MINOR: cfgcond: implements openssl_version_atleast and openssl_version_before
authorWilliam Lallemand <wlallemand@haproxy.org>
Sat, 21 Aug 2021 21:59:56 +0000 (23:59 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Sat, 21 Aug 2021 22:30:24 +0000 (00:30 +0200)
commit3aeb3f934772bcced0d0a4e349384ea0dbeab009
tree78702af8a3090615b42a134e9d1d1d803d8cfff5
parent44d862d8d403ebb41dd20246ab7ba7df0285a73d
MINOR: cfgcond: implements openssl_version_atleast and openssl_version_before

Implements a way of checking the running openssl version:

If the OpenSSL support was not compiled within HAProxy it will returns a
error, so it's recommanded to do a SSL feature check before:

$ ./haproxy -cc 'feature(OPENSSL) && openssl_version_atleast(0.9.8zh) && openssl_version_before(3.0.0)'

This will allow to select the SSL reg-tests more carefully.
include/haproxy/cfgcond-t.h
include/haproxy/tools.h
src/cfgcond.c
src/tools.c