]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Synchronize compat/getentropy_win.c with version 1.5 from
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 20 Nov 2019 12:08:43 +0000 (13:08 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Wed, 20 Nov 2019 12:08:43 +0000 (13:08 +0100)
  OpenBSD, no changes but makes the file, comments, identical.

compat/getentropy_win.c
doc/Changelog

index 71fb955e7f9053ac56d0ffda4d5372e8691ec37b..2abeb27bc6247c99bfbb8f90086c8b360dde13e0 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD$       */
+/*     $OpenBSD: getentropy_win.c,v 1.5 2016/08/07 03:27:21 tb Exp $   */
 
 /*
  * Copyright (c) 2014, Theo de Raadt <deraadt@openbsd.org> 
@@ -15,6 +15,9 @@
  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Emulation of getentropy(2) as documented at:
+ * http://man.openbsd.org/getentropy.2
  */
 
 #include <windows.h>
@@ -37,7 +40,7 @@ getentropy(void *buf, size_t len)
 
        if (len > 256) {
                errno = EIO;
-               return -1;
+               return (-1);
        }
 
        if (CryptAcquireContext(&provider, NULL, NULL, PROV_RSA_FULL,
index a74b2bc2415770696b03794fc49975fefe5578d6..29ade4fbe0bf78c23eb1d8b35fce3d72739a039d 100644 (file)
@@ -19,6 +19,8 @@
        - Fix Integer Underflow in Regional Allocator,
          reported by X41 D-Sec.
        - Upgrade compat/getentropy_linux.c to version 1.46 from OpenBSD.
+       - Synchronize compat/getentropy_win.c with version 1.5 from
+         OpenBSD, no changes but makes the file, comments, identical.
 
 19 November 2019: Wouter
        - Fix CVE-2019-18934, shell execution in ipsecmod.