Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Mar 2015 19:48:02 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 198527] [PATCH] security/heimdal: Detect LibreSSL / fix build without EGD
Message-ID:  <bug-198527-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=198527

            Bug ID: 198527
           Summary: [PATCH] security/heimdal: Detect LibreSSL / fix build
                    without EGD
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: hrs@FreeBSD.org
          Reporter: spil.oss@gmail.com
          Assignee: hrs@FreeBSD.org
          Keywords: patch
             Flags: maintainer-feedback?(hrs@FreeBSD.org)

Created attachment 154222
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=154222&action=edit
svn diff for security/heimdal

heimdal 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

The patch checks for the LibreSSL by looking for LIBRESSL_VERSION_NUMBER which
is defined in openssl/opensslv.h and disables code that requires egd. Couldn't
find a clean spot to check for RAND_egd in configure like so

AC_CHECK_LIB(crypto, RAND_egd, AC_DEFINE(HAVE_RAND_EGD, 1, [Define if the
libcrypto has RAND_egd]))

-- 
You are receiving this mail because:
You are the assignee for the bug.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198527-13>