build: Allow ipsec-mb plugin to build with libipsec_mb 0.55 29/33829/8
authorNick Brown <nickbroon@gmail.com>
Mon, 27 Sep 2021 15:53:23 +0000 (16:53 +0100)
committerDamjan Marion <dmarion@me.com>
Mon, 4 Oct 2021 18:31:46 +0000 (18:31 +0000)
commitee1ca438b3fd286536dc8a56549c5658a23678c2
tree8851b9c4d6f45a9904a33981d12741579abbdb94
parent3effb4e63068f625f6137cef665ed9783da8e542
build: Allow ipsec-mb plugin to build with libipsec_mb 0.55

The 0.55 version of libipsec_mb does not support the chacha functions
used in the plugin.

The missing symobls are:
ipsecmb_ops_chacha_poly
ipsecmb_ops_chacha_poly_chained
IMB_CIPHER_DIRECTION

Check for ipsecmb_ops_chacha_poly() and conditionalise the chacha code
in the plugin on this.

ipsec_mb 0.55 is the version currently found in Debian Stable (bullseye)

Type: make
Signed-off-by: Nick Brown <nickbroon@gmail.com>
Change-Id: I88c962ac4f99a58b5cd61fb9b75f692e27d4ec30
src/plugins/crypto_ipsecmb/CMakeLists.txt
src/plugins/crypto_ipsecmb/ipsecmb.c