summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-03-18 11:49:27 +0100
committerCorinna Vinschen <corinna@vinschen.de>2016-03-18 12:33:40 +0100
commit55c239d83413d3092c38acde8191d9249cf9f0ee (patch)
tree9706411d3a870ce3f42b304966b61313a8eee655 /newlib/libc/include
parent559fd77ddac907da598202c23f103fc940f15ff8 (diff)
downloadcygnal-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.h1
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));