You've already forked mariadb-connector-c
mirror of
https://github.com/mariadb-corporation/mariadb-connector-c.git
synced 2025-08-07 02:42:49 +03:00
Reworked plugin interface
Plugin configuration happens now in CMakeLists.txt files in corresponding plugin directories. plugins.cmake now contains REGISTER_PLUGIN_FUNCTION which accepts the following parameters: - TARGET: the name of the plugin (dynamic plugins will be named ${TARGET}.so (or .dll) - SOURCES: source files - LIBRARIES: additional libraries for linking - INCLUDES: include directories - CONFIGURATIONS: possible plugin configurations: valid arguments are DYNAMIC, STATIC, OFF - DEFAULT: default configuration (see CONFIGURATIONS) - COMPILE_OPTIONS: compiler flags The default plugin configuration can be specified via cmake parameter -DCLIENT_PLUGIN_${TARGET}=[DYNAMIC|STATIC|OFF]
This commit is contained in:
@@ -525,8 +525,13 @@ MYSQL *my_test_connect(MYSQL *mysql,
|
||||
unsigned long clientflag)
|
||||
{
|
||||
if (force_tls)
|
||||
mysql_options(mysql, MYSQL_OPT_SSL_ENFORCE, &force_tls);
|
||||
mysql= mysql_real_connect(mysql, host, user, passwd, db, port, unix_socket, clientflag);
|
||||
mysql_options(mysql, MYSQL_OPT_SSL_ENFORCE, &force_tls);
|
||||
if (!mysql_real_connect(mysql, host, user, passwd, db, port, unix_socket, clientflag))
|
||||
{
|
||||
diag("error: %s", mysql_error(mysql));
|
||||
return NULL;
|
||||
}
|
||||
|
||||
if (mysql && force_tls && !mysql_get_ssl_cipher(mysql))
|
||||
{
|
||||
diag("Error: TLS connection not established");
|
||||
|
Reference in New Issue
Block a user