Blob Blame History Raw




@deftypefun {int} {gnutls_anti_replay_init} (gnutls_anti_replay_t * @var{anti_replay})
@var{anti_replay}: is a pointer to @code{gnutls_anti_replay_t}  type

This function will allocate and initialize the  @code{anti_replay} context
to be usable for detect replay attacks. The context can then be
attached to a  @code{gnutls_session_t} with
@code{gnutls_anti_replay_enable()} .

@strong{Returns:} Zero or a negative error code on error.

@strong{Since:} 3.6.5
@end deftypefun