diff options
Diffstat (limited to 'src/daemon')
28 files changed, 30 insertions, 27 deletions
diff --git a/src/daemon/daemon.c b/src/daemon/daemon.c index 473bef3a..6f8f6b17 100644 --- a/src/daemon/daemon.c +++ b/src/daemon/daemon.c | |||
@@ -24,6 +24,7 @@ | |||
24 | * @author Daniel Pittman | 24 | * @author Daniel Pittman |
25 | * @author Christian Grothoff | 25 | * @author Christian Grothoff |
26 | */ | 26 | */ |
27 | #include "platform.h" | ||
27 | #include "internal.h" | 28 | #include "internal.h" |
28 | #include "response.h" | 29 | #include "response.h" |
29 | #include "connection.h" | 30 | #include "connection.h" |
@@ -411,9 +412,11 @@ MHD_accept_connection (struct MHD_Daemon *daemon) | |||
411 | } | 412 | } |
412 | return MHD_NO; | 413 | return MHD_NO; |
413 | } | 414 | } |
415 | #if HAVE_MESSAGES | ||
414 | #if DEBUG_CONNECT | 416 | #if DEBUG_CONNECT |
415 | MHD_DLOG (daemon, "Accepted connection on socket %d\n", s); | 417 | MHD_DLOG (daemon, "Accepted connection on socket %d\n", s); |
416 | #endif | 418 | #endif |
419 | #endif | ||
417 | have = 0; | 420 | have = 0; |
418 | if ((daemon->per_ip_connection_limit != 0) && (daemon->max_connections > 0)) | 421 | if ((daemon->per_ip_connection_limit != 0) && (daemon->max_connections > 0)) |
419 | { | 422 | { |
diff --git a/src/daemon/https/lgl/asnprintf.c b/src/daemon/https/lgl/asnprintf.c index a9114977..c9dbc04e 100644 --- a/src/daemon/https/lgl/asnprintf.c +++ b/src/daemon/https/lgl/asnprintf.c | |||
@@ -15,7 +15,7 @@ | |||
15 | with this program; if not, write to the Free Software Foundation, | 15 | with this program; if not, write to the Free Software Foundation, |
16 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | 16 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
17 | 17 | ||
18 | #include <config.h> | 18 | #include "MHD_config.h" |
19 | 19 | ||
20 | /* Specification. */ | 20 | /* Specification. */ |
21 | #include "vasnprintf.h" | 21 | #include "vasnprintf.h" |
diff --git a/src/daemon/https/lgl/asprintf.c b/src/daemon/https/lgl/asprintf.c index 2df1d4b0..04e3c58c 100644 --- a/src/daemon/https/lgl/asprintf.c +++ b/src/daemon/https/lgl/asprintf.c | |||
@@ -15,7 +15,7 @@ | |||
15 | with this program; if not, write to the Free Software Foundation, | 15 | with this program; if not, write to the Free Software Foundation, |
16 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | 16 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
17 | 17 | ||
18 | #include <config.h> | 18 | #include "MHD_config.h" |
19 | 19 | ||
20 | /* Specification. */ | 20 | /* Specification. */ |
21 | #ifdef IN_LIBASPRINTF | 21 | #ifdef IN_LIBASPRINTF |
diff --git a/src/daemon/https/lgl/des.c b/src/daemon/https/lgl/des.c index fd70bc7e..4f6c5be0 100644 --- a/src/daemon/https/lgl/des.c +++ b/src/daemon/https/lgl/des.c | |||
@@ -94,7 +94,7 @@ | |||
94 | */ | 94 | */ |
95 | 95 | ||
96 | 96 | ||
97 | #include <config.h> | 97 | #include "MHD_config.h" |
98 | 98 | ||
99 | #include "des.h" | 99 | #include "des.h" |
100 | 100 | ||
diff --git a/src/daemon/https/lgl/gc-gnulib.c b/src/daemon/https/lgl/gc-gnulib.c index d1db6d8a..237eb45c 100644 --- a/src/daemon/https/lgl/gc-gnulib.c +++ b/src/daemon/https/lgl/gc-gnulib.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | /* Note: This file is only built if GC uses internal functions. */ | 21 | /* Note: This file is only built if GC uses internal functions. */ |
22 | 22 | ||
23 | #include <config.h> | 23 | #include "MHD_config.h" |
24 | 24 | ||
25 | /* Get prototype. */ | 25 | /* Get prototype. */ |
26 | #include "gc.h" | 26 | #include "gc.h" |
diff --git a/src/daemon/https/lgl/gc-libgcrypt.c b/src/daemon/https/lgl/gc-libgcrypt.c index d65bb27c..884bf31a 100644 --- a/src/daemon/https/lgl/gc-libgcrypt.c +++ b/src/daemon/https/lgl/gc-libgcrypt.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | /* Note: This file is only built if GC uses Libgcrypt. */ | 21 | /* Note: This file is only built if GC uses Libgcrypt. */ |
22 | 22 | ||
23 | #include "config.h" | 23 | #include "MHD_config.h" |
24 | 24 | ||
25 | /* Get prototype. */ | 25 | /* Get prototype. */ |
26 | #include "gc.h" | 26 | #include "gc.h" |
diff --git a/src/daemon/https/lgl/gc-pbkdf2-sha1.c b/src/daemon/https/lgl/gc-pbkdf2-sha1.c index f5daf7b7..b29b42fd 100644 --- a/src/daemon/https/lgl/gc-pbkdf2-sha1.c +++ b/src/daemon/https/lgl/gc-pbkdf2-sha1.c | |||
@@ -18,7 +18,7 @@ | |||
18 | /* Written by Simon Josefsson. The comments in this file are taken | 18 | /* Written by Simon Josefsson. The comments in this file are taken |
19 | from RFC 2898. */ | 19 | from RFC 2898. */ |
20 | 20 | ||
21 | #include <config.h> | 21 | #include "MHD_config.h" |
22 | 22 | ||
23 | #include "gc.h" | 23 | #include "gc.h" |
24 | 24 | ||
diff --git a/src/daemon/https/lgl/hmac-md5.c b/src/daemon/https/lgl/hmac-md5.c index 53cf2b10..1bd56103 100644 --- a/src/daemon/https/lgl/hmac-md5.c +++ b/src/daemon/https/lgl/hmac-md5.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | /* Written by Simon Josefsson. */ | 18 | /* Written by Simon Josefsson. */ |
19 | 19 | ||
20 | #include <config.h> | 20 | #include "MHD_config.h" |
21 | 21 | ||
22 | #include "hmac.h" | 22 | #include "hmac.h" |
23 | 23 | ||
diff --git a/src/daemon/https/lgl/hmac-sha1.c b/src/daemon/https/lgl/hmac-sha1.c index a9cf18cd..e634ad9c 100644 --- a/src/daemon/https/lgl/hmac-sha1.c +++ b/src/daemon/https/lgl/hmac-sha1.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | /* Written by Simon Josefsson. */ | 18 | /* Written by Simon Josefsson. */ |
19 | 19 | ||
20 | #include <config.h> | 20 | #include "MHD_config.h" |
21 | 21 | ||
22 | #include "hmac.h" | 22 | #include "hmac.h" |
23 | 23 | ||
diff --git a/src/daemon/https/lgl/md5.c b/src/daemon/https/lgl/md5.c index 9b3bfbe8..51502d6e 100644 --- a/src/daemon/https/lgl/md5.c +++ b/src/daemon/https/lgl/md5.c | |||
@@ -20,7 +20,7 @@ | |||
20 | 20 | ||
21 | /* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */ | 21 | /* Written by Ulrich Drepper <drepper@gnu.ai.mit.edu>, 1995. */ |
22 | 22 | ||
23 | #include <config.h> | 23 | #include "MHD_config.h" |
24 | 24 | ||
25 | #include "md5.h" | 25 | #include "md5.h" |
26 | 26 | ||
diff --git a/src/daemon/https/lgl/memmem.c b/src/daemon/https/lgl/memmem.c index 1b66ed56..9a0e67d2 100644 --- a/src/daemon/https/lgl/memmem.c +++ b/src/daemon/https/lgl/memmem.c | |||
@@ -16,7 +16,7 @@ | |||
16 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | 16 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
17 | 17 | ||
18 | #ifndef _LIBC | 18 | #ifndef _LIBC |
19 | # include <config.h> | 19 | #include "MHD_config.h" |
20 | #endif | 20 | #endif |
21 | 21 | ||
22 | #include <stddef.h> | 22 | #include <stddef.h> |
diff --git a/src/daemon/https/lgl/memmove.c b/src/daemon/https/lgl/memmove.c index 0f040540..c37d6923 100644 --- a/src/daemon/https/lgl/memmove.c +++ b/src/daemon/https/lgl/memmove.c | |||
@@ -3,7 +3,7 @@ | |||
3 | In the public domain. | 3 | In the public domain. |
4 | By David MacKenzie <djm@gnu.ai.mit.edu>. */ | 4 | By David MacKenzie <djm@gnu.ai.mit.edu>. */ |
5 | 5 | ||
6 | #include <config.h> | 6 | #include "MHD_config.h" |
7 | 7 | ||
8 | #include <stddef.h> | 8 | #include <stddef.h> |
9 | 9 | ||
diff --git a/src/daemon/https/lgl/memxor.c b/src/daemon/https/lgl/memxor.c index 7b0b6ae9..dabada9f 100644 --- a/src/daemon/https/lgl/memxor.c +++ b/src/daemon/https/lgl/memxor.c | |||
@@ -18,7 +18,7 @@ | |||
18 | /* Written by Simon Josefsson. The interface was inspired by memxor | 18 | /* Written by Simon Josefsson. The interface was inspired by memxor |
19 | in Niels Möller's Nettle. */ | 19 | in Niels Möller's Nettle. */ |
20 | 20 | ||
21 | #include <config.h> | 21 | #include "MHD_config.h" |
22 | 22 | ||
23 | #include "memxor.h" | 23 | #include "memxor.h" |
24 | 24 | ||
diff --git a/src/daemon/https/lgl/printf-args.c b/src/daemon/https/lgl/printf-args.c index 55a5c439..a3f84740 100644 --- a/src/daemon/https/lgl/printf-args.c +++ b/src/daemon/https/lgl/printf-args.c | |||
@@ -21,7 +21,7 @@ | |||
21 | STATIC Set to 'static' to declare the function static. */ | 21 | STATIC Set to 'static' to declare the function static. */ |
22 | 22 | ||
23 | #ifndef PRINTF_FETCHARGS | 23 | #ifndef PRINTF_FETCHARGS |
24 | # include <config.h> | 24 | #include "MHD_config.h" |
25 | #endif | 25 | #endif |
26 | 26 | ||
27 | /* Specification. */ | 27 | /* Specification. */ |
diff --git a/src/daemon/https/lgl/printf-parse.c b/src/daemon/https/lgl/printf-parse.c index e0b83a39..7eadfbd6 100644 --- a/src/daemon/https/lgl/printf-parse.c +++ b/src/daemon/https/lgl/printf-parse.c | |||
@@ -29,7 +29,7 @@ | |||
29 | ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. */ | 29 | ENABLE_UNISTDIO Set to 1 to enable the unistdio extensions. */ |
30 | 30 | ||
31 | #ifndef PRINTF_PARSE | 31 | #ifndef PRINTF_PARSE |
32 | # include <config.h> | 32 | #include "MHD_config.h" |
33 | #endif | 33 | #endif |
34 | 34 | ||
35 | /* Specification. */ | 35 | /* Specification. */ |
diff --git a/src/daemon/https/lgl/read-file.c b/src/daemon/https/lgl/read-file.c index 9172a6ef..a57bedf5 100644 --- a/src/daemon/https/lgl/read-file.c +++ b/src/daemon/https/lgl/read-file.c | |||
@@ -16,7 +16,7 @@ | |||
16 | along with this program; if not, write to the Free Software Foundation, | 16 | along with this program; if not, write to the Free Software Foundation, |
17 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | 17 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
18 | 18 | ||
19 | #include <config.h> | 19 | #include "MHD_config.h" |
20 | 20 | ||
21 | #include "read-file.h" | 21 | #include "read-file.h" |
22 | 22 | ||
diff --git a/src/daemon/https/lgl/realloc.c b/src/daemon/https/lgl/realloc.c index 4661f913..c4103a8d 100644 --- a/src/daemon/https/lgl/realloc.c +++ b/src/daemon/https/lgl/realloc.c | |||
@@ -17,7 +17,7 @@ | |||
17 | 17 | ||
18 | /* written by Jim Meyering and Bruno Haible */ | 18 | /* written by Jim Meyering and Bruno Haible */ |
19 | 19 | ||
20 | #include <config.h> | 20 | #include "MHD_config.h" |
21 | 21 | ||
22 | /* Only the AC_FUNC_REALLOC macro defines 'realloc' already in config.h. */ | 22 | /* Only the AC_FUNC_REALLOC macro defines 'realloc' already in config.h. */ |
23 | #ifdef realloc | 23 | #ifdef realloc |
diff --git a/src/daemon/https/lgl/rijndael-alg-fst.c b/src/daemon/https/lgl/rijndael-alg-fst.c index a39ec382..d14aad65 100644 --- a/src/daemon/https/lgl/rijndael-alg-fst.c +++ b/src/daemon/https/lgl/rijndael-alg-fst.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * http://www.iaik.tu-graz.ac.at/research/krypto/AES/old/~rijmen/rijndael/rijndael-fst-3.0.zip | 25 | * http://www.iaik.tu-graz.ac.at/research/krypto/AES/old/~rijmen/rijndael/rijndael-fst-3.0.zip |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include <config.h> | 28 | #include "MHD_config.h" |
29 | 29 | ||
30 | /** | 30 | /** |
31 | * rijndael-alg-fst.c | 31 | * rijndael-alg-fst.c |
diff --git a/src/daemon/https/lgl/rijndael-api-fst.c b/src/daemon/https/lgl/rijndael-api-fst.c index 35d920a9..327abdc8 100644 --- a/src/daemon/https/lgl/rijndael-api-fst.c +++ b/src/daemon/https/lgl/rijndael-api-fst.c | |||
@@ -25,7 +25,7 @@ | |||
25 | * http://www.iaik.tu-graz.ac.at/research/krypto/AES/old/~rijmen/rijndael/rijndael-fst-3.0.zip | 25 | * http://www.iaik.tu-graz.ac.at/research/krypto/AES/old/~rijmen/rijndael/rijndael-fst-3.0.zip |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #include <config.h> | 28 | #include "MHD_config.h" |
29 | 29 | ||
30 | /** | 30 | /** |
31 | * rijndael-api-fst.c | 31 | * rijndael-api-fst.c |
diff --git a/src/daemon/https/lgl/sha1.c b/src/daemon/https/lgl/sha1.c index f5573da5..501abba1 100644 --- a/src/daemon/https/lgl/sha1.c +++ b/src/daemon/https/lgl/sha1.c | |||
@@ -23,7 +23,7 @@ | |||
23 | Robert Klep <robert@ilse.nl> -- Expansion function fix | 23 | Robert Klep <robert@ilse.nl> -- Expansion function fix |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <config.h> | 26 | #include "MHD_config.h" |
27 | 27 | ||
28 | #include "sha1.h" | 28 | #include "sha1.h" |
29 | 29 | ||
diff --git a/src/daemon/https/lgl/snprintf.c b/src/daemon/https/lgl/snprintf.c index 538ee08e..0798b2dc 100644 --- a/src/daemon/https/lgl/snprintf.c +++ b/src/daemon/https/lgl/snprintf.c | |||
@@ -16,7 +16,7 @@ | |||
16 | with this program; if not, write to the Free Software Foundation, | 16 | with this program; if not, write to the Free Software Foundation, |
17 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | 17 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
18 | 18 | ||
19 | #include <config.h> | 19 | #include "MHD_config.h" |
20 | 20 | ||
21 | /* Specification. */ | 21 | /* Specification. */ |
22 | #include <stdio.h> | 22 | #include <stdio.h> |
diff --git a/src/daemon/https/lgl/strverscmp.c b/src/daemon/https/lgl/strverscmp.c index 3b6bd20e..1b45810f 100644 --- a/src/daemon/https/lgl/strverscmp.c +++ b/src/daemon/https/lgl/strverscmp.c | |||
@@ -18,7 +18,7 @@ | |||
18 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | 18 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
19 | 19 | ||
20 | #if !_LIBC | 20 | #if !_LIBC |
21 | # include <config.h> | 21 | #include "MHD_config.h" |
22 | #endif | 22 | #endif |
23 | 23 | ||
24 | #include <string.h> | 24 | #include <string.h> |
diff --git a/src/daemon/https/lgl/time_r.c b/src/daemon/https/lgl/time_r.c index 691525df..025cadca 100644 --- a/src/daemon/https/lgl/time_r.c +++ b/src/daemon/https/lgl/time_r.c | |||
@@ -18,7 +18,7 @@ | |||
18 | 18 | ||
19 | /* Written by Paul Eggert. */ | 19 | /* Written by Paul Eggert. */ |
20 | 20 | ||
21 | #include <config.h> | 21 | #include "MHD_config.h" |
22 | 22 | ||
23 | #include <time.h> | 23 | #include <time.h> |
24 | 24 | ||
diff --git a/src/daemon/https/lgl/vasnprintf.c b/src/daemon/https/lgl/vasnprintf.c index d247b592..8c848e95 100644 --- a/src/daemon/https/lgl/vasnprintf.c +++ b/src/daemon/https/lgl/vasnprintf.c | |||
@@ -52,7 +52,7 @@ | |||
52 | #endif | 52 | #endif |
53 | 53 | ||
54 | #ifndef VASNPRINTF | 54 | #ifndef VASNPRINTF |
55 | # include <config.h> | 55 | #include "MHD_config.h" |
56 | #endif | 56 | #endif |
57 | #ifndef IN_LIBINTL | 57 | #ifndef IN_LIBINTL |
58 | # include <alloca.h> | 58 | # include <alloca.h> |
diff --git a/src/daemon/https/lgl/vasprintf.c b/src/daemon/https/lgl/vasprintf.c index 7b645460..9348b5bd 100644 --- a/src/daemon/https/lgl/vasprintf.c +++ b/src/daemon/https/lgl/vasprintf.c | |||
@@ -15,7 +15,7 @@ | |||
15 | with this program; if not, write to the Free Software Foundation, | 15 | with this program; if not, write to the Free Software Foundation, |
16 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ | 16 | Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ |
17 | 17 | ||
18 | #include <config.h> | 18 | #include "MHD_config.h" |
19 | 19 | ||
20 | /* Specification. */ | 20 | /* Specification. */ |
21 | #ifdef IN_LIBASPRINTF | 21 | #ifdef IN_LIBASPRINTF |
diff --git a/src/daemon/https/tls/defines.h b/src/daemon/https/tls/defines.h index 43e96766..712a3d0b 100644 --- a/src/daemon/https/tls/defines.h +++ b/src/daemon/https/tls/defines.h | |||
@@ -26,7 +26,7 @@ | |||
26 | # define DEFINES_H | 26 | # define DEFINES_H |
27 | 27 | ||
28 | #if HAVE_CONFIG_H | 28 | #if HAVE_CONFIG_H |
29 | # include <config.h> | 29 | # include "MHD_config.h" |
30 | #endif | 30 | #endif |
31 | 31 | ||
32 | #include <stddef.h> | 32 | #include <stddef.h> |
diff --git a/src/daemon/https/tls/gnutls_asn1_tab.c b/src/daemon/https/tls/gnutls_asn1_tab.c index 4a7dc1d4..b2139578 100644 --- a/src/daemon/https/tls/gnutls_asn1_tab.c +++ b/src/daemon/https/tls/gnutls_asn1_tab.c | |||
@@ -1,5 +1,5 @@ | |||
1 | #if HAVE_CONFIG_H | 1 | #if HAVE_CONFIG_H |
2 | # include "config.h" | 2 | #include "MHD_config.h" |
3 | #endif | 3 | #endif |
4 | 4 | ||
5 | #include <libtasn1.h> | 5 | #include <libtasn1.h> |
diff --git a/src/daemon/https/tls/pkix_asn1_tab.c b/src/daemon/https/tls/pkix_asn1_tab.c index eec32f9b..e8471bfd 100644 --- a/src/daemon/https/tls/pkix_asn1_tab.c +++ b/src/daemon/https/tls/pkix_asn1_tab.c | |||
@@ -1,5 +1,5 @@ | |||
1 | #if HAVE_CONFIG_H | 1 | #if HAVE_CONFIG_H |
2 | # include "config.h" | 2 | #include "MHD_config.h" |
3 | #endif | 3 | #endif |
4 | 4 | ||
5 | #include <libtasn1.h> | 5 | #include <libtasn1.h> |