diff options
Diffstat (limited to 'src/util/util.h')
-rw-r--r-- | src/util/util.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/util/util.h b/src/util/util.h index 5428f0af6..30413d9ce 100644 --- a/src/util/util.h +++ b/src/util/util.h @@ -512,4 +512,12 @@ sss_tc_utf8_str_tolower(TALLOC_CTX *mem_ctx, const char *s); uint8_t * sss_tc_utf8_tolower(TALLOC_CTX *mem_ctx, const uint8_t *s, size_t len, size_t *_nlen); +/* len includes terminating '\0' */ +struct sized_string { + const char *str; + size_t len; +}; + +void to_sized_string(struct sized_string *out, const char *in); + #endif /* __SSSD_UTIL_H__ */ |