tinymux/mux/lib
Stephen Dennis 255545def8 fix(#2177): give cng_digest the const signature its OpenSSL twin already has
#2136 flipped mux_sha1_digest to `const UTF8 * const data[]` and converted
every site the compiler surfaced.  On Linux and macOS the compiler cannot
surface sha1.cpp's Windows backend: UNIX_DIGEST is defined, so the CNG branch
is never compiled.  cng_digest kept `const UTF8 *data[]` while the definition
of mux_sha1_digest above it gained const-qualified pointers, and MSVC rejected
the call with C2664 "conversion loses qualifiers" — master did not build on
Windows.

Match evp_digest.  mux_digest's own parameter is unchanged and passes to the
tightened one in the safe direction, so no cast is needed; the body already
const_casts each element for BCryptHashData.

Verified on hatsuhara (Windows Server 2022, MSVC x64): netmux.sln Release|x64
links all twelve projects, ganl_tests 14 passed / 0 failed / 3 skipped.  This
was the only Windows breakage in the 65 commits from b01294b1f to 4a44f61b9.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-08-06 22:10:44 -06:00
..
alarm.cpp docs: finish #1290 citation in alarm.cpp 2026-07-25 20:10:28 -06:00
alloc.cpp fix(tables): pot for C* labels; no %* width on mux_sprintf 2026-07-28 17:34:14 +00:00
color_ops.c perf(color): make scramble() linear by building the cluster table once (#2045) 2026-08-04 13:25:43 -06:00
color_ops.rl perf(color): make scramble() linear by building the cluster table once (#2045) 2026-08-04 13:25:43 -06:00
date_scan.cpp feat(#2136): flip fargs to const UTF8 * const — and convert every site the compiler surfaced 2026-08-06 14:34:23 -06:00
date_scan.rl feat(#2136): flip fargs to const UTF8 * const — and convert every site the compiler surfaced 2026-08-06 14:34:23 -06:00
dbutil.cpp fix(win32): migrate the remaining mux_atol callers to mux_atoi64 (#1373) 2026-07-26 10:12:35 -06:00
dtoa.c Restructure mux/ directory: component-based layout with proper build root 2026-03-09 20:38:37 -06:00
libmux.cpp fix(win32): no module could load under muxscript, for two reasons (#1594) 2026-07-27 18:46:23 -06:00
Makefile.am build: drop objects that lack sibling .d files (#2118) 2026-08-05 23:14:14 +00:00
Makefile.in build: drop objects that lack sibling .d files (#2118) 2026-08-05 23:14:14 +00:00
mathutil.cpp fix(lib): mux_atoi64 accumulates and negates without undefined behaviour (#1459) 2026-07-26 17:06:39 -06:00
mux_nls.cpp chore: convert remaining player-facing snprintf to mux_sprintf (#1653) 2026-07-28 19:59:35 -06:00
mux_table.c feat(libmux): mux_table layout helpers for multi-column notifies (#1667) 2026-07-28 14:10:05 +00:00
sha1.cpp fix(#2177): give cng_digest the const signature its OpenSSL twin already has 2026-08-06 22:10:44 -06:00
shacrypt.cpp feat(passwords): portable sha-crypt ($5$/$6$) on both platforms, rounds policy, safe auto-upgrade (#1962) 2026-08-02 15:08:58 -06:00
stringutil.cpp feat(#2136): flip fargs to const UTF8 * const — and convert every site the compiler surfaced 2026-08-06 14:34:23 -06:00
strtod.cpp Rework Windows build for component-based directory layout 2026-03-10 09:38:57 -06:00
svdhash.cpp fix(lib): read svdhash's 32-bit words with memcpy, not a cast 2026-07-26 16:56:23 -06:00
svdrand.cpp Fix Windows agent build rework issues; refactor PCG RNG portability 2026-03-10 10:03:04 -06:00
timeabsolute.cpp feat(#2136): flip fargs to const UTF8 * const — and convert every site the compiler surfaced 2026-08-06 14:34:23 -06:00
timedelta.cpp Restructure mux/ directory: component-based layout with proper build root 2026-03-09 20:38:37 -06:00
timeutil.cpp fix: remove two shift-UB sites (#1456) 2026-07-26 17:04:45 -06:00
timezone.cpp Cache timezone name and re-enable offset probing 2026-03-24 14:32:20 -06:00
unicode_tables.c Build: Regenerate tables after Win32 linkage fixes; drop OTT cpp guard 2026-03-16 17:49:24 -06:00
utf8_collate.cpp Fix UTF-8 property DFA readers to stop at the first accepting state 2026-06-04 12:11:00 -05:00
utf8_grapheme.cpp perf(unicode): ASCII fast path for GCB/ExtPict lookups (#1910 lead A) 2026-08-01 03:19:43 +00:00
utf8_normalize.cpp perf(lib): take utf8_normalize_nfc_slow's 512 KB off the stack 2026-08-03 10:50:34 -06:00
utf8tables.cpp Regenerate UTF-8 DFA tables; fix table-gen toolchain on macOS 2026-06-04 12:32:08 -05:00