Commit Graph
185 Commits
Author SHA1 Message Date
Christian Grothoff 0601a3bf71 fix nonce type 2011-07-16 20:43:02 +00:00
Christian Grothoff a6bfcb91f7 fix 2011-07-13 08:06:45 +00:00
Christian Grothoff 3a801de937 adding perf measurements 2011-07-07 08:25:55 +00:00
Christian Grothoff 172aac8234 fixing connection close issue mentioned by Robert Varga on MHD mailinglist 2011-06-22 12:33:32 +00:00
Christian Grothoff 46649e53fe improve performance by using shutdown on client sockets instead of poll/select on listen socket 2011-06-22 08:38:48 +00:00
Christian Grothoff a84334b18d docu 2011-06-22 08:28:49 +00:00
Christian Grothoff 901090b07b fixing race condition, minor leak, O(n) shutdown is now O(1) 2011-06-21 13:00:30 +00:00
Christian Grothoff 1975afb1ef fixing 1688 2011-06-11 11:15:53 +00:00
Christian Grothoff 3bfdf879ca new MHD_CONNECTION_INFO_DAEMON 2011-06-03 15:31:09 +00:00
Christian Grothoff 14e83908bb trying to fix timeout issue 2011-05-25 14:25:00 +00:00
Christian Grothoff f0fce31fbf releasing 0.9.11 2011-05-20 20:16:56 +00:00
Christian Grothoff abd339daa9 Fixing 1668 2011-05-20 20:12:57 +00:00
Christian Grothoff c60a0d6679 fixing Mantis 1680 2011-05-20 17:36:07 +00:00
Christian Grothoff e91e6d3a37 bugfix by hzm 2011-05-12 12:42:46 +00:00
Christian Grothoff ac3fe616d5 fixing 1679 2011-05-08 19:55:23 +00:00
Christian Grothoff 8515088370 mantis 1674 2011-04-08 09:49:41 +00:00
Christian Grothoff 73011c1020 fixing 1672 2011-04-03 12:04:38 +00:00
Christian Grothoff 15043c6d6c possible fix for 1670 2011-03-30 11:03:33 +00:00
Christian Grothoff 17461f1978 release 0.9.9 2011-03-29 12:22:48 +00:00
Christian Grothoff b41f753a6d fixes 2011-03-29 12:19:21 +00:00
Christian Grothoff a244273450 pollin issue 2011-03-23 22:30:47 +00:00
Christian Grothoff 2d15eceddf preliminary patch to poll race 2011-03-20 08:22:58 +00:00
Christian Grothoff 52cc71a8bc removing MSG_DONTWAIT as per discussion on ML 2011-03-18 12:34:34 +00:00
Christian Grothoff cd8920a28d libmicrohttpd] bug in MHD_create_response_from_fd_at_offset()
From: 
Eivind Sarto <ivan@espial.com>
  To: 
"libmicrohttpd@gnu.org" <libmicrohttpd@gnu.org>
  Date: 
Today 09:32:21 pm
   
  Spam Status: Spamassassin 0% probability of being spam.

Full report:
Probability=No, score=-2.6 required=7.0 tests=BAYES_00 autolearn=ham version=3.2.5-tuminfo_1  
There appears to be a bug in  MHD_create_response_from_fd_at_offset().
Calling this function with anything other than a zero offset will cause wrong data
or no data (sendfile fails if length < 0).

If you use this call with any application that uses ranges, this bug will trigger.

In src/daemon/daemon.c: send_param_adapter()
      .....
      /* can use sendfile */
      offset = (off_t) connection->response_write_position + connection->response->fd_off;
#ifdef BUGFIX
      /* correct */
      left = connection->response->total_size -  connection->response_write_position;
#else
      left = connection->response->total_size - offset;
#endif
      if (left > SSIZE_MAX)
        left = SSIZE_MAX; /* cap at return value limit */
      ret = sendfile (connection->socket_fd,
                      fd,
                      &offset,
                      left);


