Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Aug 2018 07:56:39 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r478104 - in head/devel/libevent: . files
Message-ID:  <201808260756.w7Q7udE3082016@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: delphij
Date: Sun Aug 26 07:56:39 2018
New Revision: 478104
URL: https://svnweb.freebsd.org/changeset/ports/478104

Log:
  devel/libevent: Don't use arc4random_addrandom.
  
  PR:		230764, 230756
  Approved by:	portmgr (antoine)

Added:
  head/devel/libevent/files/patch-evutil__rand.c   (contents, props changed)
Modified:
  head/devel/libevent/Makefile

Modified: head/devel/libevent/Makefile
==============================================================================
--- head/devel/libevent/Makefile	Sun Aug 26 07:45:55 2018	(r478103)
+++ head/devel/libevent/Makefile	Sun Aug 26 07:56:39 2018	(r478104)
@@ -3,7 +3,7 @@
 
 PORTNAME=	libevent
 PORTVERSION=	2.1.8
-PORTREVISION=	1
+PORTREVISION=	2
 DISTVERSIONPREFIX=	release-
 DISTVERSIONSUFFIX=	-stable
 CATEGORIES=	devel

Added: head/devel/libevent/files/patch-evutil__rand.c
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/libevent/files/patch-evutil__rand.c	Sun Aug 26 07:56:39 2018	(r478104)
@@ -0,0 +1,13 @@
+--- evutil_rand.c.orig	2017-01-25 23:37:15 UTC
++++ evutil_rand.c
+@@ -195,8 +195,10 @@ evutil_secure_rng_get_bytes(void *buf, size_t n)
+ void
+ evutil_secure_rng_add_bytes(const char *buf, size_t n)
+ {
++#ifdef arc4random_addrandom
+ 	arc4random_addrandom((unsigned char*)buf,
+ 	    n>(size_t)INT_MAX ? INT_MAX : (int)n);
++#endif
+ }
+ 
+ void



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808260756.w7Q7udE3082016>