2867 Commits
Author SHA1 Message Date
Christian Grothoff 517c4a81c7 releasing libmicrohttpd 0.9.62 v0.9.62 2018-12-08 23:11:13 +01:00
Christian Grothoff 2897bd23e5 add test for RFC 7616 and document new API 2018-12-08 22:54:33 +01:00
Christian Grothoff bcba3f58c5 preliminary implementation for RFC 7616 support 2018-12-08 17:35:37 +01:00
Christian Grothoff 6bb3796f50 fix FTBFS 2018-12-07 19:11:59 +01:00
Christian Grothoff be32c05e0e add build option to compile MHD without threads 2018-12-07 12:42:49 +01:00
Christian Grothoff 0eefd20ba3 add build option to compile MHD without threads 2018-12-07 12:40:40 +01:00
silvioprog 22c08b5fd7 Renamed all occurrences from _model(s)_ to _mode(s)_. 2018-12-06 13:26:39 -03:00
silvioprog b220303691 Optimized the function MHD_create_response_from_callback() for Windows by increasing its internal buffer size and allowed to customize it via macro MHD_FD_BLOCK_SIZE. 2018-12-06 12:54:00 -03:00
silvioprog 53674dcdfb Referenced the gnutls_load_file() function in the HTTPs examples. 2018-12-06 02:13:37 -03:00
Christian Grothoff 79a8955bb6 fix #5496:
'
2018-12-05 18:20:00 +01:00
José Bollo 11eb7a4826 Improve parsing of HTTPS options
The argument of the HTTPS options is now always
extracted from the list of variable arguments.
This removes strange errors like:

  MHD HTTPS option 8 passed to MHD but MHD_USE_TLS not set
  Invalid option 6313728! (Did you terminate the list with MHD_OPTION_END?)

And allows to activate/deactivate HTTPS fairly by
only setting or not the flag MHD_USE_TLS.

Change-Id: I31acedbdefe9c930e94c7227d240a36d2a9000d5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Signed-off-by: Christian Grothoff <christian@grothoff.org>
2018-12-05 18:06:59 +01:00
Christian Grothoff 7b92bb1cde releasing 0.9.61 2018-11-20 22:23:03 +01:00
Christian Grothoff 8466a08d35 import sha256 from GNU Nettle 2018-11-20 20:05:30 +01:00
Christian Grothoff 488615cea6 avoid sprintf 2018-11-18 12:21:02 +01:00
Christian Grothoff 49936d88d9 fix format string, prefer snprintf 2018-11-18 12:03:16 +01:00
Christian Grothoff af91748032 fix format string, prefer snprintf 2018-11-18 12:02:10 +01:00
Christian Grothoff 64e1480540 fix build issue with GnuTLS < 3.0 2018-11-14 14:01:49 +01:00
Christian Grothoff ff551c4671 From: Christian Hesse <mail@eworm.de>
Date: Thu, 8 Nov 2018 00:15:29 +0100
Subject: [PATCH 1/1] fix tests with curl

Starting with curl 7.62.0 some tests fail. The commit in question is
46e16406 [0] ("url: use the URL API internally as well").

Analyzing the changed behavior reveals that the url given to
curl_easy_setopt() with CURLOPT_URL is no longer encoded. Looking at the
documentation [1] this behavior is correct, the "parameter should be a
char * to a zero terminated string which must be URL-encoded [...]".

So let's just give a valid url...

[0] https://github.com/curl/curl/commit/46e164069d1a5230e4e64cbd2ff46c46cce056bb
[1] https://curl.haxx.se/libcurl/c/CURLOPT_URL.html

Signed-off-by: Christian Hesse <mail@eworm.de>
Signed-off: CG
2018-11-12 19:52:49 +01:00
Christian Grothoff e1f2253a38 fix ftbfs 2018-11-12 19:51:52 +01:00
Christian Grothoff 2962b6e48d add MHD_create_response_from_buffer_with_free_callback 2018-11-08 14:53:46 +01:00
Christian Grothoff 10bdf39505 add MHD_create_response_from_buffer_with_free_callback 2018-11-08 14:53:19 +01:00
Christian Grothoff acd39ed23d releasing libmicrohttpd 0.9.60 v0.9.60 2018-11-06 19:55:27 +01:00
Christian Grothoff 3fc686e335 initialize epoll_fd even if we have no listen fd, patch by Jose Bollo 2018-11-01 16:31:03 +01:00
Christian Grothoff 777d5e048d force setting MHD_USE_ITC if using thread-per-connection and notify_completed for timely notifications 2018-10-29 20:37:21 +01:00
Christian Grothoff 533124d379 fix possibly bad clearing of client_aware flag 2018-10-29 20:27:54 +01:00
Christian Grothoff 4728124102 notify main thread about thread termination for instant clean up 2018-10-20 12:45:21 +02:00
Christian Grothoff b55cd46bfd add --enable-experiemental option to not compile src/lib/ unless explicitly requested 2018-10-18 17:34:53 +02:00
Christian Grothoff 41ac932526 From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@gmx.de>
Date: Thu, 18 Oct 2018 16:21:55 +0200
Subject: [PATCH] Fix build issue when parent dir is an automake project dir

