From 1c4f90e7c538f1489ea17be3d2f655c2390d7ccf Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Thu, 16 Mar 2017 15:26:57 +0100 Subject: porting gnunet-publish + others.. --- src/revocation/gnunet-revocation.c | 38 +++++++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 13 deletions(-) (limited to 'src/revocation/gnunet-revocation.c') 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, int main (int argc, char *const *argv) { - static const struct GNUNET_GETOPT_CommandLineOption options[] = { - {'f', "filename", "NAME", - 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 for the the private key associated with the ego NAME "), - 1, &GNUNET_GETOPT_set_string, &revoke_ego}, - {'p', "perform", NULL, - 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"), - 1, &GNUNET_GETOPT_set_string, &test_ego}, + struct GNUNET_GETOPT_CommandLineOption options[] = { + + GNUNET_GETOPT_OPTION_STRING ('f', + "filename", + "NAME", + gettext_noop ("use NAME for the name of the revocation file"), + &filename), + + GNUNET_GETOPT_OPTION_STRING ('R', + "revoke", + "NAME", + gettext_noop ("revoke the private key associated for the the private key associated with the ego NAME "), + &revoke_ego), + + GNUNET_GETOPT_OPTION_SET_ONE ('p', + "perform", + gettext_noop ("actually perform revocation, otherwise we just do the precomputation"), + &perform), + + GNUNET_GETOPT_OPTION_STRING ('t', + "test", + "KEY", + gettext_noop ("test if the public key KEY has been revoked"), + &test_ego), + GNUNET_GETOPT_OPTION_END }; if (GNUNET_OK != GNUNET_STRINGS_get_utf8_args (argc, argv, &argc, &argv)) -- cgit v1.2.3