added a wrapper plugin for OpenSSL crypters (AES, 3DES, Blowfish etc.)

This commit is contained in:
Tobias Brunner
2008-04-28 14:25:19 +00:00
parent 1da06b295f
commit 17353034f3
7 changed files with 460 additions and 0 deletions
+17
View File
@@ -496,6 +496,16 @@ AC_ARG_ENABLE(
fi],
)
AC_ARG_ENABLE(
[openssl],
AS_HELP_STRING([--enable-openssl],[enables the OpenSSL crypto plugin. (default is NO).]),
[if test x$enableval = xyes; then
openssl=true
else
openssl=false
fi],
)
dnl =========================
dnl check required programs
dnl =========================
@@ -597,6 +607,11 @@ if test x$mysql = xtrue; then
AC_CHECK_HEADER([sqlite3.h],,[AC_MSG_ERROR([SQLite header sqlite3.h not found!])])
fi
if test x$openssl = xtrue; then
AC_HAVE_LIBRARY([ssl],[LIBS="$LIBS"],[AC_MSG_ERROR([OpenSSL library ssl not found])])
AC_CHECK_HEADER([openssl/evp.h],,[AC_MSG_ERROR([OpenSSL header openssl/evp.h not found!])])
fi
dnl =========================
dnl set Makefile.am vars
dnl =========================
@@ -643,6 +658,7 @@ AM_CONDITIONAL(USE_PLUTO_OR_CHARON, test x$pluto = xtrue -o x$charon = xtrue)
AM_CONDITIONAL(USE_LIBSTRONGSWAN, test x$charon = xtrue -o x$tools = xtrue)
AM_CONDITIONAL(USE_FILE_CONFIG, test x$pluto = xtrue -o x$stroke = xtrue)
AM_CONDITIONAL(USE_PADLOCK, test x$padlock = xtrue)
AM_CONDITIONAL(USE_OPENSSL, test x$openssl = xtrue)
dnl ==============================
dnl set global definitions
@@ -676,6 +692,7 @@ AC_OUTPUT(
src/libstrongswan/plugins/mysql/Makefile
src/libstrongswan/plugins/sqlite/Makefile
src/libstrongswan/plugins/padlock/Makefile
src/libstrongswan/plugins/openssl/Makefile
src/libcrypto/Makefile
src/libfreeswan/Makefile
src/pluto/Makefile