Building fails if the parent directory is an automake project dir:

$ ./bootstrap
libtoolize: putting auxiliary files in '..'.
libtoolize: copying file '../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: copying file 'm4/libtool.m4'
libtoolize: copying file 'm4/ltoptions.m4'
libtoolize: copying file 'm4/ltsugar.m4'
libtoolize: copying file 'm4/ltversion.m4'
libtoolize: copying file 'm4/lt~obsolete.m4'
configure.ac:61: installing '../compile'
configure.ac:67: error: required file '../config.rpath' not found
configure.ac:26: installing '../missing'
doc/examples/Makefile.am: installing '../depcomp'
autoreconf: automake failed with exit status: 1

The fix is to specify AC_CONFIG_AUX_DIR before AM_INIT_AUTOMAKE.
---
2018-10-18 17:16:49 +02:00
Christian Grothoff 9199e5aa3a From: Gauthier Haderer <ghaderer@wyplay.com>
Date: Mon, 15 Oct 2018 14:11:39 +0200
Subject: [PATCH] Add response flag to force version to 1.0 and maintain
 connection management.

The existing MHD_RF_HTTP_VERSION_1_0_ONLY flag already changes MHD's
behavior to apply HTTP 1.0 rules for connection management. When
enabled, MHD sends a response using the same version as used in the
request (is this normal?).

What I want is MHD responding as a HTTP 1.0 server with support for
connection management headers would do. This is what the
MHD_RF_HTTP_VERSION_1_0_RESPONSE response flag is for.

You can even combine it with MHD_RF_HTTP_VERSION_1_0_ONLY to change the
response's HTTP version while maintaining strict compliance with HTTP
1.0 regarding connection management.

This solution is not perfect as this flag is set on the response which
is created after header processing. So MHD will behave as a HTTP 1.1
server until the response is queued. It means that an invalid HTTP 1.1
request will fail even if the response is sent with HTTP 1.0 and the
request would be valid if interpreted with this version. For example,
this request will fail in strict mode:

GET /dummy HTTP/1.1

as the Host header is missing and is mandatory in HTTP 1.1, but it
should succeed when interpreted with HTTP 1.0.

I don't think this is a big issue in practice. Besides, being able to
change the HTTP version on a response basis is really convenient when
using MHD in a test framework where we need to validate a client against
HTTP 1.1 AND HTTP 1.0.
2018-10-16 20:44:39 +02:00
silvioprog f7ab8b59a3 improve comments, cosmetic 2018-10-09 01:58:33 -03:00
silvioprog 30477aab57 Style fixes. 2018-10-09 01:44:50 -03:00
Christian Grothoff 0db81a9248 fix #5411 2018-10-05 19:23:26 +02:00
Evgeny Grin (Karlson2k) bc8e12c837 Fixed compiler warning on W32 2018-09-26 23:59:26 +03:00
Evgeny Grin (Karlson2k) da68f321e5 Fixed build without HTTPS support 2018-09-26 23:57:33 +03:00
Christian Grothoff a145baea79 fix linker error with --with-gnutls path for mhd2 lib 2018-09-12 15:38:14 +02:00
Christian Grothoff 7ade892317 clean up use of GNUTLS linker options in various places, re-add SAVE_LIBS restoration to configure.ac to avoid linking indiscriminately against GnuTLS 2018-09-11 15:11:53 +02:00
Marcello Stanisci 9624d2f58e fix --with-gnutls 2018-09-10 09:18:01 +02:00
Christian Grothoff ebbce0a759 fix test in testcase 2018-08-18 13:37:23 +02:00
Christian Grothoff 605e35bb6e style fixes 2018-08-18 13:26:38 +02:00
Christian Grothoff b4afd3fce6 fix a few more compiler warnings 2018-08-18 11:30:17 +02:00
Christian Grothoff 439c14ab00 fix typo 2018-08-18 11:23:22 +02:00
Christian Grothoff dca675afab polish configure.ac, use AS_IF where appropriate 2018-08-18 11:22:08 +02:00
Christian Grothoff 27a95aa100 add missing break 2018-08-18 11:03:20 +02:00
Christian Grothoff 66c9ad84db fix where we call gnutls_session_set_ptr to prevent NPE (#5427) 2018-08-18 10:59:46 +02:00
silvioprog 60fe2b37f7 Small spell correction. 2018-07-31 14:45:08 -03:00
Christian Grothoff a7c0b04cce properly recognize Dirk B. 2018-07-14 13:27:46 +02:00
Christian Grothoff 2c47a23dec integrate TLS PSK patch from Tal Moaz (plus documentation, plus style and bugfixes 2018-07-14 13:27:45 +02:00
Christian Grothoff 2ed04522e2 add support for digest auth with hashed password 2018-07-14 13:27:45 +02:00
Christian Grothoff 2ade9eaad8 applying W32 fix suggested by Tim 2018-06-26 17:06:03 +02:00
Christian Grothoff 9b4358cd5a check response allocation succeeded when generating internal errors 2018-06-22 15:58:24 +02:00