/usr/include/inn/utility.h is in inn2-dev 2.6.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | /* $Id: utility.h 7155 2005-04-10 06:27:34Z rra $
**
** INN utility functions.
**
** This is a collection of miscellaneous utility functions that aren't
** logically part of a larger package of routines. All functions defined in
** this file must be prefixed with inn_ (and constants and macros, if any,
** must be prefixed with INN_). The only exception are the macros handled by
** <inn/defines.h>.
*/
#ifndef INN_UTILITY_H
#define INN_UTILITY_H 1
#include <inn/defines.h>
#include <sys/types.h> /* size_t */
BEGIN_DECLS
/* Convert data to an ASCII hex representation (using capital hex digits).
The length of the output buffer must be at least 2 * input + 1 to hold the
full representation. The result is truncated if there isn't enough room
and will always be nul-terminated. */
void inn_encode_hex(const unsigned char *, size_t, char *, size_t);
/* Convert data from an ASCII hex representation. No adjustment is made for
byte order. The conversion stops at the first character that's not a hex
digit; upper- and lower-case digits are allowed. If there are an uneven
number of input characters, the input is zero-padded at the end (so the
input string "F" is equivalent to the string "F0"). The output buffer must
be at least (input - 1) / 2 to hold the full representation. The result is
truncated if there isn't enough room. */
void inn_decode_hex(const char *, unsigned char *, size_t);
END_DECLS
#endif /* !INN_UTILITY_H */
|