blob: 3f70ecfaa7b594d29c37d261be7831de156b82ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
.TH "gnutls_anti_replay_set_add_function" 3 "3.7.9" "gnutls" "gnutls"
.SH NAME
gnutls_anti_replay_set_add_function \- API function
.SH SYNOPSIS
.B #include <gnutls/gnutls.h>
.sp
.BI "void gnutls_anti_replay_set_add_function(gnutls_anti_replay_t " anti_replay ", gnutls_db_add_func " add_func ");"
.SH ARGUMENTS
.IP "gnutls_anti_replay_t anti_replay" 12
is a \fBgnutls_anti_replay_t\fP type.
.IP "gnutls_db_add_func add_func" 12
is the function.
.SH "DESCRIPTION"
Sets the function that will be used to store an entry if it is not
already present in the resumed sessions database. This function returns 0
if the entry is successfully stored, and a negative error code
otherwise. In particular, if the entry is found in the database,
it returns \fBGNUTLS_E_DB_ENTRY_EXISTS\fP.
The arguments to the \fIadd_func\fP are:
\- \fBptr\fP: the pointer set with \fBgnutls_anti_replay_set_ptr()\fP
\- \fBexp_time\fP: the expiration time of the entry
\- \fBkey\fP: a pointer to the key
\- \fBdata\fP: a pointer to data to store
The data set by this function can be examined using
\fBgnutls_db_check_entry_expire_time()\fP and \fBgnutls_db_check_entry_time()\fP.
.SH "SINCE"
3.6.5
.SH "REPORTING BUGS"
Report bugs to <bugs@gnutls.org>.
.br
Home page: https://www.gnutls.org
.SH COPYRIGHT
Copyright \(co 2001- Free Software Foundation, Inc., and others.
.br
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved.
.SH "SEE ALSO"
The full documentation for
.B gnutls
is maintained as a Texinfo manual.
If the /usr/share/doc/gnutls/
directory does not contain the HTML form visit
.B
.IP https://www.gnutls.org/manual/
.PP
|