NEWS 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331
  1. Sun 28 May 2023 18:00:00 MSK
  2. Released GNU libmicrohttpd 0.9.77. -CG
  3. This is mostly a bugfix release.
  4. This version created by taking patches from the current development
  5. branch and back-porting them on top of version 0.9.76.
  6. The most notable changes are: some improvements for Digest and Basic
  7. authorizations, fixed efficiency for TLS upgraded connections, fixed
  8. processing of folded headers in requests, fixed functionality with
  9. blocking sockets, improved and fixed internal test-suite.
  10. The more detailed list of the important changes:
  11. API changes:
  12. + Added new function MHD_get_version_bin().
  13. Improvements and enhancements:
  14. * Digest Auth: changed algorithm identifiers in server generated
  15. headers from "md5" / "sha-256" to "MD5" / "SHA-256" to better match
  16. RFC (while clients should use caseless matching).
  17. * Improved Base64 decoding by new implementation with robust input
  18. data validation checks.
  19. * Improved configure for cross-compiling, for better compatibility
  20. with POSIX and for better compatibility with the latest compiler
  21. versions.
  22. * New internal tests: for Base64 decoding, Basic Auth and folded
  23. headers.
  24. * Supported new libcurl API in tests to mute deprecation warnings.
  25. * Supported ARM and ARM64 for VC compilers.
  26. Functionality changes:
  27. * any negative number returned by response data generation callback
  28. function is treated as an error. Previously negative values except
  29. predefined error codes could produce undefined behaviour.
  30. * Added handling of "DEBUG" preprocessor macro as an alias of "_DEBUG".
  31. Fixes:
  32. # Fixed functionality with blocking sockets.
  33. # Fixed very inefficient data pumping for upgraded TLS connections.
  34. # Fixed processing of folded headers in the requests.
  35. # Fixed data races when closing upgraded connection.
  36. # Removed duplication of "Connection: upgrade" header.
  37. # Digest auth: fixed thread sync to avoid "stale hash" results.
  38. # Fixed harmless unwanted extra data processing resulting in triggering
  39. of the assert.
  40. # Fixed tests for LTO.
  41. # Removed removed non-portable functions in examples.
  42. # Fixed delayed call of connection notification callback in
  43. thread-per-connection mode.
  44. # Fixed Address Sanitizer unpoison of memory when memory pool is
  45. destroyed. This fixed periodic ASAN error when used for a long time
  46. with the sanitizer.
  47. # Fixed compiler warnings in library code, examples, tests and configure
  48. checks.
  49. # New TLS certificates for test-suite: all with SAN fields and SHA-256
  50. hash.
  51. # Tests: fixed tests on Darwin 22.x (Ventura).
  52. # Tests: redesigned one tests group to avoid stress-testing of the OS.
  53. -- Evgeny Grin (Karlson2k)
  54. Sun 26 Feb 2023 17:49:30 CET
  55. Released GNU libmicrohttpd 0.9.76 hotfix. -CG
  56. This is a hotfix release.
  57. This only change since previous release is fixed potential DoS vector
  58. in MHD_PostProcessor discovered by Gynvael Coldwind and Dejan
  59. Alvadzijevic (CVE-2023-27371).
  60. While the researchers have not been able to exploit this attack vector
  61. when libmicrohttpd is compiled with the standard GNU C library, it is
  62. recommended that you update MHD as soon as possible if your
  63. applications are using (optional) MHD_PostProcessor functionality.
  64. -- Evgeny Grin (Karlson2k)
  65. Sun 26 Dec 2021 20:30:00 MSK
  66. Released GNU libmicrohttpd 0.9.75 -EG
  67. This is a correction release.
  68. The main improvement is the implementation of workaround for some
  69. OSes (like OpenBSD 7) where "monotonic" clock may jump back. Now
  70. MHD is able to automatically detect such situation and recover if
  71. the jump is small. This workaround is needed with increased
  72. accuracy of connection timeout introduced in previous version, as
  73. with lower accuracy (v0.9.73 and before) these jumpbacks were
  74. unnoticeable.
  75. Other changes: fixed some compiler, Makefile, and configure
  76. warnings on specific platforms; one test further improved.
  77. -- Evgeny Grin (Karlson2k)
  78. Sun 19 Dec 2021 18:30:00 MSK
  79. Released GNU libmicrohttpd 0.9.74
  80. This release brings a lot of fixes and improvements, and
  81. important new features.
  82. The most significant addition is the new experimental
  83. implementation of WebSockets contributed by David Gausmann. This
  84. implementation is not fully tested yet so currently it is disabled
  85. by default.
  86. Other changes include a lot of improvements and clarifications
  87. in doxy comments in microhttpd.h header file, improved compliance
  88. with the RFC HTTP specifications, the new implementation of reply
  89. header forming, the new implementation of request chunked encoding
  90. parsing, new automatic error replies, internal optimisations, and
  91. many important fixes, including fixes for long-standing bugs.
  92. More detailed list of notable changes:
  93. API changes:
  94. + Added new function MHD_get_reason_phrase_len_for().
  95. + Added MHD_CONNECTION_INFO_HTTP_STATUS type of information
  96. queried by MHD_get_connection_info().
  97. + Added new response flag MHD_RF_SEND_KEEP_ALIVE_HEADER to force
  98. sending of "keep-alive" header even if not required by RFC.
  99. + Added new response creation function
  100. MHD_create_response_from_buffer_with_free_callback_cls() with
  101. custom cleanup callback.
  102. + Added new response flag MHD_RF_HTTP_1_0_COMPATIBLE_STRICT with
  103. the same functionality as existing MHD_RF_HTTP_VERSION_1_0_ONLY
  104. flag. The old flag will be deprecated.
  105. + Added new response flag MHD_RF_HTTP_1_0_SERVER with the same
  106. functionality as existing MHD_RF_HTTP_VERSION_1_0_RESPONSE flag.
  107. The old flag will be deprecated.
  108. New features:
  109. + Added experimental WebSockets extension with separate header.
  110. Disabled by default as it is not fully tested yet.
  111. + Added '--enable-sanitizers[=address,undefined,leak,user-poison]'
  112. configure parameter (instead of '--enable-sanitizer'),
  113. implemented custom memory poisoning for memory pools.
  114. Improvements and enhancements:
  115. * Doxy function descriptions was corrected, clarified, extended,
  116. and improved. Now it should be much easier to learn MHD just by
  117. reading the headers.
  118. * Completely rewritten reply header forming. New implementation is
  119. more robust, simpler maintainable and expandable, and better
  120. follows RFC HTTP specifications.
  121. * Performance improvements: now HTTP version and request method are
  122. decoded one time only (previously MHD used string comparison many
  123. times during processing the data).
  124. * Rewritten request chunked payload decoding. The new
  125. implementation better conforms to the HTTP RFC, detects format
  126. problems earlier, replies to the clients with description of
  127. detected problems, handles untypical (but syntactically correct)
  128. values properly.
  129. * Added special replies for wrong/unsupported HTTP versions in
  130. requests, broken HTTP chunked encoding in requests,
  131. * As required by HTTP RFC, added automatic error replies if client
  132. used broken chunked encoding, too large chunk size, too large
  133. payload size, or broken Content-Length header.
  134. * Optimized connection's memory pool handling.
  135. * Changed timeout precision from one second to one millisecond.
  136. * Added some checks for incorrect user data, reporting problems in
  137. MHD log.
  138. * Improved performance of hash calculations functions by using
  139. compiler built-ins (if available).
  140. * Implemented SHA-1 calculations (required for WebSockets).
  141. * Added universal MSVC project that works with any (sufficiently
  142. new) version of MSVC.
  143. * Developed simple HTTP client to test MHD under very special
  144. conditions.
  145. * Implemented 45 new tests.
  146. * Improved existing tests to test more aspects of MHD.
  147. * Added check for correct results of system and libcurl functions.
  148. * Response headers are checked during forming of responses.
  149. * HTTPS tests were improved.
  150. * Added rebuild on W32 of all required files if files are missing.
  151. * Many internal optimisations and improvements.
  152. Functionality changes:
  153. * Keep-alive header is omitted by default for HTTP/1.1 connections.
  154. Use of header can be enforced by response flag.
  155. * Chunked encoding is used for HTTP/1.1 non-keep-alive connections
  156. for responses with unknown size. Previously MHD used "indication
  157. of the end of the response by closing connection" in such cases,
  158. however it is not correct for HTTP/1.1 connections as per HTTP
  159. RFC.
  160. * As required by HTTP RFC, use HTTP/1.1 version instead of HTTP/1.0
  161. in reply headers when client is HTTP/1.0 . HTTP/1.0 version can
  162. be enforced by response flag.
  163. * User response headers are used in replies in the same order as
  164. was added by application.
  165. * Allowed tab characters in response header values.
  166. * All custom "Connection:" response headers are automatically
  167. combined into single "Connection:" header.
  168. * "keep-alive" token silently dropped from custom "Connection:"
  169. response header. "Keep-alive" cannot be enforced and used
  170. automatically if possible.
  171. * Allow tab character in custom response header value.
  172. * Disallow space character in custom response header value.
  173. * Do not allow responses with 1xx codes for HTTP/1.0 requests.
  174. * Detected and reported incorrect "Upgrade" responses.
  175. * W32 targets are changed to Vista+ by default. XP is supported
  176. still.
  177. Fixes:
  178. # Fixed short busy-waiting (up to one second) when connection is
  179. going to be expired and closed.
  180. # Fixed handling of errors during start of new connection, fixed
  181. inability to accept new connections in thread-per-connection mode
  182. due to the missing decrement of number of daemon's connections if
  183. start of new thread is failed.
  184. # Fixed incorrect parsing of LFLF, LFCR, CRCR, and bare CR as
  185. single linefeed in request header and request chunked payload.
  186. Now only CRLF or bare LF are recognized as linefeed.
  187. # Fixed response chunked encoding handling. Now it works properly
  188. with non-keep-alive connection, with fixed size replies (if
  189. chunked was enforced by header), and in other situations.
  190. # Other fixes for chunked replies.
  191. # Fixed handling of custom connection timeout in thread-per-
  192. connection mode.
  193. # Fixed wrongly used MHD_REQUEST_TERMINATED_COMPLETED_OK code for
  194. application notification when MHD_REQUEST_TERMINATED_WITH_ERROR
  195. code must be used.
  196. # Fixed code MHD_REQUEST_TERMINATED_READ_ERROR not reported (code
  197. MHD_REQUEST_TERMINATED_WITH_ERROR was incorrectly used instead).
  198. # Fixed handling of request chunked encoding with untypical
  199. formatting.
  200. # Fixed processing of last part of hex-encoded values under
  201. certain conditions.
  202. # Fixed value returned for MHD_CONNECTION_INFO_REQUEST_HEADER_SIZE.
  203. # Fixed returned value for MHD_FEATURE_AUTOSUPPRESS_SIGPIPE on W32,
  204. now it is MHD_YES as W32 does not need SIGPIPE suppression.
  205. # Fixed portability of bitwise NOT for enums values.
  206. # Fixed SHA-256 and MD5 calculations with unaligned data.
  207. # Fixed incorrect caseless matching for HTTP version.
  208. # Fixed incorrect caseless matching for request method.
  209. # Fixed compatibility with old GnuTLS versions.
  210. # Fixed compiler warnings on 32-bits platforms.
  211. # Fixed blocking sockets setting in tests and examples for W32.
  212. # Fixed examples to really use libmagic if present.
  213. # HTTPS tests were fixed.
  214. # Fixed libcurl test with case-insensitive match for HTTP methods,
  215. method names must use case-sensitive match.
  216. # Fixed tests compatibility with old libcurl versions.
  217. # Fixed build on W32 with llvm-dlltool (this tool is too
  218. oversimplified)
  219. -- Evgeny Grin (Karlson2k)
  220. Sun 25 Apr 2021 14:00:00 MSK
  221. Released GNU libmicrohttpd 0.9.73
  222. This release brings new features, improvements, and a few fixes.
  223. The most important addition is the new function for vector-backed
  224. responses, based on the patch contributed by NASA engineers.
  225. Other changes include compatibility with autoconf 2.70+, improved
  226. testsuite compatibility with CI systems, fixed and improved MSVC
  227. builds, and implementation of ALPN support.
  228. More detailed list of notable changes:
  229. API changes:
  230. + Added new function MHD_create_response_from_iovec(), based on the
  231. patch provided by Lawrence Sebald and Damon N. Earp from NASA.
  232. + Added MHD_OPTION_SIGPIPE_HANDLED_BY_APP daemon option.
  233. + Added new function MHD_run_wait().
  234. + Added MHD_OPTION_TLS_NO_ALPN to disable usage of ALPN even if
  235. it is supported by TLS library.
  236. New features:
  237. + Added '--enable-heavy-tests' configure parameter (disabled by
  238. default).
  239. + Implemented support for ALPN.
  240. Improvements and enhancements:
  241. * Return timeout of zero also for connections awaiting cleanup.
  242. * Compatibility with autoconf >=2.70, used new autoconf features.
  243. * Warn user when custom logger option is not the first option.
  244. * Added information to the header about minimal MHD version when
  245. particular symbols were introduced.
  246. * Updated test certificates to be compatible with modern browsers.
  247. * Added on-fly detection of UNIX domain sockets and pipes, MHD does
  248. not try to use TCP/IP-specific socket options on them.
  249. * Report more detailed error description in the MHD log for send
  250. and receive errors.
  251. * Enabled bind port autodetection for MSVC builds.
  252. Fixes:
  253. # Fix PostProcessor to always properly stop iteration when
  254. application callback tells it to do so.
  255. # Fixed MD5 digest authorization broken when compiled without
  256. variable length arrays support (notably with MSVC).
  257. # Fixed detection of type of send errors on W32.
  258. -- Evgeny Grin (Karlson2k)
  259. Mon 28 Dec 2020 21:36:00 MSK
  260. Released GNU libmicrohttpd 0.9.72
  261. This release is mostly a bugfix release, with greatly improved
  262. compatibility with various OSes/kernels, including FreeBSD, Windows,
  263. OpenBSD, NetBSD, Darwin (macOS), Solaris. Performance is improved,
  264. especially with HTTPS connections and stay-alive HTTP connections.
  265. Notable changes since version 0.9.71:
  266. API changes:
  267. + New function MHD_create_response_from_pipe()
  268. Improvements and enhancements:
  269. * Fully rewritten code for buffering/pushing from kernel network buffers
  270. for compatibility with various OSes. Reduced number of additional
  271. sys-calls, network is better utilized, responses are delivered faster.
  272. * Restored optimal sendfile() usage on FreeBSD.
  273. * MHD now takes care about SIGPIPE handling by blocking it in internal
  274. threads and avoiding functions (like sendfile()) that could generate
  275. SIGPIPE when blocking of this signal is not possible.
  276. Fixes:
  277. # Fixed crash in PostProcessor.
  278. # Fixed several resources leaks in corner cases.
  279. # Improved thread sync, thread safety and fixed one use-after-free under
  280. special conditions during stopping of daemon.
  281. # Updated HTTP status codes, header names and methods from the
  282. registries.
  283. # Fixed functioning without listen socket and with internal threads.
  284. # Fixed streaming of chunked responses for both HTTP and HTTPS.
  285. # Various compatibility fixes.
  286. -- Evgeny Grin (Karlson2k)
  287. Tue Jan 9 20:52:48 MST 2007
  288. Project posted.