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