diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2016-03-18 11:49:27 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2016-03-18 12:33:40 +0100 |
commit | 55c239d83413d3092c38acde8191d9249cf9f0ee (patch) | |
tree | 9706411d3a870ce3f42b304966b61313a8eee655 /newlib/libc/include | |
parent | 559fd77ddac907da598202c23f103fc940f15ff8 (diff) | |
download | cygnal-55c239d83413d3092c38acde8191d9249cf9f0ee.tar.gz cygnal-55c239d83413d3092c38acde8191d9249cf9f0ee.tar.bz2 cygnal-55c239d83413d3092c38acde8191d9249cf9f0ee.zip |
Add timingsafe_memcmp()
This function is used by LibreSSL and OpenSSH and is provided by the
OpenBSD libc.
* libc/include/string.h (timingsafe_memcmp): Declare.
* libc/string/timingsafe_memcmp.c: New file.
* libc/string/Makefile.am: Add new file.
* libc/string/Makefile.in: Regenerate.
Diffstat (limited to 'newlib/libc/include')
-rw-r--r-- | newlib/libc/include/string.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/newlib/libc/include/string.h b/newlib/libc/include/string.h index 2bda8f952..68ee41285 100644 --- a/newlib/libc/include/string.h +++ b/newlib/libc/include/string.h @@ -54,6 +54,7 @@ void _EXFUN(bzero,(void *, size_t)); #if __BSD_VISIBLE void _EXFUN(explicit_bzero,(void *, size_t)); int _EXFUN(timingsafe_bcmp,(const void *, const void *, size_t)); +int _EXFUN(timingsafe_memcmp,(const void *, const void *, size_t)); #endif #if __MISC_VISIBLE || __POSIX_VISIBLE >= 200809 int _EXFUN(ffs,(int)); |