This is a read-only copy of the MariaDB Knowledgebase generated on 2024-11-09. For the latest, interactive version please visit https://mariadb.com/kb/.

MariaDB Connector/C 3.4.0 Release Notes

The most recent Stable (GA) release of MariaDB Connector/C is:
MariaDB Connector/C 3.4.1

Release Notes Changelog About MariaDB Connector/C

Release date: 24 June 2022

This is a Stable (GA) release of MariaDB Connector/C, formerly known as MariaDB Client Library for C.

For a description of this library see the MariaDB Connector/C page.

Notable changes

TLS encryption

CONC-692: Provide X509 peer certificate information:

Added a new structure MARIADB_X509_INFO, which contains information about peer certificate. The information can be obtained via mysql_get_infov API function:

MARIADB_X509_INFO *info;
mariadb_get_infov(mysql, MARIADB_TLS_PEER_CERT_INFO, &info);

MDEV-31857: enable MYSQL_OPT_SSL_VERIFY_SERVER_CERT by default

Using TLS/SSL has been simplified with MariaDB Server 11.4. Before version 11.4, proper TLS/SSL configuration required multiple manual steps for the server and all the clients connecting to it.

For MariaDB Connector/C before 3.4 to establish an TLS/SSL encrypted connection, or a MariaDB Server release series previous to 11.4, three options can be used:

MDEV-30366 - Server now permits to send a result-set containing generated id and affected rows for each bulk operation. This feature can be enabled with option MARIADB_OPT_BULK_UNIT_RESULTS. The server indicates if this feature is supported by setting MARIADB_CLIENT_BULK_UNIT_RESULTS in his capability flags.

  • Added support for restricted_auth in configuration files
  • Support for new collations which were added in MariaDB Server 11.5

Issues fixed

CONC-605: Don't allow to use unsupported client flags in mysql_real_connect CONC-677: Fix memory leak when setting default configuration directories CONC-648: Don't trust error packets received prior to TLS handshake completion. (Kudos to Daniel Lenski for his contribution CONC-683: Check pending results when closing statement CONC-688: mariadb_rpl_fetch() crashes if table is partitioned

Contributions

  • Warning fixes (-Wcalloc-transposed-args) in calloc calls (Thanks to Sam James)
  • Fixed SSL_read/write return value check in ma_tls_async_check_result (Thanks to Josh Hunt)

Changelog

For a list of changes made in this release, with links to detailed information on each push, see the changelog.


Be notified of new MariaDB Server releases automatically by subscribing to the MariaDB Foundation community announce 'at' lists.mariadb.org announcement list (this is a low traffic, announce-only list). MariaDB plc customers will be notified for all new releases, security issues and critical bug fixes for all MariaDB plc products thanks to the Notification Services.

MariaDB may already be included in your favorite OS distribution. More information can be found on the Distributions which Include MariaDB page.

Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.