



@deftypefun {int} {gnutls_ext_get_data} (gnutls_session_t @var{session}, unsigned @var{type}, gnutls_ext_priv_data_t * @var{data})
@var{session}: a @code{gnutls_session_t}  opaque pointer

@var{type}: the numeric id of the extension

@var{data}: a pointer to the private data to retrieve

This function retrieves any data previously stored with @code{gnutls_ext_set_data()} .

@strong{Returns:} @code{GNUTLS_E_SUCCESS}  on success, otherwise a negative error code.

@strong{Since:} 3.4.0
@end deftypefun
