Browse Source

Handle CMD_KEY_EXPIRATION in ntmain.c switch statement

This fixes a compilation warning on windows.

Bug not in any released Tor.
Nick Mathewson 6 years ago
parent
commit
32b4fd5be9
1 changed files with 3 additions and 2 deletions
  1. 3 2
      src/or/ntmain.c

+ 3 - 2
src/or/ntmain.c

@@ -329,9 +329,10 @@ nt_service_main(void)
       case CMD_VERIFY_CONFIG:
       case CMD_DUMP_CONFIG:
       case CMD_KEYGEN:
+      case CMD_KEY_EXPIRATION:
         log_err(LD_CONFIG, "Unsupported command (--list-fingerprint, "
-               "--hash-password, --keygen, --dump-config, or --verify-config) "
-                "in NT service.");
+               "--hash-password, --keygen, --dump-config, --verify-config, "
+               "or --key-expiration) in NT service.");
         break;
       case CMD_RUN_UNITTESTS:
       default: