summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2014-02-24 17:37:50 +0000
committerChristian Pointner <equinox@anytun.org>2014-02-24 17:37:50 +0000
commit467411e19534438c9cf7a4c01395ec3494d9d2d0 (patch)
treec3cf3894d7c5ce5a44a1ee47ccfd4409490ad999
parentupdated examples for rail mode (diff)
added configure switch for default libgcrypt
fixed unused variable warning
-rwxr-xr-xsrc/configure4
-rw-r--r--src/options.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/src/configure b/src/configure
index 90a5739..542b4b4 100755
--- a/src/configure
+++ b/src/configure
@@ -60,6 +60,7 @@ print_usage() {
echo " --no-manpage dont't install manpage"
echo " --examplesdir=<DIR> the path to the examples files (default: $PREFIX/share/examples)"
echo " --no-examples dont't install example files"
+ echo " --use-gcrypt use libgcrypt (this is the default)"
echo " --use-ssl-crypto use ssl crypto library instead of libgcrypt"
echo " --no-crypto disable crypto at all (only NULL cipher)"
echo " --disable-passphrase disable master key and salt passphrase"
@@ -97,6 +98,9 @@ do
--no-examples)
INSTALLEXAMPLES=0
;;
+ --use-gcrypt)
+ CRYPTO_LIB='gcrypt'
+ ;;
--use-ssl-crypto)
CRYPTO_LIB='ssl'
;;
diff --git a/src/options.c b/src/options.c
index 240a286..4b5df26 100644
--- a/src/options.c
+++ b/src/options.c
@@ -224,7 +224,9 @@ int options_parse(options_t* opt, int argc, char* argv[])
argc--;
+#ifndef NO_CRYPT
char* role = NULL;
+#endif
int i, ipv4_only = 0, ipv6_only = 0;
for(i=1; argc > 0; ++i)
{