Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2016-03-18 13:49:26 +0300
committerCorinna Vinschen <corinna@vinschen.de>2016-03-18 14:33:40 +0300
commit559fd77ddac907da598202c23f103fc940f15ff8 (patch)
tree502f0f2236526840efda91ce2038da5d381966af /newlib/libc/include/string.h
parent8740fa7fd0f1eba18059b2794c9cdfe29ef564d3 (diff)
Add timingsafe_bcmp()
This function is used by LibreSSL and OpenSSH and is provided by the OpenBSD libc. * libc/include/string.h (timingsafe_bcmp): Declare. * libc/string/timingsafe_bcmp.c: New file. * libc/string/Makefile.am: Add new file. * libc/string/Makefile.in: Regenerate.
Diffstat (limited to 'newlib/libc/include/string.h')
-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 c43106b33..2bda8f952 100644
--- a/newlib/libc/include/string.h
+++ b/newlib/libc/include/string.h
@@ -53,6 +53,7 @@ void _EXFUN(bzero,(void *, size_t));
#endif
#if __BSD_VISIBLE
void _EXFUN(explicit_bzero,(void *, size_t));
+int _EXFUN(timingsafe_bcmp,(const void *, const void *, size_t));
#endif
#if __MISC_VISIBLE || __POSIX_VISIBLE >= 200809
int _EXFUN(ffs,(int));