Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix PURIFY and warn when not seeding the RNG

  • Loading branch information...
commit fa425e08d4b1b7734a8a0755aae7309ec8cbf63d 1 parent 439e8a8
@droe authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  ssl.c
View
3  ssl.c
@@ -238,8 +238,8 @@ ssl_init(void)
{
#ifndef PURIFY
int fd;
- char buf[256];
#endif /* !PURIFY */
+ char buf[256];
if (ssl_initialized)
return 0;
@@ -293,6 +293,7 @@ ssl_init(void)
return -1;
}
#else /* PURIFY */
+ log_err_printf("Warning: not seeding OpenSSL RAND due to PURITY!\n");
memset(buf, 0, sizeof(buf));
while (!RAND_status()) {
RAND_seed(buf, sizeof(buf));
Please sign in to comment.
Something went wrong with that request. Please try again.