1gnutls_anti_replay_set_add_function(3g)nutlgsnutls_anti_replay_set_add_function(3)
2
3
4

NAME

6       gnutls_anti_replay_set_add_function - API function
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       void  gnutls_anti_replay_set_add_function(gnutls_anti_replay_t anti_re‐
12       play, gnutls_db_add_func add_func);
13

ARGUMENTS

15       gnutls_anti_replay_t anti_replay
16                   is a gnutls_anti_replay_t type.
17
18       gnutls_db_add_func add_func
19                   is the function.
20

DESCRIPTION

22       Sets the function that will be used to store an entry if it is not  al‐
23       ready  present in the resumed sessions database.  This function returns
24       0 if the entry is successfully stored, and a negative error code other‐
25       wise.  In particular, if the entry is found in the database, it returns
26       GNUTLS_E_DB_ENTRY_EXISTS.
27
28       The arguments to the   add_func  are:  -  ptr:  the  pointer  set  with
29       gnutls_anti_replay_set_ptr() - exp_time: the expiration time of the en‐
30       try - key: a pointer to the key - data: a pointer to data to store
31
32       The data set by this function can be examined using gnutls_db_check_en‐
33       try_expire_time() and gnutls_db_check_entry_time().
34

SINCE

36       3.6.5
37

REPORTING BUGS

39       Report bugs to <bugs@gnutls.org>.
40       Home page: https://www.gnutls.org
41
42
44       Copyright © 2001- Free Software Foundation, Inc., and others.
45       Copying  and  distribution  of this file, with or without modification,
46       are permitted in any medium without royalty provided the copyright  no‐
47       tice and this notice are preserved.
48

SEE ALSO

50       The  full  documentation  for gnutls is maintained as a Texinfo manual.
51       If the /usr/share/doc/gnutls/ directory does not contain the HTML  form
52       visit
53
54       https://www.gnutls.org/manual/
55
56gnutls                               3.7.g8nutls_anti_replay_set_add_function(3)
Impressum