Fix CVE-2017-6891 in minitasn1 code
[platform/upstream/gnutls.git] / doc / functions / gnutls_tdb_set_verify_func
1
2
3
4
5 @deftypefun {void} {gnutls_tdb_set_verify_func} (gnutls_tdb_t @var{tdb}, gnutls_tdb_verify_func @var{verify})
6 @var{tdb}: The trust storage
7
8 @var{verify}: The verification function
9
10 This function will associate a retrieval function with the
11 trust storage structure. The function is of the following form.
12
13 int gnutls_tdb_verify_func(const char* db_name, const char* host,
14 const char* service, const gnutls_datum_t* pubkey);
15
16 The verify function should return zero on a match, @code{GNUTLS_E_CERTIFICATE_KEY_MISMATCH} 
17 if there is a mismatch and any other negative error code otherwise.
18
19 The  @code{db_name} should be used to pass any private data to this function.
20 @end deftypefun