From de5cbc0daf6a405207b4f012c0617c26fc102960 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 31 May 2020 01:10:37 +0200 Subject: [PATCH] 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. --- ChangeLog | 5 +++++ m4/gc-random.m4 | 10 ++-------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/ChangeLog b/ChangeLog index 43145dc5be..4b39c3d378 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2020-05-30 Bruno Haible + + 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. + 2020-05-30 Bruno Haible sys_random: Work around macOS bug. diff --git a/m4/gc-random.m4 b/m4/gc-random.m4 index 958c8712fc..15751cbaa7 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" -- 2.39.5