summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorGDR! <gdr@gdr.name>2015-06-19 21:12:33 +0200
committerGDR! <gdr@gdr.name>2015-06-19 21:12:33 +0200
commit8f9376b7ab3f9fca1514eb63c7ae7d545042b168 (patch)
treed7e34f75279c8e7b275f5e9e5dd57b2eb19c2bd7 /main.c
parent97b9fd40dbba9b94144862f719a2a4ca8f12af22 (diff)
Command line switch for shared secret
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/main.c b/main.c
index 035f705..bdfe201 100644
--- a/main.c
+++ b/main.c
@@ -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 */
40char *daemon_username = NULL; 40char *daemon_username = NULL;
41 41
42/* Shared secret used for authentication */
43char *shared_secret = NULL;
44
42fd_set master_server_fds; 45fd_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");