diff options
author | GDR! <gdr@gdr.name> | 2015-06-19 21:12:33 +0200 |
---|---|---|
committer | GDR! <gdr@gdr.name> | 2015-06-19 21:12:33 +0200 |
commit | 8f9376b7ab3f9fca1514eb63c7ae7d545042b168 (patch) | |
tree | d7e34f75279c8e7b275f5e9e5dd57b2eb19c2bd7 /main.c | |
parent | 97b9fd40dbba9b94144862f719a2a4ca8f12af22 (diff) |
Command line switch for shared secret
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -39,6 +39,9 @@ char *pidfile = NULL; | |||
39 | /* Username to which we suid() in daemon mode */ | 39 | /* Username to which we suid() in daemon mode */ |
40 | char *daemon_username = NULL; | 40 | char *daemon_username = NULL; |
41 | 41 | ||
42 | /* Shared secret used for authentication */ | ||
43 | char *shared_secret = NULL; | ||
44 | |||
42 | fd_set master_server_fds; | 45 | fd_set master_server_fds; |
43 | 46 | ||
44 | /* We keep two hash tables: one indexed by sockfd and another by "connection id" */ | 47 | /* We keep two hash tables: one indexed by sockfd and another by "connection id" */ |
@@ -945,6 +948,7 @@ void help() | |||
945 | fprintf(stderr, "-P <remotehostname>:<remoteport> - forward <remotehostname>:<remoteport> to stdin/stdout (SSH ProxyCommand mode)\n"); | 948 | fprintf(stderr, "-P <remotehostname>:<remoteport> - forward <remotehostname>:<remoteport> to stdin/stdout (SSH ProxyCommand mode)\n"); |
946 | fprintf(stderr, "-p - ping the server from -i and exit\n"); | 949 | fprintf(stderr, "-p - ping the server from -i and exit\n"); |
947 | fprintf(stderr, "-C <dir> - save private key in <dir> instead of /etc/tuntox in server mode\n"); | 950 | fprintf(stderr, "-C <dir> - save private key in <dir> instead of /etc/tuntox in server mode\n"); |
951 | fprintf(stderr, "-s <secret> - shared secret used for connection authentication\n"); | ||
948 | fprintf(stderr, "-d - debug mode\n"); | 952 | fprintf(stderr, "-d - debug mode\n"); |
949 | fprintf(stderr, "-q - quiet mode\n"); | 953 | fprintf(stderr, "-q - quiet mode\n"); |
950 | fprintf(stderr, "-S - send output to syslog instead of stderr\n"); | 954 | fprintf(stderr, "-S - send output to syslog instead of stderr\n"); |