diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-03-04 14:38:28 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-03-04 14:38:28 +0000 |
commit | cd76ea7b25ac497f523061874261af542bda6191 (patch) | |
tree | 72fde764bfedcfb3a346f92dc353a38c10513fa3 /src/util | |
parent | f8a243de65a26b382ed76be77598e285876d85fd (diff) | |
download | gnunet-cd76ea7b25ac497f523061874261af542bda6191.tar.gz gnunet-cd76ea7b25ac497f523061874261af542bda6191.zip |
-fix
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/gnunet-rsa.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/util/gnunet-rsa.c b/src/util/gnunet-rsa.c index ba0d16a74..2dd1f376f 100644 --- a/src/util/gnunet-rsa.c +++ b/src/util/gnunet-rsa.c | |||
@@ -25,7 +25,6 @@ | |||
25 | */ | 25 | */ |
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include "gnunet_util_lib.h" | 27 | #include "gnunet_util_lib.h" |
28 | #include "gnunet_rsa_service.h" | ||
29 | 28 | ||
30 | 29 | ||
31 | /** | 30 | /** |
@@ -50,12 +49,12 @@ run (void *cls, char *const *args, const char *cfgfile, | |||
50 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pub; | 49 | struct GNUNET_CRYPTO_RsaPublicKeyBinaryEncoded pub; |
51 | char *s; | 50 | char *s; |
52 | 51 | ||
53 | if (argc == 0) | 52 | if (NULL == args[0]) |
54 | { | 53 | { |
55 | fprintf (stderr, _("No hostkey file specified on command line\n")); | 54 | fprintf (stderr, _("No hostkey file specified on command line\n")); |
56 | return; | 55 | return; |
57 | } | 56 | } |
58 | pk = GNUNET_CRYPTO_rsa_key_create_from_file (argv[0]); | 57 | pk = GNUNET_CRYPTO_rsa_key_create_from_file (args[0]); |
59 | if (print) | 58 | if (print) |
60 | { | 59 | { |
61 | GNUNET_CRYPTO_rsa_key_get_public (pk, &pub); | 60 | GNUNET_CRYPTO_rsa_key_get_public (pk, &pub); |