From: David Woodhouse Date: Mon, 10 Jun 2019 11:35:33 +0000 (+0100) Subject: Fix pulse build without HAVE_ESP X-Git-Tag: v8.04~33 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=c9ae70f7a39f7e25e190dbc7e0874254c911972e;p=users%2Fdwmw2%2Fopenconnect.git Fix pulse build without HAVE_ESP Signed-off-by: David Woodhouse --- diff --git a/pulse.c b/pulse.c index 2abc8e84..426d0bbe 100644 --- a/pulse.c +++ b/pulse.c @@ -1742,6 +1742,7 @@ static int handle_main_config_packet(struct openconnect_info *vpninfo, static int handle_esp_config_packet(struct openconnect_info *vpninfo, unsigned char *bytes, int len) { +#ifdef HAVE_ESP struct esp *esp; int secretslen; uint32_t spi; @@ -1811,6 +1812,9 @@ static int handle_esp_config_packet(struct openconnect_info *vpninfo, 0, 0x40 - vpninfo->enc_key_len - vpninfo->hmac_key_len); return 0; +#else + return -EINVAL; +#endif } int pulse_connect(struct openconnect_info *vpninfo)