diff options
author | olavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53> | 2008-11-10 18:33:55 +0000 |
---|---|---|
committer | olavmrk <olavmrk@a716ebb1-153a-0410-b759-cfb97c6a1b53> | 2008-11-10 18:33:55 +0000 |
commit | e8069a282501ffda569d1f84c669d285400b12b1 (patch) | |
tree | 053f9cf64f31e890e2f0be1f14b88f92c4253def /configure.ac | |
parent | 18a8e091a690e942cdc9dc12fb22502052b00998 (diff) | |
download | mod_auth_mellon-e8069a282501ffda569d1f84c669d285400b12b1.tar.gz mod_auth_mellon-e8069a282501ffda569d1f84c669d285400b12b1.tar.xz mod_auth_mellon-e8069a282501ffda569d1f84c669d285400b12b1.zip |
Use lasso_server_new_from_buffer if available.
Recent versions of Lasso supports loading the SP metadata,
certificate and private key from memory. This patch changes mod_mellon
to use this function if it is available. This makes it possible to store
the SP private key readable only from root.
Thanks to Emmanuel Dreyfus for this patch.
git-svn-id: https://modmellon.googlecode.com/svn/trunk@35 a716ebb1-153a-0410-b759-cfb97c6a1b53
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 2095bdd..66d2a01 100644 --- a/configure.ac +++ b/configure.ac @@ -47,6 +47,10 @@ AC_SUBST(APXS2) # We need the lasso library for SAML2 communication. PKG_CHECK_MODULES(LASSO, lasso) +saved_LIBS=$LIBS; LIBS="$LIBS $LASSO_LIBS"; +AC_CHECK_LIB(lasso, lasso_server_new_from_buffers, + LASSO_CFLAGS="$LASSO_CFLAGS -DHAVE_lasso_server_new_from_buffers") +LIBS=$saved_LIBS; AC_SUBST(LASSO_CFLAGS) AC_SUBST(LASSO_LIBS) |