/usr/include/dovecot/str-sanitize.h is in dovecot-dev 1:2.2.9-1ubuntu2.
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 | #ifndef STR_SANITIZE_H
#define STR_SANITIZE_H
/* All control characters in src will be appended as '?'. If src is longer
than max_len, it's truncated with "..." appended to the end. */
void str_sanitize_append(string_t *dest, const char *src, size_t max_len);
/* Return src sanitized. If there are no changes, src pointer is returned.
If src is NULL, returns NULL. */
const char *str_sanitize(const char *src, size_t max_len);
#endif
|