This documentation is for an older version. If you're using the most current version, select the documentation for that version with the version switch in the upper right corner of the online documentation, or by downloading a newer PDF or EPUB file. 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 from mysql_init().

This function was added in MySQL 5.0.23.

Return Values

A string naming the encryption cipher used for the connection, or NULL if no cipher is being used.