4 typedef enum hex_status {
11 * The API for hex_encode() and hex_decode() is modelled on that for
14 * If 'out' points to a NULL pointer a char array of the appropriate
15 * size is allocated using talloc, and out_size is updated.
17 * If 'out' points to a non-NULL pointer, it assumed to describe an
18 * existing char array, with the size given in *out_size. This array
19 * may be resized by talloc_realloc if needed; in this case *out_size
20 * will also be updated.
22 * Note that it is an error to pass a NULL pointer for any parameter
27 hex_encode (void *talloc_ctx, const char *in, char **out,
31 hex_decode (void *talloc_ctx, const char *in, char **out,
35 * Non-allocating hex decode to decode 's' in-place. The length of the
36 * result is always equal to or shorter than the length of the
40 hex_decode_inplace (char *s);