]> www.infradead.org Git - users/dwmw2/openconnect.git/commitdiff
Fix pulse build without HAVE_ESP
authorDavid Woodhouse <dwmw2@infradead.org>
Mon, 10 Jun 2019 11:35:33 +0000 (12:35 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Mon, 10 Jun 2019 11:35:33 +0000 (12:35 +0100)
Signed-off-by: David Woodhouse <dwmw2@infradead.org>
pulse.c

diff --git a/pulse.c b/pulse.c
index 2abc8e841e9a917e6745d791caeac5ad358cbf1e..426d0bbe9953865855da2ac2cf65b59f933f1a8e 100644 (file)
--- 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)