Commit 364cadc8 authored by Niels Möller's avatar Niels Möller

(main): Reverted part of change from

2008-11-01. Don't explicitly set the seeded flag in the yarrow
ctx, as that results in calls to aes_encrypt before
aes_set_encrypt_key.

Rev: ChangeLog:1.1010
Rev: src/lsh-make-seed.c:1.26
parent fc9efdbe
2008-11-22 Niels Mller <nisse@lysator.liu.se>
* src/lsh-make-seed.c (main): Reverted part of change from
2008-11-01. Don't explicitly set the seeded flag in the yarrow
ctx, as that results in calls to aes_encrypt before
aes_set_encrypt_key.
2008-11-12 Niels Mller <nisse@lysator.liu.se>
* src/testsuite/functions.sh (XAUTHORITY): Use a separate export
......
......@@ -1089,15 +1089,11 @@ main(int argc, char **argv)
get_interact(&yarrow, SOURCE_USER);
}
if (!yarrow256_is_seeded(&yarrow))
if (!options->sloppy && !yarrow256_is_seeded(&yarrow))
{
werror("Couldn't get enough randomness from the environment.\n");
if (options->sloppy)
/* Pretend there's no problem. */
yarrow.seeded = 1;
else
return EXIT_FAILURE;
return EXIT_FAILURE;
}
yarrow256_slow_reseed(&yarrow);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment