add strndup/strnlen compat functions from OpenBSD

This commit is contained in:
Brent Cook
2014-07-27 06:11:56 -05:00
parent fb67b92eb2
commit 0a74a4d464
5 changed files with 17 additions and 1 deletions

View File

@@ -16,6 +16,10 @@ size_t strlcpy(char *dst, const char *src, size_t siz);
size_t strlcat(char *dst, const char *src, size_t siz);
char * strndup(const char *str, size_t maxlen);
size_t strnlen(const char *str, size_t maxlen);
void explicit_bzero(void *, size_t);
int timingsafe_bcmp(const void *b1, const void *b2, size_t n);