pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/ntp4 ntp4: Don't assume arc4random_addrandom() is ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b5e310c309d8
branches: trunk
changeset: 440362:b5e310c309d8
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Wed Oct 07 10:15:02 2020 +0000
description:
ntp4: Don't assume arc4random_addrandom() is available.
diffstat:
net/ntp4/distinfo | 3 ++-
net/ntp4/patches/patch-sntp_libevent_evutil__rand.c | 17 +++++++++++++++++
2 files changed, 19 insertions(+), 1 deletions(-)
diffs (38 lines):
diff -r a5268f96a4e9 -r b5e310c309d8 net/ntp4/distinfo
--- a/net/ntp4/distinfo Wed Oct 07 09:09:39 2020 +0000
+++ b/net/ntp4/distinfo Wed Oct 07 10:15:02 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.33 2020/10/07 09:09:39 sjmulder Exp $
+$NetBSD: distinfo,v 1.34 2020/10/07 10:15:02 jperkin Exp $
SHA1 (ntp-4.2.8p15.tar.gz) = e34e5b6f48c3ed1bbcfb03080dec1b8f91e19381
RMD160 (ntp-4.2.8p15.tar.gz) = 4653211d8c258a4a9edf1b2445a77223330176a2
@@ -33,6 +33,7 @@
SHA1 (patch-ntpq_ntpq.c) = 0776827a712e2f6636b9d322ae7445d184f3709f
SHA1 (patch-sntp_libevent_build-aux_config.guess) = 5f5fff42d04daef5fcbba2bc09b015fb4489ca59
SHA1 (patch-sntp_libevent_build-aux_config.sub) = 178e8b39138e49db7702c4bb84fe92550d14a978
+SHA1 (patch-sntp_libevent_evutil__rand.c) = b9fbeae496be49860910c1fcab98cc0519bb6645
SHA1 (patch-sntp_libopts_autoopts.h) = 9f46171eb6982d1ee57b70286e9436aef763554d
SHA1 (patch-sntp_libopts_enum.c) = 7d6624ed84a6ea6f85b4de4c37480041a7603252
SHA1 (patch-sntp_libopts_usage.c) = ec77942c98965c13de625b930db3458d5b81d28b
diff -r a5268f96a4e9 -r b5e310c309d8 net/ntp4/patches/patch-sntp_libevent_evutil__rand.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/ntp4/patches/patch-sntp_libevent_evutil__rand.c Wed Oct 07 10:15:02 2020 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-sntp_libevent_evutil__rand.c,v 1.1 2020/10/07 10:15:02 jperkin Exp $
+
+Don't assume arc4random_addrandom() is available.
+
+--- sntp/libevent/evutil_rand.c.orig 2014-03-04 08:33:31.000000000 +0000
++++ sntp/libevent/evutil_rand.c
+@@ -195,8 +195,10 @@ evutil_secure_rng_get_bytes(void *buf, s
+ void
+ evutil_secure_rng_add_bytes(const char *buf, size_t n)
+ {
++#ifndef __sun
+ arc4random_addrandom((unsigned char*)buf,
+ n>(size_t)INT_MAX ? INT_MAX : (int)n);
++#endif
+ }
+
+ void
Home |
Main Index |
Thread Index |
Old Index