summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.w326
-rw-r--r--execute.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/config.w32 b/config.w32
index 5fa25bc..6f0993f 100644
--- a/config.w32
+++ b/config.w32
@@ -5,4 +5,10 @@ ARG_ENABLE("suhosin", "whether to enable suhosin support", "yes");
5 5
6if (PHP_SUHOSIN == "yes") { 6if (PHP_SUHOSIN == "yes") {
7 EXTENSION("suhosin", "suhosin.c sha256.c memory_limit.c treat_data.c ifilter.c post_handler.c ufilter.c rfc1867.c rfc1867_new.c log.c header.c execute.c ex_imp.c session.c aes.c crypt.c"); 7 EXTENSION("suhosin", "suhosin.c sha256.c memory_limit.c treat_data.c ifilter.c post_handler.c ufilter.c rfc1867.c rfc1867_new.c log.c header.c execute.c ex_imp.c session.c aes.c crypt.c");
8 ARG_ENABLE("suhosin-experimental", "Enable experimental suhosin features", "no");
9
10 if (PHP_SUHOSIN_EXPERIMENTAL != "no") {
11 ADD_FLAG("CFLAGS_SUHOSIN", "/D SUHOSIN_EXPERIMENTAL");
12 AC_DEFINE("SUHOSIN_EXPERIMENTAL", 1, "Whether to enable experimental suhosin features");
13 }
8} 14}
diff --git a/execute.c b/execute.c
index ee8447e..d2034f6 100644
--- a/execute.c
+++ b/execute.c
@@ -1386,7 +1386,7 @@ static void suhosin_gen_entropy(php_uint32 *entropybuf TSRMLS_DC)
1386 } 1386 }
1387#else 1387#else
1388 /* we have to live with the possibility that this call fails */ 1388 /* we have to live with the possibility that this call fails */
1389 php_win32_get_random_bytes(rbuf, 8 * sizeof(php_uint32)); 1389 php_win32_get_random_bytes((unsigned char*)&seedbuf[6], 8 * sizeof(php_uint32));
1390#endif 1390#endif
1391 1391
1392 suhosin_SHA256Init(&context); 1392 suhosin_SHA256Init(&context);