MySQL 8.0 C API Developer Guide

5.4.38 mysql_get_ssl_session_reused()

bool 
mysql_get_ssl_session_reused(MYSQL *mysql)

Description

Indicates whether the currently connected session is reusing a prior session.

Return Values

TRUE if a session was reused when establishing the TLS connection. FALSE if the session is not connected, is not a TLS session, or there is insufficient memory.

Errors

None.