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
Provide details about TLS/SSL library in use
When calling mariadb_get_infov with option MARIADB_TLS_LIBRARY the functioni now returns the correct version number and name of the tls/ssl library in use.
This commit is contained in:
@@ -3708,15 +3708,9 @@ my_bool STDCALL mariadb_get_infov(MYSQL *mysql, enum mariadb_value value, void *
|
||||
break;
|
||||
case MARIADB_TLS_LIBRARY:
|
||||
#ifdef HAVE_TLS
|
||||
#ifdef HAVE_GNUTLS
|
||||
*((const char **)arg)= "GNUTLS";
|
||||
#elif HAVE_OPENSSL
|
||||
*((const char **)arg)= "OPENSSL";
|
||||
#elif HAVE_SCHANNEL
|
||||
*((const char **)arg)= "SCHANNEL";
|
||||
#endif
|
||||
*((const char **)arg)= tls_library_version;
|
||||
#else
|
||||
*((char **)arg)= "OFF";
|
||||
*((char **)arg)= "Off";
|
||||
#endif
|
||||
break;
|
||||
case MARIADB_CLIENT_VERSION:
|
||||
|
Reference in New Issue
Block a user