NEWS 17 KB

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