NEWS 17 KB

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