summaryrefslogtreecommitdiff
path: root/src/or/ntmain.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/or/ntmain.c')
-rw-r--r--src/or/ntmain.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/or/ntmain.c b/src/or/ntmain.c
index 833d870041..b31ed869d6 100644
--- a/src/or/ntmain.c
+++ b/src/or/ntmain.c
@@ -3,6 +3,8 @@
* Copyright (c) 2007-2015, The Tor Project, Inc. */
/* See LICENSE for licensing information */
+#ifdef _WIN32
+
#include "or.h"
#include "config.h"
#include "main.h"
@@ -315,8 +317,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 +766,5 @@ nt_service_parse_options(int argc, char **argv, int *should_exit)
return 0;
}
+#endif
+