Blame doc/functions/gnutls_certificate_set_verify_function

Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
Packit aea12f
@deftypefun {void} {gnutls_certificate_set_verify_function} (gnutls_certificate_credentials_t @var{cred}, gnutls_certificate_verify_function * @var{func})
Packit aea12f
@var{cred}: is a @code{gnutls_certificate_credentials_t}  type.
Packit aea12f
Packit aea12f
@var{func}: is the callback function
Packit aea12f
Packit aea12f
This function sets a callback to be called when peer's certificate
Packit aea12f
has been received in order to verify it on receipt rather than
Packit aea12f
doing after the handshake is completed.
Packit aea12f
Packit aea12f
The callback's function prototype is:
Packit aea12f
int (*callback)(gnutls_session_t);
Packit aea12f
Packit aea12f
If the callback function is provided then gnutls will call it, in the
Packit aea12f
handshake, just after the certificate message has been received.
Packit aea12f
To verify or obtain the certificate the @code{gnutls_certificate_verify_peers2()} ,
Packit aea12f
@code{gnutls_certificate_type_get()} , @code{gnutls_certificate_get_peers()}  functions
Packit aea12f
can be used.
Packit aea12f
Packit aea12f
The callback function should return 0 for the handshake to continue
Packit aea12f
or non-zero to terminate.
Packit aea12f
Packit aea12f
@strong{Since:} 2.10.0
Packit aea12f
@end deftypefun