10bet网址
MySQL 5.7 C API Developer Guide
Download this Manual

5.4.34 mysql_get_ssl_cipher()

const char * mysql_get_ssl_cipher(MYSQL *mysql)

Description

mysql_get_ssl_cipher()returns the encryption cipher used for the given connection to the server.mysqlis the connection handler returned frommysql_init().

Return Values

A string naming the encryption cipher used for the connection, orNULLif the connection is not encrypted.