summarylogtreecommitdiffstats
path: root/libressl-dummy-rand-egd.patch
diff options
context:
space:
mode:
authoranthraxx2016-09-26 22:41:50 +0200
committeranthraxx2016-09-26 22:41:50 +0200
commit98774b0123849a445faa5b311c1e2591af3531cc (patch)
tree3a59db4af2c128b98cbaf14e6e32a7f091f4fb43 /libressl-dummy-rand-egd.patch
downloadaur-libressl-git.tar.gz
addpkg: libressl-git 2.5.0.570.e168f3b-1
Diffstat (limited to 'libressl-dummy-rand-egd.patch')
-rw-r--r--libressl-dummy-rand-egd.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/libressl-dummy-rand-egd.patch b/libressl-dummy-rand-egd.patch
new file mode 100644
index 00000000000..42ad5f83fb9
--- /dev/null
+++ b/libressl-dummy-rand-egd.patch
@@ -0,0 +1,29 @@
+--- libressl-2.0.0/crypto/rand/rand_lib.c 2014-07-11 19:41:26.000000000 +0200
++++ libressl-2.0.0/crypto/rand/rand_lib.c 2014-07-12 00:16:22.583713400 +0200
+@@ -98,3 +98,15 @@
+ arc4random_buf(buf, num);
+ return 1;
+ }
++
++int
++RAND_egd(const char *path)
++{
++ return -1;
++}
++
++int
++RAND_egd_bytes(const char *path, int bytes)
++{
++ return -1;
++}
+--- libressl-2.0.0/include/openssl/rand.h 2014-07-11 19:41:25.000000000 +0200
++++ libressl-2.0.0/include/openssl/rand.h 2014-07-12 00:08:44.893435315 +0200
+@@ -96,6 +96,8 @@
+ int RAND_write_file(const char *file);
+ const char *RAND_file_name(char *file, size_t num);
+ int RAND_status(void);
++int RAND_egd(const char *path);
++int RAND_egd_bytes(const char *path,int bytes);
+ int RAND_poll(void);
+
+ /* BEGIN ERROR CODES */