Details
-
New Feature
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
MySQL has removed MYSQL_OPT_SSL_ENFORCE in favour of MYSQL_OPT_SSL_MODE which isn't supported on MariaDB. This means that <database:tls> doesn't work on MariaDB.
Attachments
Issue Links
- is part of
-
MDEV-28906 MySQL 8.0 desired compatibility
-
- Open
-
- links to
The module already has
342
#if defined LIBMYSQL_VERSION_ID && LIBMYSQL_VERSION_ID > 80000
343
344
mysql_options(connection, MYSQL_OPT_SSL_MODE, &ssl);
345
A fix for MariaDB would've been
mysql_options(connection, MYSQL_OPT_SSL_MODE, &ssl);
+#elif defined MARIADB_PACKAGE_ID
+ unsigned my_bool ssl = config->getBool("ssl"), on= 1;
+ mysql_optionsv(connection, MYSQL_OPT_SSL_VERIFY_SERVER_CERT, &ssl);
+ mysql_optionsv(connection, MYSQL_OPT_SSL_ENFORCE, &on);
I can do a pull request, if it'd be easier