NEWS 17 KB

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