a (incomplete) implementation of draft-sheffer-ikev2-gtc-00.txt using PAM

This commit is contained in:
Martin Willi
2008-08-21 12:10:07 +00:00
parent dc6a2edd0d
commit 1caa265c61
12 changed files with 1009 additions and 6 deletions
+15
View File
@@ -401,6 +401,14 @@ AC_ARG_ENABLE(
fi]
)
AC_ARG_ENABLE(
[eap-gtc],
AS_HELP_STRING([--enable-eap-gtc],[build PAM based GTC authenication module for EAP (default is NO).]),
[if test x$enableval = xyes; then
eap_gtc=true
fi]
)
AC_ARG_ENABLE(
[eap-aka],
AS_HELP_STRING([--enable-eap-aka],[build AKA authentication module for EAP (default is NO).]),
@@ -719,6 +727,11 @@ if test x$nm = xtrue; then
AC_SUBST(nm_LIBS)
fi
if test x$eap_gtc = xtrue; then
AC_HAVE_LIBRARY([pam],[LIBS="$LIBS"],[AC_MSG_ERROR([PAM library not found])])
AC_CHECK_HEADER([security/pam_appl.h],,[AC_MSG_ERROR([PAM header security/pam_appl.h not found!])])
fi
dnl ======================================
dnl collect all plugins for libstrongswan
dnl ======================================
@@ -820,6 +833,7 @@ AM_CONDITIONAL(USE_UNIT_TESTS, test x$unittest = xtrue)
AM_CONDITIONAL(USE_EAP_SIM, test x$eap_sim = xtrue)
AM_CONDITIONAL(USE_EAP_IDENTITY, test x$eap_identity = xtrue)
AM_CONDITIONAL(USE_EAP_MD5, test x$eap_md5 = xtrue)
AM_CONDITIONAL(USE_EAP_GTC, test x$eap_gtc = xtrue)
AM_CONDITIONAL(USE_EAP_AKA, test x$eap_aka = xtrue)
dnl other options
@@ -887,6 +901,7 @@ AC_OUTPUT(
src/charon/plugins/eap_aka/Makefile
src/charon/plugins/eap_identity/Makefile
src/charon/plugins/eap_md5/Makefile
src/charon/plugins/eap_gtc/Makefile
src/charon/plugins/eap_sim/Makefile
src/charon/plugins/smp/Makefile
src/charon/plugins/sql/Makefile