diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2017-02-10 15:31:30 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2017-02-10 15:31:30 +0100 |
commit | ee66511cf98f8e1ac30f4503d807bfb746ee64f5 (patch) | |
tree | 5960d64f4ee9f7ac43f17a8e3785d2b497cbd465 /main/opensmtpd/opensmtpd-5.7.3p2-libressl-arc4random-circularity.patch | |
parent | dd29f74027d5760c4dd208149badf82e018d0d4f (diff) | |
download | aports-ee66511cf98f8e1ac30f4503d807bfb746ee64f5.tar.bz2 aports-ee66511cf98f8e1ac30f4503d807bfb746ee64f5.tar.xz |
main/opensmtpd: fix libressl arc4random circularity
Diffstat (limited to 'main/opensmtpd/opensmtpd-5.7.3p2-libressl-arc4random-circularity.patch')
-rw-r--r-- | main/opensmtpd/opensmtpd-5.7.3p2-libressl-arc4random-circularity.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/main/opensmtpd/opensmtpd-5.7.3p2-libressl-arc4random-circularity.patch b/main/opensmtpd/opensmtpd-5.7.3p2-libressl-arc4random-circularity.patch new file mode 100644 index 0000000000..7c35862914 --- /dev/null +++ b/main/opensmtpd/opensmtpd-5.7.3p2-libressl-arc4random-circularity.patch @@ -0,0 +1,35 @@ +diff -ru opensmtpd-5.7.3p2/openbsd-compat/arc4random.c opensmtpd-5.7.3p2-fixed/openbsd-compat/arc4random.c +--- opensmtpd-5.7.3p2/openbsd-compat/arc4random.c 2016-02-02 08:40:06.000000000 +0100 ++++ opensmtpd-5.7.3p2-fixed/openbsd-compat/arc4random.c 2016-03-02 17:34:24.535030362 +0100 +@@ -188,6 +188,7 @@ + _ARC4_UNLOCK(); + } + ++#if 0 + u_int32_t + arc4random(void) + { +@@ -198,12 +199,13 @@ + _ARC4_UNLOCK(); + return val; + } ++#endif + + /* + * If we are providing arc4random, then we can provide a more efficient + * arc4random_buf(). + */ +-# ifndef HAVE_ARC4RANDOM_BUF ++#if 0 + void + arc4random_buf(void *buf, size_t n) + { +@@ -215,7 +217,7 @@ + #endif /* !HAVE_ARC4RANDOM */ + + /* arc4random_buf() that uses platform arc4random() */ +-#if !defined(HAVE_ARC4RANDOM_BUF) && defined(HAVE_ARC4RANDOM) ++#if 0 + void + arc4random_buf(void *_buf, size_t n) + { |