ports/security/tlswrap/files/patch-conf.h.in
Johan van Selst e5aa753b7b security/tlswrap unconditionally relies on RAND_egd which makes building fail with LibreSSL which has removed EGD. FreeBSD does not require EGD at all, /dev/random has been available since FreeBSD 4.2
This patch checks for the existence of RAND_egd in libcrypto and disables the code using egd when it is not available.

The default build remains unchanged

PR:		198767
Submitted by:	Bernard Spil <spil.oss@gmail.com>
2015-04-19 14:33:53 +00:00

12 lines
377 B
C

--- conf.h.in.orig 2015-04-19 16:22:45.000000000 +0200
+++ conf.h.in 2015-04-19 16:22:41.000000000 +0200
@@ -45,6 +45,9 @@
/* Define to 1 if you have the `RAND_status' function. */
#undef HAVE_RAND_STATUS
+/* Define to 1 if you have the `RAND_egd' function. */
+#undef HAVE_RAND_EGD
+
/* Define to 1 if you have the `setproctitle' function. */
#undef HAVE_SETPROCTITLE