[Forensics-changes] [yara] 04/15: Fix build with LibreSSL

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:33:22 UTC 2017


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag v3.6.2
in repository yara.

commit b9f5cd2d66a413b9065c8b7a824503e80836c9c1
Author: Antoine <ant1 at users.noreply.github.com>
Date:   Wed Jun 7 11:48:29 2017 +0000

    Fix build with LibreSSL
---
 libyara/modules/pe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libyara/modules/pe.c b/libyara/modules/pe.c
index 93719c0..0c2fe8e 100644
--- a/libyara/modules/pe.c
+++ b/libyara/modules/pe.c
@@ -41,7 +41,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 #include <openssl/bio.h>
 #include <openssl/pkcs7.h>
 #include <openssl/x509.h>
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
 #define X509_get_signature_nid(o) OBJ_obj2nid((o)->sig_alg->algorithm)
 #endif
 #endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list