1
0
mirror of https://github.com/mariadb-corporation/mariadb-connector-c.git synced 2025-08-08 14:02:17 +03:00

MDEV-14027: Determine TLS/SSL library version

This commit is contained in:
Georg Richter
2017-10-15 06:01:59 +02:00
parent e815469f21
commit 7b02cbb721
7 changed files with 45 additions and 13 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
*((char **)arg)= tls_library_version;
#else
*((char **)arg)= "OFF";
*((char **)arg)= "Off";
#endif
break;
case MARIADB_CLIENT_VERSION: