Commit Graph
4924 Commits
Author SHA1 Message Date
Christian Grothoff f633852048 -fix minor type issue, and minor logging issue 2015-04-04 16:06:57 +00:00
Christian Grothoff 47c6b68006 fix thread-pool connection-limit shutdown issue, adding testcase 2015-04-04 15:50:15 +00:00
Christian Grothoff 7d1a24e754 fixing https testcases that require SSL3, but SSL3 is dead and with modern gnutls not even supported 2015-04-03 17:36:25 +00:00
Evgeny Grin (Karlson2k) 7c7af4340f Add MHD_FEATURE_HTTPS_KEY_PASSWORD 2015-04-03 13:03:19 +00:00
Christian Grothoff 570042a100 fix #3751 2015-04-03 10:29:12 +00:00
Christian Grothoff a05803df4f Robert Gronenberg wrote:
I am using libmicrohttpd in a multithreaded application in the
thread-per-connection mode. In order to maintain statistics and such on
the various clients, the application should be notified about
connections being started and stopped. Something like the
MHD_OPTION_NOTIFY_COMPLETED for requests, but then for connections. As
far as I could find libmicrohttpd does not (yet) provide that functionality.

Attached is a patch that does add this functionality by registering a
connection notification callback function: MHD_OPTION_NOTIFY_CONNECTION
(inspired by the MHD_OPTION_NOTIFY_COMPLETED option).

Could this be included in libmicrohttpd?

=>

The patch was only working for multithreaded apps, so I adjusted it
to cover other threading models, fixed a merge issue and added the
ability to associate a void* with the callbacks (and obtain it via
MHD connection info).  And I updated the manual & ChangeLog. Now
I think it can be included ;-).
2015-03-31 08:38:33 +00:00
Christian Grothoff 5fe98c7529 add MHD_HTTP_METHOD_PATCH for Martin 2015-03-27 13:56:20 +00:00
Christian Grothoff ece12fee55 -version bump 2015-03-27 13:56:07 +00:00
Christian Grothoff fbaeed35ad gnutls_certificate_set_x509_key_mem2 was actually introduced in 3.1 2015-03-23 20:18:57 +00:00
Evgeny Grin (Karlson2k) 80e6a8f3d0 configure.ac: add support for GnuTLS pkg-config 2015-03-13 11:18:48 +00:00
Evgeny Grin (Karlson2k) 8442f95d1d Check for epoll_create1() function, fix build for Android 2015-03-03 23:42:55 +00:00
Christian Grothoff 4152f010b2 Subject:
Problem using MHD_OPTION_HTTPS_MEM_DHPARAMS in MHD_OPTION_ARRAY
From:
Denis Dowling <Denis.Dowling@hsd.com.au>
Date:
02/26/2015 01:52 AM
To:
"libmicrohttpd@gnu.org" <libmicrohttpd@gnu.org>

Hi,

I was trying to add a Diffie Hellman key to the libmicrohttpd server using the MHD_OPTION_HTTPS_MEM_DHPARAMS option. I was putting this option into a vector and then passing this to MHD_start_daemon using the MHD_OPTION_ARRAY argument. This was failing and I tracked the problem down to a missing option in the switch statement in parse_options_va().

diff --git a/external/libmicrohttpd-0.9.39/src/microhttpd/daemon.c b/external/li
index 0816a4a..ce76a3b 100644
--- a/external/libmicrohttpd-0.9.39/src/microhttpd/daemon.c
+++ b/external/libmicrohttpd-0.9.39/src/microhttpd/daemon.c
@@ -3178,6 +3178,7 @@ parse_options_va (struct MHD_Daemon *daemon,
                case MHD_OPTION_HTTPS_MEM_KEY:
                case MHD_OPTION_HTTPS_MEM_CERT:
                case MHD_OPTION_HTTPS_MEM_TRUST:
+                case MHD_OPTION_HTTPS_MEM_DHPARAMS:
                case MHD_OPTION_HTTPS_PRIORITIES:
                case MHD_OPTION_ARRAY:
                 case MHD_OPTION_HTTPS_CERT_CALLBACK:

Regards,
Denis
2015-02-26 08:56:07 +00:00
Christian Grothoff 947d672111 check GNUtls version 2015-02-12 16:47:03 +00:00
Evgeny Grin (Karlson2k) 96e3eea4a5 [w32] VS project: copy .pdb file to output dir for Debug-static configuration 2015-02-12 15:26:13 +00:00
Evgeny Grin (Karlson2k) e3c9ecf80a daemon.c: fix building without HTTPS support 2015-02-12 15:01:25 +00:00
Christian Grothoff b526badc92 document pointer validity 2015-02-08 10:52:04 +00:00
Christian Grothoff 19183a161c adding MHD_OPTION_HTTPS_KEY_PASSWORD 2015-02-08 00:37:10 +00:00
Christian Grothoff a12c532cba -bringing copyright tags up to FSF standard 2015-02-07 23:20:06 +00:00
Christian Grothoff 10cf14317c -bringing copyright tags up to FSF standard 2015-02-07 23:12:45 +00:00
Christian Grothoff 7f0a04de96 fix issue with chunked encoding used for http1.0 connections of Keep-Alive header was set 2015-02-04 19:37:19 +00:00
Evgeny Grin (Karlson2k) 5454d9f3b5 memorypool.c: prevent coping of uninitialized memory in MHD_pool_reset() 2015-01-25 08:04:22 +00:00
Christian Grothoff 66385ca7a5 -ensure '1' is interpreted as uint32_t 2015-01-22 19:58:04 +00:00
Christian Grothoff ca1942843f fix infinite loop reported by Dominic Froud 2015-01-18 19:12:14 +00:00
Christian Grothoff 61876d0578 fix documentation 2015-01-11 00:31:54 +00:00
Evgeny Grin (Karlson2k) f52cd063f1 [w32] Use .dll resource for VC project 2015-01-04 15:59:53 +00:00
Evgeny Grin (Karlson2k) 7edd1902a3 [w32] Fix VS project 2015-01-04 15:59:41 +00:00
Christian Grothoff 2ae98a4253 -fix type in docu 2014-12-27 08:15:53 +00:00
Evgeny Grin (Karlson2k) d8bf6d3c99 [W32] Use _beginthreadex() instead of CreateThread() for better compatibility with CRT functions called in additional threads 2014-12-26 13:28:05 +00:00
Evgeny Grin (Karlson2k) 82e360f0f1 Add w32 project files to EXTRA_DIST 2014-12-24 20:50:46 +00:00
Evgeny Grin (Karlson2k) cfec37c1c3 fix autoinit_funcs.h reference in makefile EXTRA_DIST 2014-12-24 20:50:40 +00:00
Evgeny Grin (Karlson2k) f1ffd2e889 [w32] Set thread name 2014-12-24 19:00:33 +00:00
Evgeny Grin (Karlson2k) 7c2493d59c One more strcasecmp() replace with macro 2014-12-24 19:00:23 +00:00
Christian Grothoff 0016974ba8 -fix dist issue 2014-12-24 15:03:58 +00:00
Evgeny Grin (Karlson2k) 9303922d47 Add and use header for multiplatform support of Init/Deinit functions 2014-12-22 19:43:04 +00:00
Evgeny Grin (Karlson2k) 684be54c9f [W32] Initial VS2013 project files 2014-12-22 19:42:56 +00:00
Evgeny Grin (Karlson2k) 5a85e40649 [w32] Help code to detect IPPROTO_IPV6 on VC 2014-12-22 19:42:50 +00:00
Evgeny Grin (Karlson2k) 2ee782685c MHD_get_version: support extraction version number from MHD_VERSION if PACKAGE_VERSION is not defined 2014-12-22 19:42:44 +00:00
Evgeny Grin (Karlson2k) 49d17ea85e Rework _MHD_EXTERN definition for VS project 2014-12-22 19:42:38 +00:00
Evgeny Grin (Karlson2k) 001c1fdad5 Replace char variable size arrays with malloc'ed buffers 2014-12-22 19:42:31 +00:00
Evgeny Grin (Karlson2k) 03af50116d response.c: include additional header for W32 2014-12-22 19:42:24 +00:00
Evgeny Grin (Karlson2k) 54edb3cd8f Replace snprintf with platform-independent macro 2014-12-22 19:42:18 +00:00
Evgeny Grin (Karlson2k) 913ced4bdd [w32] Add W32 emulation for snprintf() 2014-12-22 19:42:08 +00:00
Evgeny Grin (Karlson2k) 2a2a389a34 Replace strcasecmp/strncasecmp with platform-independent macros 2014-12-22 19:42:00 +00:00
Evgeny Grin (Karlson2k) ba88f0d733 daemon.c: Fix macro check with HAVE_ACCEPT4 == 0 in MHD_accept_connection() 2014-12-22 19:41:51 +00:00
Evgeny Grin (Karlson2k) 4d264fe823 platform.h: conditionally include unistd.h
Was already supported by configure
2014-12-22 19:41:45 +00:00
Evgeny Grin (Karlson2k) 7d18a1a3ed platform.h: define ssize_t for MSVC compiler 2014-12-22 19:41:39 +00:00
Evgeny Grin (Karlson2k) 76311f9249 tsearch.c/.h: support compiling by MSVC 2014-12-22 19:41:33 +00:00
Evgeny Grin (Karlson2k) 7f534d0df7 daemon.c: update ifdefs to support non-MinGW w32 native build 2014-12-22 19:41:26 +00:00
Christian Grothoff bdc0a8d958 getting ready for 0.9.39 2014-12-22 15:41:45 +00:00
Christian Grothoff 87c2472e30 -fix #3584 2014-12-22 12:04:46 +00:00