/dev/srandom has been removed, just use /dev/random as everywhere else

This commit is contained in:
naddy 2017-11-01 14:31:47 +00:00
parent 0a0d5ce139
commit b6a79cfd4a
2 changed files with 19 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.19 2017/10/25 12:22:00 sthen Exp $
# $OpenBSD: Makefile,v 1.20 2017/11/01 14:31:47 naddy Exp $
BROKEN-i386 = asm problems with clang integrated as
@ -9,7 +9,7 @@ HOMEPAGE = http://www.cryptopp.com/
MASTER_SITES = ${HOMEPAGE}
DISTNAME = cryptopp565
PKGNAME = cryptopp-5.6.5
REVISION = 0
REVISION = 1
EXTRACT_SUFX = .zip
WRKDIST = ${WRKDIR}

View File

@ -0,0 +1,17 @@
$OpenBSD: patch-osrng_cpp,v 1.1 2017/11/01 14:31:47 naddy Exp $
Index: osrng.cpp
--- osrng.cpp.orig
+++ osrng.cpp
@@ -189,11 +189,7 @@ void NonblockingRng::GenerateBlock(byte *output, size_
#ifdef BLOCKING_RNG_AVAILABLE
#ifndef CRYPTOPP_BLOCKING_RNG_FILENAME
-#ifdef __OpenBSD__
-#define CRYPTOPP_BLOCKING_RNG_FILENAME "/dev/srandom"
-#else
#define CRYPTOPP_BLOCKING_RNG_FILENAME "/dev/random"
-#endif
#endif
BlockingRng::BlockingRng()