const char *mysql_get_ssl_cipher(MYSQL *mysql)
mysql - a mysql handle, which was previously allocated by mysql_init() or mysql_real_connect().
mysql
Returns the name of the currently used cipher of the TLS connection, or NULL for non TLS connections.
mysql_ssl_set()