Blame doc/manpages/gnutls_anti_replay_set_add_function.3

Packit Service 4684c1
.\" DO NOT MODIFY THIS FILE!  It was generated by gdoc.
Packit Service 4684c1
.TH "gnutls_anti_replay_set_add_function" 3 "3.6.14" "gnutls" "gnutls"
Packit Service 4684c1
.SH NAME
Packit Service 4684c1
gnutls_anti_replay_set_add_function \- API function
Packit Service 4684c1
.SH SYNOPSIS
Packit Service 4684c1
.B #include <gnutls/gnutls.h>
Packit Service 4684c1
.sp
Packit Service 4684c1
.BI "void gnutls_anti_replay_set_add_function(gnutls_anti_replay_t " anti_replay ", gnutls_db_add_func " add_func ");"
Packit Service 4684c1
.SH ARGUMENTS
Packit Service 4684c1
.IP "gnutls_anti_replay_t anti_replay" 12
Packit Service 4684c1
is a \fBgnutls_anti_replay_t\fP type.
Packit Service 4684c1
.IP "gnutls_db_add_func add_func" 12
Packit Service 4684c1
is the function.
Packit Service 4684c1
.SH "DESCRIPTION"
Packit Service 4684c1
Sets the function that will be used to store an entry if it is not
Packit Service 4684c1
already present in the resumed sessions database.  This function returns 0
Packit Service 4684c1
if the entry is successfully stored, and a negative error code
Packit Service 4684c1
otherwise.  In particular, if the entry is found in the database,
Packit Service 4684c1
it returns \fBGNUTLS_E_DB_ENTRY_EXISTS\fP.
Packit Service 4684c1
Packit Service 4684c1
The arguments to the  \fIadd_func\fP are:
Packit Service 4684c1
\- \fBptr\fP: the pointer set with \fBgnutls_anti_replay_set_ptr()\fP
Packit Service 4684c1
\- \fBexp_time\fP: the expiration time of the entry
Packit Service 4684c1
\- \fBkey\fP: a pointer to the key
Packit Service 4684c1
\- \fBdata\fP: a pointer to data to store
Packit Service 4684c1
Packit Service 4684c1
The data set by this function can be examined using
Packit Service 4684c1
\fBgnutls_db_check_entry_expire_time()\fP and \fBgnutls_db_check_entry_time()\fP.
Packit Service 4684c1
.SH "SINCE"
Packit Service 4684c1
3.6.5
Packit Service 4684c1
.SH "REPORTING BUGS"
Packit Service 4684c1
Report bugs to <bugs@gnutls.org>.
Packit Service 4684c1
.br
Packit Service 4684c1
Home page: https://www.gnutls.org
Packit Service 4684c1
Packit Service 4684c1
.SH COPYRIGHT
Packit Service 4684c1
Copyright \(co 2001- Free Software Foundation, Inc., and others.
Packit Service 4684c1
.br
Packit Service 4684c1
Copying and distribution of this file, with or without modification,
Packit Service 4684c1
are permitted in any medium without royalty provided the copyright
Packit Service 4684c1
notice and this notice are preserved.
Packit Service 4684c1
.SH "SEE ALSO"
Packit Service 4684c1
The full documentation for
Packit Service 4684c1
.B gnutls
Packit Service 4684c1
is maintained as a Texinfo manual.
Packit Service 4684c1
If the /usr/share/doc/gnutls/
Packit Service 4684c1
directory does not contain the HTML form visit
Packit Service 4684c1
.B
Packit Service 4684c1
.IP https://www.gnutls.org/manual/
Packit Service 4684c1
.PP