-eivind
2011-03-11 21:30:24 +00:00
Christian Grothoff 30f4e693ce fixing 1667 2011-03-05 21:03:21 +00:00
Christian Grothoff f7ae5a3412 adding API to handle #1661 (allow externally created connections) 2011-03-04 09:33:32 +00:00
Christian Grothoff 45a0a30893 also eliminating use of pipe, thereby addressing #1662 2011-03-04 09:10:03 +00:00
Christian Grothoff 8a5cf8f14f fixing 1666 2011-03-03 20:45:20 +00:00
Christian Grothoff 260dd93fda enable poll more broadly, fix timeout, use pipe instead of signal 2011-03-01 15:09:14 +00:00
Christian Grothoff 449bb33ca0 removing useless code 2011-02-23 13:23:20 +00:00
Christian Grothoff 18177698ac try to handle sendfile corner cases better 2011-02-18 10:05:26 +00:00
Christian Grothoff f1e95777a2 097 2011-02-13 10:31:51 +00:00
Christian Grothoff ae668d2eca fix gnutls error handling 2011-02-13 09:53:44 +00:00
Christian Grothoff 6abbeb5f40 mantis 1659 2011-02-11 09:16:23 +00:00
Christian Grothoff d251f28095 mantis 1652 2011-01-27 09:52:23 +00:00
Christian Grothoff 1d5bf289b4 mantis 1651 2011-01-27 09:49:34 +00:00
Christian Grothoff c7729110a0 release 2011-01-25 13:15:43 +00:00
Christian Grothoff 67bd27b5c1 fixing 1646 2011-01-24 15:37:17 +00:00
Christian Grothoff 5a6952fe90 [libmicrohttpd] [digest-auth]: bug in hash algorithm
From: 
Andreas Wehrmann <a.wehrmann@centersystems.com>
  To: 
libmicrohttpd@gnu.org
  Date: 
Today 08:58:43 am
   
  Spam Status: Spamassassin 0% probability of being spam.

Full report:
Probability=No, score=-3.2 required=7.0 tests=AWL,BAYES_00 autolearn=ham version=3.2.5-tuminfo_1  
Hello!

I wrote a little testpage that I deliver using libmicrohttpd using 
digest authentication.
The testpage consists of four files (framed page + image file).
When I initially connected to the webserver via the browser it correctly 
challenged me
for my credentials. However, after entering the username and password 
the index file
got loaded but it happened that the browser then challenged me again for 
each
additional file to be loaded.
Since this is very annoying I tried increasing the nonce table size to 3000
(was default) but it was no good.
I then dug a little deeper and found out, that the hash algorithm to 
determine the index
for a given nonce always returned zero thus overwriting other nonces.
The offending line is at check_nonce_nc() in digestauth.c:313:

off = (off << 8) | (*np & (off >> 24));

whereas is should be:

off = (off << 8) | (*np ^ (off >> 24));

Since "off" is initialized with zero and an unsigned integer
a logical AND returns zero which is not right obviously.
After this fix, the server challenged me only once and I got "random" 
indices.
I found the problem in libmicrohttpd 0.9.5.

Best regards,
Andreas Wehrmann

-- 
Dipl.-Ing. (FH) Andreas Wehrmann
Software Development
--------------------------------------------------------------
Center Communication Systems GmbH
A-1210 Wien, Ignaz-Köck-Straße 19
Sitz in Wien
FN 796 88p, Firmenbuchgericht Wien
www.centersystems.com

Tel.: +43 (0) 190 199 - 3616
Mobile: +43 (0) 664 884 75916
Fax: +43 (0) 190 199 - 2110
E-Mail: a.wehrmann@centersystems.com
2011-01-18 23:00:02 +00:00
Christian Grothoff 3d970622b7 nullcheck 2011-01-14 18:27:18 +00:00
Christian Grothoff 1bc35ab974 fixes 2011-01-14 18:20:19 +00:00
Christian Grothoff 6653abee2e release 2011-01-10 13:11:13 +00:00
Christian Grothoff b454d32814 fix 1636 2011-01-05 14:25:18 +00:00
Christian Grothoff ccaa16a264 fix 1639 2011-01-05 14:22:01 +00:00
Christian Grothoff 43542a78c6 introducing MHD_create_response_from_buffer, deprecating MHD_create_response_from_data 2011-01-04 12:40:03 +00:00
Christian Grothoff 3af8f4ce64 updating docs 2011-01-01 13:47:44 +00:00
Christian Grothoff bf47e27d79 removing client authentication API, moving it into tutorial 2010-12-25 21:57:23 +00:00
Christian Grothoff fe4e71ecaa client certs and basic auth support, unmodified patch from MS 2010-12-25 20:58:06 +00:00
Christian Grothoff 65c3125ced fix 1633 2010-12-23 14:41:23 +00:00
Christian Grothoff 46a4adb3a2 mantis 1631 2010-12-20 20:24:17 +00:00