@deftypefun {void} {gnutls_session_set_ptr} (gnutls_session_t @var{session}, void * @var{ptr}) @var{session}: is a @code{gnutls_session_t} type. @var{ptr}: is the user pointer This function will set (associate) the user given pointer @code{ptr} to the session structure. This pointer can be accessed with @code{gnutls_session_get_ptr()} . @end deftypefun