aboutsummaryrefslogtreecommitdiff
path: root/src/or/ntmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/ntmain.c')
-rw-r--r--src/or/ntmain.c16
1 files changed, 14 insertions, 2 deletions
diff --git a/src/or/ntmain.c b/src/or/ntmain.c
index e848314043..ded0e0d307 100644
--- a/src/or/ntmain.c
+++ b/src/or/ntmain.c
@@ -1,8 +1,16 @@
/* Copyright (c) 2001-2004, Roger Dingledine.
* Copyright (c) 2004-2006, Roger Dingledine, Nick Mathewson.
- * Copyright (c) 2007-2013, The Tor Project, Inc. */
+ * Copyright (c) 2007-2016, The Tor Project, Inc. */
/* See LICENSE for licensing information */
+/**
+ * \file ntmain.c
+ *
+ * \brief Entry points for running/configuring Tor as Windows Service.
+ */
+
+#ifdef _WIN32
+
#include "or.h"
#include "config.h"
#include "main.h"
@@ -315,8 +323,10 @@ nt_service_main(void)
case CMD_HASH_PASSWORD:
case CMD_VERIFY_CONFIG:
case CMD_DUMP_CONFIG:
+ case CMD_KEYGEN:
log_err(LD_CONFIG, "Unsupported command (--list-fingerprint, "
- "--hash-password, or --verify-config) in NT service.");
+ "--hash-password, --keygen, --dump-config, or --verify-config) "
+ "in NT service.");
break;
case CMD_RUN_UNITTESTS:
default:
@@ -762,3 +772,5 @@ nt_service_parse_options(int argc, char **argv, int *should_exit)
return 0;
}
+#endif
+