MySQL 9.5 C API Developer Guide / ... / C API Basic Interface / C API Basic Function Descriptions / mysql_get_ssl_cipher()
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 frommysql_init().