|
Packit |
549fdc |
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
|
|
Packit |
549fdc |
.TH "gnutls_psk_set_server_credentials_function" 3 "3.6.2" "gnutls" "gnutls"
|
|
Packit |
549fdc |
.SH NAME
|
|
Packit |
549fdc |
gnutls_psk_set_server_credentials_function \- API function
|
|
Packit |
549fdc |
.SH SYNOPSIS
|
|
Packit |
549fdc |
.B #include <gnutls/gnutls.h>
|
|
Packit |
549fdc |
.sp
|
|
Packit |
549fdc |
.BI "void gnutls_psk_set_server_credentials_function(gnutls_psk_server_credentials_t " cred ", gnutls_psk_server_credentials_function * " func ");"
|
|
Packit |
549fdc |
.SH ARGUMENTS
|
|
Packit |
549fdc |
.IP "gnutls_psk_server_credentials_t cred" 12
|
|
Packit |
549fdc |
is a \fBgnutls_psk_server_credentials_t\fP type.
|
|
Packit |
549fdc |
.IP "gnutls_psk_server_credentials_function * func" 12
|
|
Packit |
549fdc |
is the callback function
|
|
Packit |
549fdc |
.SH "DESCRIPTION"
|
|
Packit |
549fdc |
This function can be used to set a callback to retrieve the user's PSK credentials.
|
|
Packit |
549fdc |
The callback's function form is:
|
|
Packit |
549fdc |
int (*callback)(gnutls_session_t, const char* username,
|
|
Packit |
549fdc |
gnutls_datum_t* key);
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
\fIusername\fP contains the actual username.
|
|
Packit |
549fdc |
The \fIkey\fP must be filled in using the \fBgnutls_malloc()\fP.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
In case the callback returned a negative number then gnutls will
|
|
Packit |
549fdc |
assume that the username does not exist.
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
The callback function will only be called once per handshake. The
|
|
Packit |
549fdc |
callback function should return 0 on success, while \-1 indicates
|
|
Packit |
549fdc |
an error.
|
|
Packit |
549fdc |
.SH "REPORTING BUGS"
|
|
Packit |
549fdc |
Report bugs to <bugs@gnutls.org>.
|
|
Packit |
549fdc |
.br
|
|
Packit |
549fdc |
Home page: http://www.gnutls.org
|
|
Packit |
549fdc |
|
|
Packit |
549fdc |
.SH COPYRIGHT
|
|
Packit |
549fdc |
Copyright \(co 2001-2018 Free Software Foundation, Inc., and others.
|
|
Packit |
549fdc |
.br
|
|
Packit |
549fdc |
Copying and distribution of this file, with or without modification,
|
|
Packit |
549fdc |
are permitted in any medium without royalty provided the copyright
|
|
Packit |
549fdc |
notice and this notice are preserved.
|
|
Packit |
549fdc |
.SH "SEE ALSO"
|
|
Packit |
549fdc |
The full documentation for
|
|
Packit |
549fdc |
.B gnutls
|
|
Packit |
549fdc |
is maintained as a Texinfo manual.
|
|
Packit |
549fdc |
If the /usr/share/doc/gnutls/
|
|
Packit |
549fdc |
directory does not contain the HTML form visit
|
|
Packit |
549fdc |
.B
|
|
Packit |
549fdc |
.IP http://www.gnutls.org/manual/
|
|
Packit |
549fdc |
.PP
|