Skip to content

Commit

Permalink
Configure: Improve warning if no random seed source was configured
Browse files Browse the repository at this point in the history
The new Configure summary box (41349b5) now hides the warning
about the missing seed source (2805ee1) too much. To make it
more visible again, add warning markers.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from #7509)
  • Loading branch information
mspncp committed Oct 28, 2018
1 parent c23e497 commit caa8595
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions Configure
Original file line number Diff line number Diff line change
Expand Up @@ -1013,13 +1013,18 @@ if (scalar(@seed_sources) == 0) {
if (scalar(grep { $_ eq 'none' } @seed_sources) > 0) {
die "Cannot seed with none and anything else" if scalar(@seed_sources) > 1;
warn <<_____ if scalar(@seed_sources) == 1;
You have selected the --with-rand-seed=none option, which effectively disables
automatic reseeding of the OpenSSL random generator. All operations depending
on the random generator such as creating keys will not work unless the random
generator is seeded manually by the application.
Please read the 'Note on random number generation' section in the INSTALL
instructions and the RAND_DRBG(7) manual page for more details.
============================== WARNING ===============================
You have selected the --with-rand-seed=none option, which effectively
disables automatic reseeding of the OpenSSL random generator.
All operations depending on the random generator such as creating keys
will not work unless the random generator is seeded manually by the
application.
Please read the 'Note on random number generation' section in the
INSTALL instructions and the RAND_DRBG(7) manual page for more details.
============================== WARNING ===============================
_____
}
push @{$config{openssl_other_defines}},
Expand Down

0 comments on commit caa8595

Please sign in to comment.