1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00
Commit Graph

26 Commits

Author SHA1 Message Date
Georg Richter
ae3854159a Merge branch '3.1' into 3.3 2024-09-21 15:33:49 +02:00
Georg Richter
9a40079349 Fix possible crash, if no default plugin was loaded. 2024-09-20 16:52:46 +02:00
Sergei Golubchik
f6e99af056 Revert "self-signed certificate verification", it's 3.4 feature
This reverts 395641549ac7..536d9e2b9e5b, in particular:

8dffd56936 MDEV-31857 enable MYSQL_OPT_SSL_VERIFY_SERVER_CERT by default
a99570c118 MDEV-31855 SSL cert validation protocol extension
9aa15e72a7 TLS fingerprint

and related commits
2024-02-19 11:16:26 +01:00
Sergei Golubchik
a99570c118 MDEV-31855 SSL cert validation protocol extension
* extend the client auth plugin API with a new callback
* relax the plugin version check to allow load a plugin with the
  same major version, even if the minor versions differ
* implement the protocol extension:
  - don't abort at once if the certificate is self signed and
    no CA was explicitly specified
  - allow it if it passes fingerprint check
  - allow it if plugin has hash_password_bin callback, password was
    non-empty and the control hash matches server's
2024-02-04 22:17:25 +01:00
Georg Richter
77a1f79754 Merge branch '3.2' into 3.3 2022-05-31 08:11:02 +02:00
Marko Mäkelä
4a99777934 Fix permissions after 79137a4ae1
Thanks to Michal Schorm for noticing this.
2022-05-23 16:20:21 +03:00
Georg Richter
770cf2286a CONC-575: Support for MySQL zstd compression
ZSTD compression is now supported for connections
to a MySQL Server 8.0.

Compression algorithms are supported via compression
plugins, which can be found in plugins/compress.
2022-01-25 05:02:33 +01:00
Georg Richter
f6b8fe10c3 Fix for CONC-568:
If multiple threads attempt to connect to a server using a
dynamically loaded authentication plugin the error
"plugin is already loaded" might occur. This is caused
by a race condition if one thread waits for a lock to
load the plugin, while another process which obtained the lock
already loaded the plugin.

The API function mysql_load_plugin_v() now returns
the plugin handle (instead of raising an error and returning
a NULL handle) even if the plugin was already loaded.
2021-10-08 10:20:23 +02:00
Georg Richter
79137a4ae1 Fix for CONC-517: C/C looks for plugins in wrong locatio on Windows
If the plugin dir wasn't specified via mysql_optionsv() or the
 environment variable MARIADB_PLUGIN_DIR wasn't set, the plugin
needs to be read from the default location (current path, DLPATH
or PATH).
2020-11-18 09:05:54 +01:00
Oleksandr Byelkin
636d44a4dd Fix problem with warnings of new compilers. 2019-09-30 09:11:21 +02:00
Oleksandr Byelkin
ed3a91c139 CONC-429: Don't allow to load unknown authentication plugins
Check for incorrect symbols in the plugin name.
2019-07-25 16:03:48 +02:00
Oleksandr Byelkin
59780f919e Revert "CONC-429: Don't allow to load unknown authentication plugins"
This reverts commit acc270b7d4.
2019-07-25 11:27:25 +02:00
Georg Richter
acc270b7d4 CONC-429: Don't allow to load unknown authentication plugins
If the server sends name of authentication plugin, the client needs to check
if this plugin is valid and authorized.
2019-07-22 07:27:48 +02:00
Georg Richter
017a67ed9e Fix compiler warning (missing dl prototypes) 2019-02-03 17:25:59 +01:00
Vladislav Vaintroub
eb28bf1dad CONC-385 Remove some irrelevant cmake system checks 2019-01-11 20:36:03 +01:00
Georg Richter
c95f86e882 More coverity fixes 2018-07-13 12:30:13 +02:00
Georg Richter
b0f2e4e72f Coverity fixes and travis integration 2018-07-06 09:28:24 +02:00
luz.paz
b2e6ed0295 Fixes misc. typos
found via `codespell -q 3`
2018-04-13 07:30:23 +02:00
Vladislav Vaintroub
6e1dd7a41f Windows : if plugin cannot be loaded, provide a full path of the library
in the error message, to simplify troubleshooting by users.

Elswhere, dlerror() already seems to include full library path already.
2018-03-26 20:37:56 +00:00
Georg Richter
ea8a31e63a Fixed compiler warnings 2017-07-04 13:56:38 +02:00
Georg Richter
e5384ddb3a renamed ma_errmsg to errmsg.h in .in file 2016-11-17 12:34:36 +01:00
Georg Richter
9f88e25fd6 Compiler warning fixes 2016-09-03 12:46:50 +02:00
Georg Richter
dd9ebcf56a - Fixed license header
- More OpenSSL 1.1 fixes
2016-08-05 07:39:10 +02:00
Georg Richter
c014b9f6ae 10.2 integration fixes:
- renamed/prefixed password functions
- prepared statement fixes for mysql_client_test
2016-02-19 22:23:00 +01:00
Georg Richter
d303cf76a7 More 10.2-integ fixes:
- renamed my_net functions (ma_net)
- fixed wrong types in ma_schannel.c
- fixed wrong parameter in client_plugin when building load string
2016-02-17 10:00:53 +01:00
Georg Richter
4ca933bb81 Global cleanup:
removed global locks
  removed dead code and files
  removed dbug
2016-02-08 18:43:02 +01:00