From 467411e19534438c9cf7a4c01395ec3494d9d2d0 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 24 Feb 2014 17:37:50 +0000 Subject: added configure switch for default libgcrypt fixed unused variable warning --- src/configure | 4 ++++ src/options.c | 2 ++ 2 files changed, 6 insertions(+) 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= 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) { -- cgit v1.2.3