5 @deftypefun {int} {gnutls_hex_decode} (const gnutls_datum_t * @var{hex_data}, void * @var{result}, size_t * @var{result_size})
6 @var{hex_data}: contain the encoded data
8 @var{result}: the place where decoded data will be copied
10 @var{result_size}: holds the size of the result
12 This function will decode the given encoded data, using the hex
13 encoding used by PSK password files.
15 Note that hex_data should be null terminated.
17 @strong{Returns:} @code{GNUTLS_E_SHORT_MEMORY_BUFFER} if the buffer given is not
18 long enough, or 0 on success.