---
title: "What’s New in MariaDB Connector/C 3.0"
publish_date: 2017-07-31
updated_date: 2018-10-09
author: "MariaDB"
tags:
  - name: "API"
    url: "/resources/blog/tag/api.md"
  - name: "Bulk operations"
    url: "/resources/blog/tag/bulk-operations.md"
  - name: "compatible"
    url: "/resources/blog/tag/compatible.md"
  - name: "Connector/C 3.0"
    url: "/resources/blog/tag/connector-c-3-0.md"
  - name: "MariaDB Connector"
    url: "/resources/blog/tag/mariadb-connector.md"
  - name: "New Version"
    url: "/resources/blog/tag/new-version.md"
  - name: "Plugins"
    url: "/resources/blog/tag/plugins.md"
  - name: "Security"
    url: "/resources/blog/tag/security.md"
---

# What’s New in MariaDB Connector/C 3.0

We are pleased to announce the general availability (GA) of [MariaDB Connector/C 3.0](https://staging-mdb.com/downloads/mariadb-tx/connector). MariaDB Connector/C 3.0.2 is the newest version of MariaDB Connector/C. This release is compatible with MariaDB Connector/C 2.3 – no code changes necessary to upgrade.

MariaDB Connector/C 3.0 includes new security enhancements, plugins and API functions.

## Security

In addition to OpenSSL, MariaDB Connector/C 3.0 now supports:

- GnuTLS
- Windows SChannel: removes dependencies on external libraries
- Windows SChannel: becomes the default for SSL on Windows
- TLSv1.1 and TLSv1.2 support
- Passphrase protected private keys

## Plugins

- All plugins can either be linked statically or built as shared objects (or dynamic link libraries on Windows)
- Pluggable Virtual IO (PVIO) for communication via socket, named pipe and shared memory
- Connection plugins, e.g for Aurora failover or replication (master write, slave read)
- Remote IO plugin, which allows to access remote files (via http, https, ftp, ldap, …)
- Trace plugin (for analyzing and dumping network traffic)
- New GSSAPI authentication plugin

## New API Functions

MariaDB Connector/C 3.0 is introducing the following new API functions:

- Bulk operations (array binding) for prepared statements (insert, update, delete).
- support for extended client/server capabilities (requires MariaDB 10.2 or newer)
- *mariadb\_get\_charset\_by\_name* and *mariadb\_get\_charset\_by\_nr*, which return charset information for a given internal number or name of character set. These functions have been previously used internally by MariaDB Connector/ODBC and are now exported, so they can be used also within plugins.
- *mariadb\_stmt\_execute\_direct* prepares and executes in one step (mainly used by MariaDB ODBC driver)
- *mariadb\_cancel* aborts a connection immediately by making all subsequent read/write operations fail
- *mysql\_get\_option* and *mysql\_get\_optionv* (variable argument list) for obtaining option values for a given connection.
- *mysql\_reconnect* which was used internally before (if the option MYSQL\_OPT\_RECONNECT was set) is now part of the API and can be used by applications and plugins to re-establish a failing connection
- *mysql\_reset\_connection* resets the current connection and clears session state
- *mysql\_stmt\_warning\_count* returns warnings per statement
- Functions for obtaining session state changes: 
    - *mysql\_session\_track\_get\_first*
    - *mysql\_session\_track\_get\_next*
- Added tls\_version support for SChannel. tls\_version has to be specified via *mysql\_options(mysql, MARIADB\_OPT\_TLS\_VERSION, …)*

Download the MariaDB Connector now and learn about the newest evolution of MariaDB Connector/C 3.0.

[Download](https://staging-mdb.com/downloads/mariadb-tx/connector) [Knowledge Base](https://staging-mdb.com/kb/en/mariadb/mariadb-connector-c/)