Fix CVE-2017-6891 in minitasn1 code
[platform/upstream/gnutls.git] / doc / functions / gnutls_hex_decode
1
2
3
4
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
7
8 @var{result}: the place where decoded data will be copied
9
10 @var{result_size}: holds the size of the result
11
12 This function will decode the given encoded data, using the hex
13 encoding used by PSK password files.
14
15 Note that hex_data should be null terminated.
16
17 @strong{Returns:} @code{GNUTLS_E_SHORT_MEMORY_BUFFER}  if the buffer given is not
18 long enough, or 0 on success.
19 @end deftypefun