https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41862

--- Comment #1 from David Cook <[email protected]> ---
Hmm interesting. 

According to https://github.com/perl5-dbi/DBD-mysql/issues/351 it should be
fixed in DBD::mysql at some point (based off the timing of the comment and
releases... maybe 4.0.51 which is Debian 13. Looking at patches for the 4.0.50
in Debian 12 and I don't see anything obvious for SSL)

On that same issue report, someone said they fixed it by switching to
DBD::MariaDB. 

Looking at the code for DBD::mysql... I can see the error message comes from
dbdimp.c

Aha... in 4.0.50 there is this line which unsets "ssl_mode":

 (defined(CLIENT_SSL) || (MYSQL_VERSION_ID >= 40000))
        char *client_key = NULL;
        char *client_cert = NULL;
        char *ca_file = NULL;
        char *ca_path = NULL;
        char *cipher = NULL;
        STRLEN lna;
        unsigned int ssl_mode;

That block isn't in the master branch, but it's in every 4.x release. It looks
like it was removed in 5.x. 

And if we look at the changelog... I think that's probably covered by "Only
support MySQL 8.x as MySQL 5.7 is going EOL soon" so he took out the hack that
unset ssl_mode.

Well that's a big pain in the butt... since the version included in every
version of Debian and Ubuntu is 4.x.

He created 5.x in 2023 but has continued updating 4.x in 2025. 

But then... the version of libdbd-mysql-perl is very similar between Debian 11
and Debian 12 at a glance...

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to