summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authordelphij <delphij@FreeBSD.org>2017-05-31 06:47:56 +0000
committerdelphij <delphij@FreeBSD.org>2017-05-31 06:47:56 +0000
commit0214d478a4408ed76dad2e320174550f457464ec (patch)
tree816acc83ac64fdda14be5b1f76358e24690eefb0 /include
parent8451b29e08ac1e641221736f9ebba9f5d69e16c4 (diff)
downloadFreeBSD-src-0214d478a4408ed76dad2e320174550f457464ec.zip
FreeBSD-src-0214d478a4408ed76dad2e320174550f457464ec.tar.gz
MFC r304106:
Add timingsafe_bcmp and timingsafe_memcmp. Obtained from: OpenBSD Reviewed by: trasz
Diffstat (limited to 'include')
-rw-r--r--include/string.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/string.h b/include/string.h
index 5ffaabb..21698c3 100644
--- a/include/string.h
+++ b/include/string.h
@@ -134,6 +134,8 @@ typedef __ssize_t ssize_t;
void swab(const void * __restrict, void * __restrict, ssize_t);
#endif /* _SWAB_DECLARED */
+int timingsafe_bcmp(const void *, const void *, size_t);
+int timingsafe_memcmp(const void *, const void *, size_t);
#endif /* __BSD_VISIBLE */
#if __POSIX_VISIBLE >= 200809 || defined(_XLOCALE_H_)
OpenPOWER on IntegriCloud