MySQL 9.3 C API Developer Guide
const char * mysql_get_ssl_cipher(MYSQL *mysql)
mysql_get_ssl_cipher()
returns
the encryption cipher used for the given connection to the
server. mysql
is the connection handler
returned from mysql_init()
.