MINOR: ssl: add an openssl version string parser
authorWilliam Lallemand <wlallemand@haproxy.org>
Sat, 21 Aug 2021 21:16:06 +0000 (23:16 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Sat, 21 Aug 2021 21:44:02 +0000 (23:44 +0200)
commit44d862d8d403ebb41dd20246ab7ba7df0285a73d
treeda9fd4619bb1ce18cc9a5fcffdfa82c280fa78ac
parentfff1e583aa86551f88b95bbe7ca9960304d1632d
MINOR: ssl: add an openssl version string parser

openssl_version_parser() parse a string in the OpenSSL version format
which is documented here:

https://www.openssl.org/docs/man1.1.1/man3/OPENSSL_VERSION_NUMBER.html

The function returns an unsigned int that could be used for comparing
openssl versions.
include/haproxy/ssl_utils.h
src/ssl_utils.c