Tue May 30 16:04:28 2023 UTC ()
libmicrohttpd: update to version 0.9.77

Changelog:

This is mostly a bugfix release.
This version created by taking patches from the current development branch and
back-porting them on top of version 0.9.76.
The most notable changes are: some improvements for Digest and Basic
authorizations, fixed efficiency for TLS upgraded connections, fixed
processing of folded headers in requests, fixed functionality with blocking
sockets, improved and fixed internal test-suite.

The more detailed list of the important changes:

API changes:
+ Added new function MHD_get_version_bin().

Improvements and enhancements:
* Digest Auth: changed algorithm identifiers in server generated headers from
"md5" / "sha-256" to "MD5" / "SHA-256" to better match RFC (while clients
should use caseless matching).
* Improved Base64 decoding by new implementation with robust input data
validation checks.
* Improved configure for cross-compiling, for better compatibility with POSIX
and for better compatibility with the latest compiler versions.
* New internal tests: for Base64 decoding, Basic Auth and folded headers.
* Supported new libcurl API in tests to mute deprecation warnings.
* Supported ARM and ARM64 for VC compilers.

Functionality changes:
* any negative number returned by response data generation callback function
is treated as an error. Previously negative values except predefined error
codes could produce undefined behaviour.
* Added handling of "DEBUG" preprocessor macro as an alias of "_DEBUG".

Fixes:
# Fixed functionality with blocking sockets.
# Fixed very inefficient data pumping for upgraded TLS connections.
# Fixed processing of folded headers in the requests.
# Fixed data races when closing upgraded connection.
# Removed duplication of "Connection: upgrade" header.
# Digest auth: fixed thread sync to avoid "stale hash" results.
# Fixed harmless unwanted extra data processing resulting in triggering of the
assert.
# Fixed tests for LTO.
# Removed removed non-portable functions in examples.
# Fixed delayed call of connection notification callback in
thread-per-connection mode.
# Fixed Address Sanitizer unpoison of memory when memory pool is destroyed.
This fixed periodic ASAN error when used for a long time with the sanitizer.
# Fixed compiler warnings in library code, examples, tests and configure
checks.
# New TLS certificates for test-suite: all with SAN fields and SHA-256 hash.
# Tests: fixed tests on Darwin 22.x (Ventura).
# Tests: redesigned one tests group to avoid stress-testing of the OS.


(nikita)
diff -r1.69 -r1.70 pkgsrc/www/libmicrohttpd/Makefile
diff -r1.39 -r1.40 pkgsrc/www/libmicrohttpd/distinfo

cvs diff -r1.69 -r1.70 pkgsrc/www/libmicrohttpd/Makefile (expand / switch to unified diff)

--- pkgsrc/www/libmicrohttpd/Makefile 2023/04/19 08:08:49 1.69
+++ pkgsrc/www/libmicrohttpd/Makefile 2023/05/30 16:04:28 1.70
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.69 2023/04/19 08:08:49 adam Exp $ 1# $NetBSD: Makefile,v 1.70 2023/05/30 16:04:28 nikita Exp $
2 2
3DISTNAME= libmicrohttpd-0.9.76 3DISTNAME= libmicrohttpd-0.9.77
4PKGREVISION= 1 
5CATEGORIES= www 4CATEGORIES= www
6MASTER_SITES= ${MASTER_SITE_GNU:=libmicrohttpd/} 5MASTER_SITES= ${MASTER_SITE_GNU:=libmicrohttpd/}
7 6
8MAINTAINER= nikita@NetBSD.org 7MAINTAINER= nikita@NetBSD.org
9HOMEPAGE= https://www.gnu.org/software/libmicrohttpd/ 8HOMEPAGE= https://www.gnu.org/software/libmicrohttpd/
10COMMENT= Small C library to run an HTTP server as part of another app 9COMMENT= Small C library to run an HTTP server as part of another app
11LICENSE= gnu-lgpl-v2.1 # or later 10LICENSE= gnu-lgpl-v2.1 # or later
12 11
13USE_LIBTOOL= yes 12USE_LIBTOOL= yes
14USE_TOOLS+= pkg-config 13USE_TOOLS+= pkg-config
15GNU_CONFIGURE= yes 14GNU_CONFIGURE= yes
16INFO_FILES= yes 15INFO_FILES= yes
17# 2 tests skipped as of 0.9.75, this is expected. 16# 2 tests skipped as of 0.9.75, this is expected.

cvs diff -r1.39 -r1.40 pkgsrc/www/libmicrohttpd/distinfo (expand / switch to unified diff)

--- pkgsrc/www/libmicrohttpd/distinfo 2023/02/27 19:53:33 1.39
+++ pkgsrc/www/libmicrohttpd/distinfo 2023/05/30 16:04:28 1.40
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1$NetBSD: distinfo,v 1.39 2023/02/27 19:53:33 nikita Exp $ 1$NetBSD: distinfo,v 1.40 2023/05/30 16:04:28 nikita Exp $
2 2
3BLAKE2s (libmicrohttpd-0.9.76.tar.gz) = b38625148ff90c69edfadd602a6f548774b7f140447352a11a74df1357d76afd 3BLAKE2s (libmicrohttpd-0.9.77.tar.gz) = f0e00f6fe719603ef547f6bef714c0cb89cc97fea22a4e5c9141cc7374a28dde
4SHA512 (libmicrohttpd-0.9.76.tar.gz) = 9ff8a837892142376eaeaf50c0b0dba76697d0ff44b908434cba8db4324c57dfb8bbcc1a922b97d825891ac10f50693dee9388531856e0fa81fa2cfeac538581 4SHA512 (libmicrohttpd-0.9.77.tar.gz) = 001025c023dd94c4a0cf017ed575e65a577b5ce595e7e450346bfb75def77eaa8a4cfbeffb9f4b912e34165c2cfca147c02c895e067a4f6c5a321a12035758a5
5Size (libmicrohttpd-0.9.76.tar.gz) = 2199858 bytes 5Size (libmicrohttpd-0.9.77.tar.gz) = 1896679 bytes