aboutsummaryrefslogtreecommitdiff
path: root/src/credential/gnunet-credential.c
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2016-12-05 19:57:16 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2016-12-05 19:57:16 +0100
commit3e958fd99a5adeec8245005e44c349dd5be1b082 (patch)
tree17635ca2e0099b8440e584cd23370074da810f05 /src/credential/gnunet-credential.c
parentfcb5ecaede036d2bb89e5123345fd391520c344a (diff)
downloadgnunet-3e958fd99a5adeec8245005e44c349dd5be1b082.tar.gz
gnunet-3e958fd99a5adeec8245005e44c349dd5be1b082.zip
-add simple test
Diffstat (limited to 'src/credential/gnunet-credential.c')
-rw-r--r--src/credential/gnunet-credential.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/credential/gnunet-credential.c b/src/credential/gnunet-credential.c
index 874aa29cb..a7b92447b 100644
--- a/src/credential/gnunet-credential.c
+++ b/src/credential/gnunet-credential.c
@@ -280,7 +280,14 @@ run (void *cls,
280 { 280 {
281 fprintf (stderr, 281 fprintf (stderr,
282 _("Failed to connect to CREDENTIAL\n")); 282 _("Failed to connect to CREDENTIAL\n"));
283 return; 283 GNUNET_SCHEDULER_shutdown ();
284 }
285
286 if (NULL == issuer_attr || NULL == subject_credential)
287 {
288 fprintf (stderr,
289 _("You must provide issuer and subject attributes\n"));
290 GNUNET_SCHEDULER_shutdown ();
284 } 291 }
285 292
286 293
@@ -334,7 +341,7 @@ main (int argc, char *const *argv)
334 {'s', "subject", "PKEY", 341 {'s', "subject", "PKEY",
335 gettext_noop ("The public key of the subject to lookup the credential for"), 1, 342 gettext_noop ("The public key of the subject to lookup the credential for"), 1,
336 &GNUNET_GETOPT_set_string, &subject_key}, 343 &GNUNET_GETOPT_set_string, &subject_key},
337 {'c', "credential", "CRED", 344 {'b', "credential", "CRED",
338 gettext_noop ("The name of the credential presented by the subject"), 1, 345 gettext_noop ("The name of the credential presented by the subject"), 1,
339 &GNUNET_GETOPT_set_string, &subject_credential}, 346 &GNUNET_GETOPT_set_string, &subject_credential},
340 {'i', "issuer", "PKEY", 347 {'i', "issuer", "PKEY",