[Bug 239936] www/mod_auth_mysql_another: fix if linked with mariadb

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 28 Nov 2026 16:05:38 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239936

--- Comment #9 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=917738f8f15491f04b849b718adfcbf169f301b7

commit 917738f8f15491f04b849b718adfcbf169f301b7
Author:     Jochen Neumeister <joneum@FreeBSD.org>
AuthorDate: 2026-11-28 16:04:23 +0000
Commit:     Jochen Neumeister <joneum@FreeBSD.org>
CommitDate: 2026-11-28 16:04:53 +0000

    www/mod_auth_mysql_another: Compute the password hash in the module

    The module called make_scrambled_password() from the client library.
    MySQL 8.0 and 8.4 export it only under its C++ mangled name, and MariaDB
    11.8 only as ma_make_scrambled_password(), so the symbol the module
    needs is not found and it cannot be loaded.

    Compute the mysql_native_password hash, '*' followed by the upper-case
    hex of SHA1(SHA1(password)), with apr_sha1 instead. This works with
    MySQL 8.0, 8.4 and MariaDB 11.8 alike. The code for the old 16 byte
    format is unchanged.

    PR:             239936
    Sponsored by:   Netzkommune GmbH

 www/mod_auth_mysql_another/Makefile                |  2 +-
 .../files/patch-mod__auth__mysql.c                 | 46 ++++++++++++++++++----
 2 files changed, 39 insertions(+), 9 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.