summaryrefslogtreecommitdiffstats
path: root/doc/functions/gnutls_anti_replay_init
blob: ac3e051600e5f0488fdf81bb24b9635fd417b91f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
@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