summary refs log tree commit diff stats
path: root/src/common/ssl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/common/ssl.c')
-rw-r--r--src/common/ssl.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/common/ssl.c b/src/common/ssl.c
index daa7416b..04fb6ac5 100644
--- a/src/common/ssl.c
+++ b/src/common/ssl.c
@@ -20,12 +20,17 @@
 #include "inet.h"				  /* make it first to avoid macro redefinitions */
 #include <openssl/ssl.h>		  /* SSL_() */
 #include <openssl/err.h>		  /* ERR_() */
-#include <time.h>					  /* asctime() */
+#ifdef WIN32
+#include <openssl/rand.h>		  /* RAND_seed() */
+#endif
+#include <time.h>				  /* asctime() */
 #include <string.h>				  /* strncpy() */
-#include "ssl.h"					  /* struct cert_info */
+#include "ssl.h"				  /* struct cert_info */
 #include "../../config.h"		  /* HAVE_SNPRINTF */
 
 #ifndef HAVE_SNPRINTF
+#include <glib.h>

+#include <glib/gprintf.h>
 #define snprintf g_snprintf
 #endif