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
CONC-224: Allow to build Connector/C without TLS/SSL support.
- CMake option -DWITH_SSL=OFF disables TLS/SSL support for connector/c - Fixed warning when building with OpenSSL 1.1.0c
This commit is contained in:
@@ -1008,8 +1008,12 @@ error:
|
||||
}
|
||||
|
||||
int STDCALL
|
||||
mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert,
|
||||
const char *ca, const char *capath, const char *cipher)
|
||||
mysql_ssl_set(MYSQL *mysql __attribute__((unused)),
|
||||
const char *key __attribute__((unused)),
|
||||
const char *cert __attribute__((unused)),
|
||||
const char *ca __attribute__((unused)),
|
||||
const char *capath __attribute__((unused)),
|
||||
const char *cipher __attribute__((unused)))
|
||||
{
|
||||
#ifdef HAVE_TLS
|
||||
char enable= 1;
|
||||
@@ -1028,7 +1032,7 @@ mysql_ssl_set(MYSQL *mysql, const char *key, const char *cert,
|
||||
**************************************************************************/
|
||||
|
||||
const char * STDCALL
|
||||
mysql_get_ssl_cipher(MYSQL *mysql)
|
||||
mysql_get_ssl_cipher(MYSQL *mysql __attribute__((unused)))
|
||||
{
|
||||
#ifdef HAVE_TLS
|
||||
if (mysql->net.pvio && mysql->net.pvio->ctls)
|
||||
|
Reference in New Issue
Block a user