devel/dcmtk: add EGD conditional to fix build with LibreSSL
PR: 198780 Submitted by: Bernard Spil <spil.oss@gmail.com>
This commit is contained in:
parent
b2e7e72476
commit
f26190de66
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=382626
1 changed files with 12 additions and 0 deletions
12
devel/dcmtk/files/patch-dcmtls_libsrc_tlslayer.cc
Normal file
12
devel/dcmtk/files/patch-dcmtls_libsrc_tlslayer.cc
Normal file
|
@ -0,0 +1,12 @@
|
|||
--- 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);
|
||||
}
|
Loading…
Reference in a new issue