aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-ecc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-02-11 23:04:43 +0000
committerChristian Grothoff <christian@grothoff.org>2013-02-11 23:04:43 +0000
commit81e30a126c1a7be76b87acab0b16933d2a5b4064 (patch)
tree0ef72d3c402f557bff35cce46fff40320e1096c7 /src/util/gnunet-ecc.c
parentaab5ab384bc5d5fbd2dab0ecc640b07db0710be7 (diff)
downloadgnunet-81e30a126c1a7be76b87acab0b16933d2a5b4064.tar.gz
gnunet-81e30a126c1a7be76b87acab0b16933d2a5b4064.zip
-trying to address #2791
Diffstat (limited to 'src/util/gnunet-ecc.c')
-rw-r--r--src/util/gnunet-ecc.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/util/gnunet-ecc.c b/src/util/gnunet-ecc.c
index d7f1dd58d..a00ef0573 100644
--- a/src/util/gnunet-ecc.c
+++ b/src/util/gnunet-ecc.c
@@ -45,11 +45,6 @@ static int print_peer_identity;
45static int print_short_identity; 45static int print_short_identity;
46 46
47/** 47/**
48 * Use weak random number generator for key generation.
49 */
50static int weak_random;
51
52/**
53 * Option set to create a bunch of keys at once. 48 * Option set to create a bunch of keys at once.
54 */ 49 */
55static unsigned int make_keys; 50static unsigned int make_keys;
@@ -143,8 +138,6 @@ run (void *cls, char *const *args, const char *cfgfile,
143 fprintf (stderr, _("No hostkey file specified on command line\n")); 138 fprintf (stderr, _("No hostkey file specified on command line\n"));
144 return; 139 return;
145 } 140 }
146 if (0 != weak_random)
147 GNUNET_CRYPTO_random_disable_entropy_gathering ();
148 if (make_keys > 0) 141 if (make_keys > 0)
149 { 142 {
150 create_keys (args[0]); 143 create_keys (args[0]);
@@ -208,9 +201,6 @@ main (int argc, char *const *argv)
208 { 's', "print-short-identity", NULL, 201 { 's', "print-short-identity", NULL,
209 gettext_noop ("print the short hash of the public key in ASCII format"), 202 gettext_noop ("print the short hash of the public key in ASCII format"),
210 0, &GNUNET_GETOPT_set_one, &print_short_identity }, 203 0, &GNUNET_GETOPT_set_one, &print_short_identity },
211 { 'w', "weak-random", NULL,
212 gettext_noop ("use insecure, weak random number generator for key generation (for testing only)"),
213 0, &GNUNET_GETOPT_set_one, &weak_random },
214 GNUNET_GETOPT_OPTION_END 204 GNUNET_GETOPT_OPTION_END
215 }; 205 };
216 int ret; 206 int ret;