X-Git-Url: https://git.syn-net.org/?p=debian%2Fuanytun.git;a=blobdiff_plain;f=src%2Foptions.c;h=f5010bf44b6dc79c49afbc76c39862e5767f9bf8;hp=230079493364e6d03dc9a57cb454dc5ae6af766e;hb=e3f8e33112e2191999c6d6f6b6a767c72db800a0;hpb=b81b2c1954fe3e3317e6fa260c5ffdc9eeee966c diff --git a/src/options.c b/src/options.c index 2300794..f5010bf 100644 --- a/src/options.c +++ b/src/options.c @@ -20,8 +20,9 @@ * This file is part of uAnytun. * * uAnytun is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 3 as - * published by the Free Software Foundation. + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * any later version. * * uAnytun is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -273,6 +274,7 @@ int options_parse(options_t* opt, int argc, char* argv[]) if(ipv6_only) opt->resolv_addr_type_ = IPV6_ONLY; +#ifndef NO_CRYPT if(role) { if(!strcmp(role, "alice") || !strcmp(role, "server") || !strcmp(role, "left")) opt->role_ = ROLE_LEFT; @@ -284,6 +286,7 @@ int options_parse(options_t* opt, int argc, char* argv[]) } free(role); } +#endif return 0; } @@ -446,7 +449,7 @@ void options_print_usage() #endif printf(" [-K|--key] master key to use for encryption\n"); printf(" [-A|--salt] master salt to use for encryption\n"); - printf(" [-e|--role] left (alice) or right (bob)"); + printf(" [-e|--role] left (alice) or right (bob)\n"); printf(" [-c|--cipher] payload encryption algorithm\n"); printf(" [-a|--auth-algo] message authentication algorithm\n"); printf(" [-b|--auth-tag-length] length of the auth tag\n");