This is the mail archive of the
cygwin-patches
mailing list for the Cygwin project.
[PATCH] Export timingsafe_bcmp and timingsafe_memcmp
- From: Jon Turney <jon dot turney at dronecode dot org dot uk>
- To: cygwin-patches at cygwin dot com
- Cc: Jon Turney <jon dot turney at dronecode dot org dot uk>
- Date: Tue, 7 Mar 2017 12:38:41 +0000
- Subject: [PATCH] Export timingsafe_bcmp and timingsafe_memcmp
- Authentication-results: sourceware.org; auth=none
Signed-off-by: Jon Turney <jon.turney@dronecode.org.uk>
---
winsup/cygwin/common.din | 2 ++
winsup/cygwin/include/cygwin/version.h | 3 ++-
winsup/cygwin/release/2.7.2 | 12 ++++++++++++
winsup/doc/posix.xml | 2 ++
4 files changed, 18 insertions(+), 1 deletion(-)
create mode 100644 winsup/cygwin/release/2.7.2
diff --git a/winsup/cygwin/common.din b/winsup/cygwin/common.din
index 8c9af21..6cbb012 100644
--- a/winsup/cygwin/common.din
+++ b/winsup/cygwin/common.din
@@ -1437,6 +1437,8 @@ timer_gettime SIGFE
timer_settime SIGFE
times SIGFE
timezone SIGFE
+timingsafe_bcmp NOSIGFE
+timingsafe_memcmp NOSIGFE
tmpfile SIGFE
tmpnam SIGFE
toascii NOSIGFE
diff --git a/winsup/cygwin/include/cygwin/version.h b/winsup/cygwin/include/cygwin/version.h
index b647ae9..308bc8b 100644
--- a/winsup/cygwin/include/cygwin/version.h
+++ b/winsup/cygwin/include/cygwin/version.h
@@ -471,12 +471,13 @@ details. */
304: Export strerror_l, strptime_l, wcsftime_l.
305: [f]pathconf flag _PC_CASE_INSENSITIVE added.
306: Export getentropy, getrandom.
+ 307: Export timingsafe_bcmp, timingsafe_memcmp.
Note that we forgot to bump the api for ualarm, strtoll, strtoull,
sigaltstack, sethostname. */
#define CYGWIN_VERSION_API_MAJOR 0
-#define CYGWIN_VERSION_API_MINOR 306
+#define CYGWIN_VERSION_API_MINOR 307
/* There is also a compatibity version number associated with the shared memory
regions. It is incremented when incompatible changes are made to the shared
diff --git a/winsup/cygwin/release/2.7.2 b/winsup/cygwin/release/2.7.2
new file mode 100644
index 0000000..e7c7ee5
--- /dev/null
+++ b/winsup/cygwin/release/2.7.2
@@ -0,0 +1,12 @@
+What's new:
+-----------
+
+- New API: timingsafe_bcmp, timingsafe_memcmp
+
+What changed:
+-------------
+
+
+Bug Fixes
+
+---------
diff --git a/winsup/doc/posix.xml b/winsup/doc/posix.xml
index e80da4d..fac32b7 100644
--- a/winsup/doc/posix.xml
+++ b/winsup/doc/posix.xml
@@ -1232,6 +1232,8 @@ also IEEE Std 1003.1-2008 (POSIX.1-2008).</para>
strlcat
strlcpy
strsep
+ timingsafe_bcmp
+ timingsafe_memcmp
updwtmp
valloc
verr
--
2.8.3