summaryrefslogtreecommitdiff
path: root/src/uanytun.c
diff options
context:
space:
mode:
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;