summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2013-11-22 21:06:18 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2013-11-22 21:06:18 +0000
commitf46828a09b86390b0c53cebb5ba88550b3d28f48 (patch)
tree9143fa2a9dba1478ebfcece311b3a81e55258f03
parentf8a47956eb2d0ffabe2e3cb6b9d5695537eeda85 (diff)
additional check for filename
-rw-r--r--src/revocation/gnunet-revocation.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/revocation/gnunet-revocation.c b/src/revocation/gnunet-revocation.c
index ae4f93dc6..59f47ab97 100644
--- a/src/revocation/gnunet-revocation.c
+++ b/src/revocation/gnunet-revocation.c
@@ -429,6 +429,13 @@ run (void *cls,
}
if (NULL != revoke_ego)
{
+ if ( !perform && (NULL == filename) )
+ {
+ FPRINTF (stderr,
+ "%s",
+ _("No filename to store revocation certificate given.\n"));
+ return;
+ }
/* main code here */
el = GNUNET_IDENTITY_ego_lookup (cfg,
revoke_ego,
@@ -492,10 +499,10 @@ main (int argc, char *const *argv)
gettext_noop ("use NAME for the name of the revocation file"),
1, &GNUNET_GETOPT_set_string, &filename},
{'R', "revoke", "NAME",
- gettext_noop ("revoke the private key associated with the ego NAME "),
+ gettext_noop ("revoke the private key associated for the the private key associated with the ego NAME "),
1, &GNUNET_GETOPT_set_string, &revoke_ego},
{'p', "perform", NULL,
- gettext_noop ("actually perform the revocation revocation file, otherwise we just do the precomputation"),
+ gettext_noop ("actually perform revocation, otherwise we just do the precomputation"),
0, &GNUNET_GETOPT_set_one, &perform},
{'t', "test", "KEY",
gettext_noop ("test if the public key KEY has been revoked"),