| mysql_ssl_set(3) | MariaDB Connector/C | mysql_ssl_set(3) |
mysql_ssl_set - Sets TLS/SSL options
#include <mysql.h>
my_bool mysql_ssl_set(MYSQL *mysql,
const char *key,
const char *cert,
const char *ca,
const char *capath,
const char *cipher)
Used for establishing a secure TLS connection. It must be called before attempting to use mysql_real_connect(3). TLS support must be enabled in the client library in order for the function to have any effect.
NULL can be used for an unused parameter. Always returns zero.
| Version 3.3.1 |