BUILD: ssl: define HAVE_CRYPTO_memcmp() based on the library version
authorWilly Tarreau <w@1wt.eu>
Sun, 9 May 2021 09:59:49 +0000 (11:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 9 May 2021 10:10:36 +0000 (12:10 +0200)
commit2a8a2f0223ca840e4336cfa879c6261c83bc9cea
tree252738fd86a6156ffaa0c8e92d8fb942cd218578
parent48584645fbe8ec869b0f7f54b26945aa2aa3c26d
BUILD: ssl: define HAVE_CRYPTO_memcmp() based on the library version

The build fails on versions older than 1.0.1d which is the first one
introducing CRYPTO_memcmp(), so let's have a define for this instead
of enabling it whenever USE_OPENSSL is set. One could also wonder why
we're relying on openssl for such a trivial thing, and a simple local
implementation could also allow to restore lexicographic ordering.
include/haproxy/openssl-compat.h
src/sample.c