MINOR: ssl: Add ssllib_name_startswith precondition
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 11 Oct 2021 13:34:12 +0000 (15:34 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 13 Oct 2021 09:28:08 +0000 (11:28 +0200)
commitb01179aa92f1b5d1b82b0d42cfbedd60b27e99d3
tree78afbcc31816140b9139c46ee8c0d8ffd0d22860
parent1ac65f866813716d0f4c8f803359af842835c0d2
MINOR: ssl: Add ssllib_name_startswith precondition

This new ssllib_name_startswith precondition check can be used to
distinguish application linked with OpenSSL from the ones linked with
other SSL libraries (LibreSSL or BoringSSL namely). This check takes a
string as input and returns 1 when the SSL library's name starts with
the given string. It is based on the OpenSSL_version function which
returns the same output as the "openssl version" command.
include/haproxy/cfgcond-t.h
include/haproxy/tools.h
src/cfgcond.c
src/tools.c