diff options
author | Nick Mathewson <nickm@torproject.org> | 2008-01-10 17:08:05 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2008-01-10 17:08:05 +0000 |
commit | c508fa5aec04b52b6dffa75de960fa5f579307bb (patch) | |
tree | 9055acbeaf6e20378f90a42d491d54500232a938 /src/tools/tor-gencert.c | |
parent | ca5f670fab9028053972443d4d3ec31b6c5a7680 (diff) | |
download | tor-c508fa5aec04b52b6dffa75de960fa5f579307bb.tar.gz tor-c508fa5aec04b52b6dffa75de960fa5f579307bb.zip |
r17550@catbus: nickm | 2008-01-10 12:08:01 -0500
Add a manual page for tor-gencert. Also implement the missing -s option in tor-gencert, and fix the info message for when no cert file is specified.
svn:r13091
Diffstat (limited to 'src/tools/tor-gencert.c')
-rw-r--r-- | src/tools/tor-gencert.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/tools/tor-gencert.c b/src/tools/tor-gencert.c index d54f0ec40b..34499883f5 100644 --- a/src/tools/tor-gencert.c +++ b/src/tools/tor-gencert.c @@ -96,6 +96,12 @@ parse_commandline(int argc, char **argv) return 1; } identity_key_file = tor_strdup(argv[++i]); + } else if (!strcmp(argv[i], "-s")) { + if (i+1>=argc) { + fprintf(stderr, "No argument to -s\n"); + return 1; + } + signing_key_file = tor_strdup(argv[++i]); } else if (!strcmp(argv[i], "-c")) { if (i+1>=argc) { fprintf(stderr, "No argument to -c\n"); @@ -158,7 +164,7 @@ parse_commandline(int argc, char **argv) if (!certificate_file) { certificate_file = tor_strdup("./authority_certificate"); log_info(LD_GENERAL, "No signing key file given; defaulting to %s", - signing_key_file); + certificate_file); } return 0; } |