add warning + RAND_poll() to callback.

This commit is contained in:
Joris Vink 2017-02-27 21:31:09 -08:00
parent f57ca7dcc2
commit 73fc58163d
1 changed files with 7 additions and 0 deletions

View File

@ -586,6 +586,13 @@ worker_unlock(void)
static void
worker_entropy_recv(struct kore_msg *msg, const void *data)
{
if (msg->length != 1024) {
kore_log(LOG_WARNING,
"short entropy response (got:%u - wanted:1024)",
msg->length);
}
RAND_poll();
RAND_seed(data, msg->length);
}
#endif