[Swan-dev] problems with Libreswan 3.1[56] build for Linux 3.14
Paul Wouters
paul at nohats.ca
Fri Mar 4 16:55:31 UTC 2016
On Thu, 3 Mar 2016, Neal P. Murphy wrote:
> Given Makefile.inc.local content of:
> ----
> INITSYSTEM = sysvinit
> USE_LIBCURL = false
> USE_XAUTHPAM = false
> INC_USRLOCAL = /usr
> ----
> -MMD -MF ./ikev1_xauth.d \
> -o ./ikev1_xauth.o \
> -c /build/sources/libreswan/libreswan-3.16/programs/pluto/ikev1_xauth.c
> /build/sources/libreswan/libreswan-3.16/programs/pluto/ikev1_xauth.c: In function 'ikev1_do_pam_authentication':
> /build/sources/libreswan/libreswan-3.16/programs/pluto/ikev1_xauth.c:1190:24: error: storage size of 'parg' isn't known
I just pushed a fix for this. I've also attached it to this email,
Paul
-------------- next part --------------
commit b2be70d3d13b0b2d70496fd6406298cf8bb305af
Author: Paul Wouters <pwouters at redhat.com>
Date: Fri Mar 4 11:54:12 2016 -0500
pluto: add missing #ifdef for ikev1_do_pam_authentication()
diff --git a/programs/pluto/ikev1_xauth.c b/programs/pluto/ikev1_xauth.c
index 1e26fab..7f99ed2 100644
--- a/programs/pluto/ikev1_xauth.c
+++ b/programs/pluto/ikev1_xauth.c
@@ -1216,6 +1216,7 @@ static bool do_file_authentication(void *varg)
return win;
}
+#ifdef XAUTH_HAVE_PAM
/* IN AN AUTH THREAD */
static bool ikev1_do_pam_authentication(const struct xauth_thread_arg *arg)
{
@@ -1252,6 +1253,7 @@ static bool ikev1_do_pam_authentication(const struct xauth_thread_arg *arg)
pfreeany(parg.ra);
return (results);
}
+#endif
/*
* Main authentication routine will then call the actual compiled-in
More information about the Swan-dev
mailing list