Blame doc/manpages/gnutls_anti_replay_set_add_function.3

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