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
This commit is contained in:
Nick Mathewson
2008-01-10 17:08:05 +00:00
parent ca5f670fab
commit c508fa5aec
5 changed files with 92 additions and 3 deletions
+7 -1
View File
@@ -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;
}