1gnutls_hex2bin(3) gnutls gnutls_hex2bin(3)
2
3
4
6 gnutls_hex2bin - convert hex string into binary buffer.
7
9 #include <gnutls/gnutls.h>
10
11 int gnutls_hex2bin(const char * hex_data, size_t hex_size, char *
12 bin_data, size_t * bin_size);
13
15 const char * hex_data
16 string with data in hex format
17
18 size_t hex_size
19 size of hex data
20
21 char * bin_data
22 output array with binary data
23
24 size_t * bin_size
25 when calling *bin_size should hold size of bin_data, on
26 return will hold actual size of bin_data.
27
29 Convert a buffer with hex data to binary data.
30
32 GNUTLS_E_SUCCESS on success, otherwise an error.
33
35 2.4.0
36
38 Report bugs to <bug-gnutls@gnu.org>. GnuTLS home page:
39 http://www.gnu.org/software/gnutls/ General help using GNU software:
40 http://www.gnu.org/gethelp/
41
43 Copyright © 2008 Free Software Foundation.
44 Copying and distribution of this file, with or without modification,
45 are permitted in any medium without royalty provided the copyright
46 notice and this notice are preserved.
47
49 The full documentation for gnutls is maintained as a Texinfo manual.
50 If the info and gnutls programs are properly installed at your site,
51 the command
52
53 info gnutls
54
55 should give you access to the complete manual.
56
57
58
59gnutls 2.8.6 gnutls_hex2bin(3)