Description: Use MariaDB connector SSL options
 Replace MySQL-specific SSL_MODE_REQUIRED / SSL_MODE_DISABLED /
 MYSQL_OPT_SSL_MODE (not available in MariaDB's mysql.h) with
 MYSQL_OPT_SSL_ENFORCE and a my_bool value, so the package builds against
 default-libmysqlclient-dev (MariaDB).
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Forwarded: not-needed
Last-Update: 2026-09-16

---
--- mydumper-0.10.1.orig/connection.c
+++ mydumper-0.10.1/connection.c
@@ -41,15 +41,15 @@ void configure_connection(MYSQL *conn, c
     mysql_options(conn, MYSQL_OPT_COMPRESS, NULL);
 
 #ifdef WITH_SSL
-  unsigned int i;
+  my_bool i;
   if (ssl) {
-    i = SSL_MODE_REQUIRED;
+    i = 1;
   } else {
-    i = SSL_MODE_DISABLED;
+    i = 0;
   }
 
   mysql_ssl_set(conn, key, cert, ca, capath, cipher);
-  mysql_options(conn, MYSQL_OPT_SSL_MODE, &i);
+  mysql_options(conn, MYSQL_OPT_SSL_ENFORCE, &i);
 #endif
   /* unconditionally disable infile to fix CVE-2025-30224 */
   mysql_options(conn, MYSQL_OPT_LOCAL_INFILE, NULL);
