diff options
Diffstat (limited to '')
-rw-r--r-- | include/string.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h new file mode 100644 index 0000000..acdde6c --- /dev/null +++ b/include/string.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #include_next <string.h> | ||
2 | |||
3 | #ifndef LIBCRYPTOCOMPAT_STRING_H | ||
4 | #define LIBCRYPTOCOMPAT_STRING_H | ||
5 | |||
6 | #include <sys/types.h> | ||
7 | |||
8 | #ifdef __sun | ||
9 | /* Some functions historically defined in string.h were placed in strings.h by | ||
10 | * SUS. Use the same hack as OS X and FreeBSD use to work around on Solaris. | ||
11 | */ | ||
12 | #include <strings.h> | ||
13 | #endif | ||
14 | |||
15 | size_t strlcpy(char *dst, const char *src, size_t siz); | ||
16 | |||
17 | size_t strlcat(char *dst, const char *src, size_t siz); | ||
18 | |||
19 | void explicit_bzero(void *, size_t); | ||
20 | |||
21 | int timingsafe_bcmp(const void *b1, const void *b2, size_t n); | ||
22 | |||
23 | int timingsafe_memcmp(const void *b1, const void *b2, size_t len); | ||
24 | |||
25 | #endif | ||