From c9ae70f7a39f7e25e190dbc7e0874254c911972e Mon Sep 17 00:00:00 2001 From: David Woodhouse Date: Mon, 10 Jun 2019 12:35:33 +0100 Subject: [PATCH] Fix pulse build without HAVE_ESP Signed-off-by: David Woodhouse --- pulse.c | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.49.0