diff options
Diffstat (limited to 'src/util/gnunet-ecc.c')
-rw-r--r-- | src/util/gnunet-ecc.c | 10 |
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; | |||
45 | static int print_short_identity; | 45 | static int print_short_identity; |
46 | 46 | ||
47 | /** | 47 | /** |
48 | * Use weak random number generator for key generation. | ||
49 | */ | ||
50 | static 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 | */ |
55 | static unsigned int make_keys; | 50 | static 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; |