Blame doc/functions/gnutls_tdb_set_verify_func
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@deftypefun {void} {gnutls_tdb_set_verify_func} (gnutls_tdb_t @var{tdb}, gnutls_tdb_verify_func @var{verify})
|
|
Packit Service |
4684c1 |
@var{tdb}: The trust storage
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
@var{verify}: The verification function
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
This function will associate a retrieval function with the
|
|
Packit Service |
4684c1 |
trust storage structure. The function is of the following form.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
int gnutls_tdb_verify_func(const char* db_name, const char* host,
|
|
Packit Service |
4684c1 |
const char* service, const gnutls_datum_t* pubkey);
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The verify function should return zero on a match, @code{GNUTLS_E_CERTIFICATE_KEY_MISMATCH}
|
|
Packit Service |
4684c1 |
if there is a mismatch and any other negative error code otherwise.
|
|
Packit Service |
4684c1 |
|
|
Packit Service |
4684c1 |
The @code{db_name} should be used to pass any private data to this function.
|
|
Packit Service |
4684c1 |
@end deftypefun
|