diff options
Diffstat (limited to 'src/revocation/gnunet-revocation.c')
-rw-r--r-- | src/revocation/gnunet-revocation.c | 38 |
1 files changed, 25 insertions, 13 deletions
diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c index 133468789..7b40c83d7 100644 --- a/src/revocation/gnunet-revocation.c +++ b/src/revocation/gnunet-revocation.c | |||
@@ -527,19 +527,31 @@ run (void *cls, | |||
527 | int | 527 | int |
528 | main (int argc, char *const *argv) | 528 | main (int argc, char *const *argv) |
529 | { | 529 | { |
530 | static const struct GNUNET_GETOPT_CommandLineOption options[] = { | 530 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
531 | {'f', "filename", "NAME", | 531 | |
532 | gettext_noop ("use NAME for the name of the revocation file"), | 532 | GNUNET_GETOPT_OPTION_STRING ('f', |
533 | 1, &GNUNET_GETOPT_set_string, &filename}, | 533 | "filename", |
534 | {'R', "revoke", "NAME", | 534 | "NAME", |
535 | gettext_noop ("revoke the private key associated for the the private key associated with the ego NAME "), | 535 | gettext_noop ("use NAME for the name of the revocation file"), |
536 | 1, &GNUNET_GETOPT_set_string, &revoke_ego}, | 536 | &filename), |
537 | {'p', "perform", NULL, | 537 | |
538 | gettext_noop ("actually perform revocation, otherwise we just do the precomputation"), | 538 | GNUNET_GETOPT_OPTION_STRING ('R', |
539 | 0, &GNUNET_GETOPT_set_one, &perform}, | 539 | "revoke", |
540 | {'t', "test", "KEY", | 540 | "NAME", |
541 | gettext_noop ("test if the public key KEY has been revoked"), | 541 | gettext_noop ("revoke the private key associated for the the private key associated with the ego NAME "), |
542 | 1, &GNUNET_GETOPT_set_string, &test_ego}, | 542 | &revoke_ego), |
543 | |||
544 | GNUNET_GETOPT_OPTION_SET_ONE ('p', | ||
545 | "perform", | ||
546 | gettext_noop ("actually perform revocation, otherwise we just do the precomputation"), | ||
547 | &perform), | ||
548 | |||
549 | GNUNET_GETOPT_OPTION_STRING ('t', | ||
550 | "test", | ||
551 | "KEY", | ||
552 | gettext_noop ("test if the public key KEY has been revoked"), | ||
553 | &test_ego), | ||
554 | |||
543 | GNUNET_GETOPT_OPTION_END | 555 | GNUNET_GETOPT_OPTION_END |
544 | }; | 556 | }; |
545 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) | 557 | if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) |