|
Packit Service |
4684c1 |
.\" DO NOT MODIFY THIS FILE! It was generated by gdoc.
|
|
Packit Service |
4684c1 |
.TH "gnutls_session_set_verify_function" 3 "3.6.14" "gnutls" "gnutls"
|
|
Packit Service |
4684c1 |
.SH NAME
|
|
Packit Service |
4684c1 |
gnutls_session_set_verify_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_session_set_verify_function(gnutls_session_t " session ", gnutls_certificate_verify_function * " func ");"
|
|
Packit Service |
4684c1 |
.SH ARGUMENTS
|
|
Packit Service |
4684c1 |
.IP "gnutls_session_t session" 12
|
|
Packit Service |
4684c1 |
is a \fBgnutls_session_t\fP type.
|
|
Packit Service |
4684c1 |
.IP "gnutls_certificate_verify_function * func" 12
|
|
Packit Service |
4684c1 |
is the callback function
|
|
Packit Service |
4684c1 |
.SH "DESCRIPTION"
|
|
Packit Service |
4684c1 |
This function sets a callback to be called when peer's certificate
|
|
Packit Service |
4684c1 |
has been received in order to verify it on receipt rather than
|
|
Packit Service |
4684c1 |
doing after the handshake is completed. This overrides any callback
|
|
Packit Service |
4684c1 |
set using \fBgnutls_certificate_set_verify_function()\fP.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The callback's function prototype is:
|
|
Packit Service |
4684c1 |
int (*callback)(gnutls_session_t);
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
If the callback function is provided then gnutls will call it, in the
|
|
Packit Service |
4684c1 |
handshake, just after the certificate message has been received.
|
|
Packit Service |
4684c1 |
To verify or obtain the certificate the \fBgnutls_certificate_verify_peers2()\fP,
|
|
Packit Service |
4684c1 |
\fBgnutls_certificate_type_get()\fP, \fBgnutls_certificate_get_peers()\fP functions
|
|
Packit Service |
4684c1 |
can be used.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The callback function should return 0 for the handshake to continue
|
|
Packit Service |
4684c1 |
or non\-zero to terminate.
|
|
Packit Service |
4684c1 |
.SH "SINCE"
|
|
Packit Service |
4684c1 |
3.4.6
|
|
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
|