summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2009-01-05 14:05:09 +0000
committerChristian Pointner <equinox@anytun.org>2009-01-05 14:05:09 +0000
commit4f47c1aef9ab67cd8c2626983847950f89ffaaeb (patch)
tree211f7990d9001b49dfbf2e8bf53ba0730c3db143 /src/uanytun.c
parentremoved silly anytun 02 compat handling (diff)
added libssl crypto based auth algo HMAC-Sha1
Diffstat (limited to 'src/uanytun.c')
-rw-r--r--src/uanytun.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/uanytun.c b/src/uanytun.c
index 1181689..b33ff43 100644
--- a/src/uanytun.c
+++ b/src/uanytun.c
@@ -64,6 +64,7 @@
#include "sysexec.h"
#ifndef NO_CRYPT
+#ifndef USE_SSL_CRYPTO
#define MIN_GCRYPT_VERSION "1.2.0"
@@ -90,6 +91,7 @@ int init_libgcrypt()
return 0;
}
#endif
+#endif
int main_loop(tun_device_t* dev, udp_socket_t* sock, options_t* opt)
{
@@ -292,6 +294,7 @@ int main(int argc, char* argv[])
log_printf(NOTICE, "just started...");
#ifndef NO_CRYPT
+#ifndef USE_SSL_CRYPTO
ret = init_libgcrypt();
if(ret) {
log_printf(ERR, "error on libgcrpyt initialization, exitting");
@@ -299,6 +302,7 @@ int main(int argc, char* argv[])
exit(ret);
}
#endif
+#endif
tun_device_t dev;