1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-04 11:23:46 +00:00
freebsd-ports/devel/dcmtk/files/patch-dcmtls_libsrc_tlslayer.cc
Kurt Jaeger f26190de66 devel/dcmtk: add EGD conditional to fix build with LibreSSL
PR:		198780
Submitted by:	Bernard Spil <spil.oss@gmail.com>
2015-03-29 20:22:42 +00:00

13 lines
306 B
C++

--- dcmtls/libsrc/tlslayer.cc.orig 2010-10-14 13:14:46 UTC
+++ dcmtls/libsrc/tlslayer.cc
@@ -371,7 +371,9 @@ void DcmTLSTransportLayer::seedPRNG(cons
#endif
if (randFile)
{
+#ifndef LIBRESSL_VERSION_NUMBER
if (RAND_egd(randFile) <= 0)
+#endif
{
RAND_load_file(randFile ,-1);
}