diff options
| author | Brent Cook <bcook@openbsd.org> | 2014-07-21 18:57:06 -0500 |
|---|---|---|
| committer | Brent Cook <bcook@openbsd.org> | 2014-07-21 20:29:49 -0500 |
| commit | ea6e7116c9d09f850d5045ef922b8bb9e0f65d82 (patch) | |
| tree | cf3986e343653f99cb15fbbd147401db7c4d4243 /include | |
| parent | 451dbd967ca64d229db40dd779154d42e381c525 (diff) | |
| download | portable-ea6e7116c9d09f850d5045ef922b8bb9e0f65d82.tar.gz portable-ea6e7116c9d09f850d5045ef922b8bb9e0f65d82.tar.bz2 portable-ea6e7116c9d09f850d5045ef922b8bb9e0f65d82.zip | |
build openbsd memmem implementation for explicit_bzero test
memmem is not always available, and not all memmem's work the same way
ok beck@ guenther@
Diffstat (limited to 'include')
| -rw-r--r-- | include/string.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h index acdde6c..6277247 100644 --- a/include/string.h +++ b/include/string.h | |||
| @@ -22,4 +22,7 @@ int timingsafe_bcmp(const void *b1, const void *b2, size_t n); | |||
| 22 | 22 | ||
| 23 | int timingsafe_memcmp(const void *b1, const void *b2, size_t len); | 23 | int timingsafe_memcmp(const void *b1, const void *b2, size_t len); |
| 24 | 24 | ||
| 25 | void * memmem(const void *big, size_t big_len, const void *little, | ||
| 26 | size_t little_len); | ||
| 27 | |||
| 25 | #endif | 28 | #endif |
