mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-12-06 19:41:15 +01:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user