From 7b8acf8915fcedc4d905487ce0f7f3ff4ab201f4 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 19 Aug 2013 19:09:28 +0000 Subject: -eliminate more uses of ShortHashCode, breaks signatures --- src/util/gnunet-ecc.c | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'src/util/gnunet-ecc.c') diff --git a/src/util/gnunet-ecc.c b/src/util/gnunet-ecc.c index 0805e3f94..103f8eff2 100644 --- a/src/util/gnunet-ecc.c +++ b/src/util/gnunet-ecc.c @@ -39,11 +39,6 @@ static int print_public_key; */ static int print_peer_identity; -/** - * Flag for printing short hash of public key. - */ -static int print_short_identity; - /** * Option set to create a bunch of keys at once. */ @@ -149,16 +144,6 @@ run (void *cls, char *const *args, const char *cfgfile, GNUNET_CRYPTO_hash_to_enc (&pid.hashPubKey, &enc); fprintf (stdout, "%s\n", enc.encoding); } - if (print_short_identity) - { - struct GNUNET_CRYPTO_ShortHashAsciiEncoded enc; - struct GNUNET_CRYPTO_ShortHashCode sh; - - GNUNET_CRYPTO_ecc_key_get_public (pk, &pub); - GNUNET_CRYPTO_short_hash (&pub, sizeof (pub), &sh); - GNUNET_CRYPTO_short_hash_to_enc (&sh, &enc); - fprintf (stdout, "%s\n", enc.short_encoding); - } GNUNET_CRYPTO_ecc_key_free (pk); } @@ -183,9 +168,6 @@ main (int argc, char *const *argv) { 'P', "print-peer-identity", NULL, gettext_noop ("print the hash of the public key in ASCII format"), 0, &GNUNET_GETOPT_set_one, &print_peer_identity }, - { 's', "print-short-identity", NULL, - gettext_noop ("print the short hash of the public key in ASCII format"), - 0, &GNUNET_GETOPT_set_one, &print_short_identity }, GNUNET_GETOPT_OPTION_END }; int ret; -- cgit v1.2.3