Quantcast

[PATCH] Export timingsafe_bcmp and timingsafe_memcmp

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] Export timingsafe_bcmp and timingsafe_memcmp

Jon TURNEY
Signed-off-by: Jon Turney <[hidden email]>
---
 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

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [PATCH] Export timingsafe_bcmp and timingsafe_memcmp

Jon TURNEY
On 07/03/2017 12:38, Jon Turney wrote:
> ---
>  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

per IRC, applied, after correcting for the next release probably being
2.7.1.

Loading...