@deftypefun {void} {gnutls_session_set_keylog_function} (gnutls_session_t @var{session}, gnutls_keylog_func @var{func}) @var{session}: is @code{gnutls_session_t} type @var{func}: is the function to be called This function will set a callback to be called when a new secret is derived and installed during handshake. @strong{Since:} 3.6.13 @end deftypefun