Skip to content

Commit

Permalink
stunnel: add patch for libressl
Browse files Browse the repository at this point in the history
  • Loading branch information
rofl0r committed Jul 12, 2014
1 parent 234185c commit 9b47cbb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
18 changes: 18 additions & 0 deletions KEEP/stunnel-libressl.patch
@@ -0,0 +1,18 @@
--- stunnel-5.02.org/src/ssl.c 2014-07-12 06:13:07.356889656 +0000
+++ stunnel-5.02/src/ssl.c 2014-07-12 06:15:39.032889896 +0000
@@ -195,6 +195,7 @@
}
s_log(LOG_DEBUG, "RAND_screen failed to sufficiently seed PRNG");
#else
+#ifdef HAVE_RAND_EGD
if(global->egd_sock) {
if((bytes=RAND_egd(global->egd_sock))==-1) {
s_log(LOG_WARNING, "EGD Socket %s failed", global->egd_sock);
@@ -207,6 +208,7 @@
so no need to check if seeded sufficiently */
}
}
+#endif
/* try the good-old default /dev/urandom, if available */
totbytes+=add_rand_file(global, "/dev/urandom");
if(RAND_status())
2 changes: 2 additions & 0 deletions pkg/stunnel
Expand Up @@ -9,6 +9,8 @@ sha512=2f1c44b06188e3bd347b97544122eb9bc0c2a4227e6c4bab184ddef8a35300c09451d836d
openssl

[build]
patch -p1 < "$K"/stunnel-libressl.patch || exit 1

[ -n "$CROSS_COMPILE" ] && \
xconfflags="--host=$($CC -dumpmachine|sed 's/musl/gnu/')"
CFLAGS="$optcflags" \
Expand Down

0 comments on commit 9b47cbb

Please sign in to comment.