[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
fix list of crypto devices for NetBSD, OpenBSD
From: |
Bruno Haible |
Subject: |
fix list of crypto devices for NetBSD, OpenBSD |
Date: |
Sun, 31 May 2020 01:14:26 +0200 |
User-agent: |
KMail/5.1.3 (Linux/4.4.0-177-generic; KDE/5.18.0; x86_64; ; ) |
The list of crypto devices in m4/gc-random.m4 is from 2006.
I get test failures of module 'getrandom' on current versions of
NetBSD and OpenBSD (NetBSD 7.0 and 9.0, and OpenBSD 6.5, to be precise).
These platforms have the quasi-standard /dev/random and /dev/urandom
meanwhile. No more /dev/srandom exists.
This patch fixes the test failures.
2020-05-30 Bruno Haible <bruno@clisp.org>
crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
* m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
diff --git a/m4/gc-random.m4 b/m4/gc-random.m4
index 958c871..15751cb 100644
--- a/m4/gc-random.m4
+++ b/m4/gc-random.m4
@@ -1,4 +1,4 @@
-# gc-random.m4 serial 7
+# gc-random.m4 serial 8
dnl Copyright (C) 2005-2020 Free Software Foundation, Inc.
dnl This file is free software; the Free Software Foundation
dnl gives unlimited permission to copy and/or distribute it,
@@ -12,18 +12,12 @@ AC_DEFUN([gl_GC_RANDOM],
AC_REQUIRE([AC_CANONICAL_HOST])
case "$host_os" in
- *openbsd* | *mirbsd*)
+ *mirbsd*)
NAME_OF_RANDOM_DEVICE="/dev/srandom"
NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/prandom"
NAME_OF_NONCE_DEVICE="/dev/urandom"
;;
- *netbsd*)
- NAME_OF_RANDOM_DEVICE="/dev/srandom"
- NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/urandom"
- NAME_OF_NONCE_DEVICE="/dev/urandom"
- ;;
-
*solaris* | *irix* | *dec-osf* )
NAME_OF_RANDOM_DEVICE="/dev/random"
NAME_OF_PSEUDO_RANDOM_DEVICE="/dev/random"
- Re: getrandom vs. crypto/gc-random, (continued)
Re: [PATCH] getentropy, getrandom: new modules, Bruno Haible, 2020/05/30
Re: [PATCH] getentropy, getrandom: new modules, Bruno Haible, 2020/05/30
Re: [PATCH] getentropy, getrandom: new modules, Bruno Haible, 2020/05/30
fix list of crypto devices for NetBSD, OpenBSD,
Bruno Haible <=
fix list of crypto devices for Solaris, Bruno Haible, 2020/05/31
getrandom: Add support for native Windows, Bruno Haible, 2020/05/31
getrandom: doc and test tweaks, Bruno Haible, 2020/05/31
Re: [PATCH] getentropy, getrandom: new modules, Bruno Haible, 2020/05/31