@deftypefun {int} {gnutls_handshake_write} (gnutls_session_t @var{session}, gnutls_record_encryption_level_t @var{level}, const void * @var{data}, size_t @var{data_size}) @var{session}: is a @code{gnutls_session_t} type. @var{level}: the current encryption level for reading a handshake message @var{data}: the (const) handshake data to be processed @var{data_size}: the size of data This function processes a handshake message in the encryption level specified with @code{level} . Prior to calling this function, a handshake read callback must be set on @code{session} . Use @code{gnutls_handshake_set_read_function()} to do this. @strong{Since:} 3.7.0 @end deftypefun