| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
@deftypefun {int} {dane_query_to_raw_tlsa} (dane_query_t @var{q}, unsigned int * @var{data_entries}, char *** @var{dane_data}, int ** @var{dane_data_len}, int * @var{secure}, int * @var{bogus}) |
| 6 |
@var{q}: The query result structure |
| 7 |
|
| 8 |
@var{data_entries}: Pointer set to the number of entries in the query |
| 9 |
|
| 10 |
@var{dane_data}: Pointer to contain an array of DNS rdata items, terminated with a NULL pointer; |
| 11 |
caller must guarantee that the referenced data remains |
| 12 |
valid until @code{dane_query_deinit()} is called. |
| 13 |
|
| 14 |
@var{dane_data_len}: Pointer to contain the length n bytes of the dane_data items |
| 15 |
|
| 16 |
@var{secure}: Pointer set true if the result is validated securely, false if |
| 17 |
validation failed or the domain queried has no security info |
| 18 |
|
| 19 |
@var{bogus}: Pointer set true if the result was not secure due to a security failure |
| 20 |
|
| 21 |
This function will provide the DANE data from the query |
| 22 |
response. |
| 23 |
|
| 24 |
The pointers dane_data and dane_data_len are allocated with @code{gnutls_malloc()} |
| 25 |
to contain the data from the query result structure (individual |
| 26 |
@code{dane_data} items simply point to the original data and are not allocated separately). |
| 27 |
The returned @code{dane_data} are only valid during the lifetime of @code{q} . |
| 28 |
|
| 29 |
@strong{Returns:} On success, @code{DANE_E_SUCCESS} (0) is returned, otherwise a |
| 30 |
negative error value. |
| 31 |
@end deftypefun |