MEDIUM: ssl: add minimal WolfSSL support with OpenSSL compatibility mode
authorUriah Pollock <uriah@wolfssl.com>
Wed, 23 Nov 2022 15:41:25 +0000 (16:41 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Thu, 24 Nov 2022 10:29:03 +0000 (11:29 +0100)
commit3cbf09ed6411d6e28020eefd91f0e70d5b64bcb5
tree85a331f0e5f4be2989e45c7514000374c12fa85e
parent79320cb07414690288dc15068513628fc2031428
MEDIUM: ssl: add minimal WolfSSL support with OpenSSL compatibility mode

This adds a USE_OPENSSL_WOLFSSL option, wolfSSL must be used with the
OpenSSL compatibility layer. This must be used with USE_OPENSSL=1.

WolfSSL build options:

   ./configure --prefix=/opt/wolfssl --enable-haproxy

HAProxy build options:

  USE_OPENSSL=1 USE_OPENSSL_WOLFSSL=1 WOLFSSL_INC=/opt/wolfssl/include/ WOLFSSL_LIB=/opt/wolfssl/lib/ ADDLIB='-Wl,-rpath=/opt/wolfssl/lib'

Using at least the commit 54466b6 ("Merge pull request #5810 from
Uriah-wolfSSL/haproxy-integration") from WolfSSL. (2022-11-23).

This is still to be improved, reg-tests are not supported yet, and more
tests are to be done.

Signed-off-by: William Lallemand <wlallemand@haproxy.org>
Makefile
include/haproxy/openssl-compat.h
src/haproxy.c
src/ssl_ckch.c
src/ssl_sock.c