1
0
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:
Georg Richter
2017-10-17 15:53:45 +02:00
parent 3b297e08c9
commit abf4bf8024
8 changed files with 83 additions and 19 deletions

View File

@@ -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: