summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Bar-Lev <alonbl@gentoo.org>2016-12-01 22:11:29 +0200
committerAlon Bar-Lev <alonbl@gentoo.org>2016-12-01 22:13:12 +0200
commitc31efdd2b1cd740923f9d3d2c14870309df3cf20 (patch)
treeb94760099004c94e35d20ef92eddcfe6f31bb51e /dev-libs/botan/files
parentdev-php/pecl-pam: Drop old (diff)
downloadgentoo-c31efdd2b1cd740923f9d3d2c14870309df3cf20.tar.gz
gentoo-c31efdd2b1cd740923f9d3d2c14870309df3cf20.tar.bz2
gentoo-c31efdd2b1cd740923f9d3d2c14870309df3cf20.zip
dev-libs/botan: version bump
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-libs/botan/files')
-rw-r--r--dev-libs/botan/files/botan-1.11.34-rng.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/dev-libs/botan/files/botan-1.11.34-rng.patch b/dev-libs/botan/files/botan-1.11.34-rng.patch
new file mode 100644
index 000000000000..da814f11b8c5
--- /dev/null
+++ b/dev-libs/botan/files/botan-1.11.34-rng.patch
@@ -0,0 +1,30 @@
+From 2b72637f06ad35bd5458372a964bf30a0b4f7cf9 Mon Sep 17 00:00:00 2001
+From: Alon Bar-Lev <alon.barlev@gmail.com>
+Date: Thu, 1 Dec 2016 21:55:17 +0200
+Subject: [PATCH] system_rng: workaround read only urandom
+
+Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
+---
+ src/lib/rng/system_rng/system_rng.cpp | 5 ++++-
+ 1 file changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/lib/rng/system_rng/system_rng.cpp b/src/lib/rng/system_rng/system_rng.cpp
+index eaba382..12b0876 100644
+--- a/src/lib/rng/system_rng/system_rng.cpp
++++ b/src/lib/rng/system_rng/system_rng.cpp
+@@ -135,8 +135,11 @@ void System_RNG_Impl::add_entropy(const uint8_t input[], size_t len)
+ * by the OS or sysadmin that additional entropy is not wanted
+ * in the system pool, so we accept that and return here,
+ * since there is no corrective action possible.
++ *
++ * In Linux EBADF or EPERM is returned if m_fd is not opened for
++ * writing.
+ */
+- if(errno == EPERM)
++ if(errno == EPERM || errno == EBADF)
+ return;
+
+ // maybe just ignore any failure here and return?
+--
+2.7.3
+