How about this change
```diff
diff --git a/src/modules/db_mysql/km_my_con.c b/src/modules/db_mysql/km_my_con.c
index 4c756db..bab3e44 100644
--- a/src/modules/db_mysql/km_my_con.c
+++ b/src/modules/db_mysql/km_my_con.c
@@ -178,9 +178,16 @@ struct my_con *db_mysql_new_connection(const struct db_id 
*id)
        }
 #endif /* MYSQL_VERSION_ID */
 #endif /* MARIADB_BASE_VERSION */
+
+#ifdef MYSQL_OPT_SSL_CA
        if(db_mysql_opt_ssl_ca)
                mysql_options(
                                ptr->con, MYSQL_OPT_SSL_CA, (const void 
*)db_mysql_opt_ssl_ca);
+#else
+       LM_WARN("opt_ssl_ca option not supported by mysql version (value %u) - "
+                               "ignoring\n",
+                               (unsigned int)db_mysql_opt_ssl_mode);
+#endif /* MYSQL_OPT_SSL_CA */
 
 #ifdef KSR_MYSQL_OPT_RECONNECT
        /* set reconnect flag if enabled */
```

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3809#issuecomment-2049198019
You are receiving this because you are subscribed to this thread.

Message ID: <kamailio/kamailio/issues/3809/2049198...@github.com>
_______________________________________________
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org

Reply via email to