1gnutls_hex_decode(3)                gnutls                gnutls_hex_decode(3)
2
3
4

NAME

6       gnutls_hex_decode - This function will decode hex encoded data
7

SYNOPSIS

9       #include <gnutls/gnutls.h>
10
11       int  gnutls_hex_decode(const  gnutls_datum_t * hex_data, char * result,
12       size_t * result_size);
13

ARGUMENTS

15       const gnutls_datum_t * hex_data
16                   contain the encoded data
17
18       char * result
19                   the place where decoded data will be copied
20
21       size_t * result_size
22                   holds the size of the result
23

DESCRIPTION

25       This function will decode the given encoded data, using the hex  encod‐
26       ing used by PSK password files.
27
28       Note that hex_data should be null terminated.
29
30       Returns  GNUTLS_E_SHORT_MEMORY_BUFFER  if  the buffer given is not long
31       enough, or 0 on success.
32

REPORTING BUGS

34       Report bugs to <bug-gnutls@gnu.org>.
35
37       Copyright © 2006 Free Software Foundation.
38       Permission is granted to make and distribute verbatim  copies  of  this
39       manual  provided  the  copyright  notice and this permission notice are
40       preserved on all copies.
41

SEE ALSO

43       The full documentation for gnutls is maintained as  a  Texinfo  manual.
44       If  the  info  and gnutls programs are properly installed at your site,
45       the command
46
47              info gnutls
48
49       should give you access to the complete manual.
50
51
52
53gnutls                               1.6.3                gnutls_hex_decode(3)
Impressum