patch-libyara_modules_pe_c 524 B

123456789101112131415
  1. $OpenBSD: patch-libyara_modules_pe_c,v 1.1 2017/06/07 12:24:52 rpointel Exp $
  2. Index: libyara/modules/pe.c
  3. --- libyara/modules/pe.c.orig
  4. +++ libyara/modules/pe.c
  5. @@ -41,7 +41,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
  6. #include <openssl/bio.h>
  7. #include <openssl/pkcs7.h>
  8. #include <openssl/x509.h>
  9. -#if OPENSSL_VERSION_NUMBER < 0x10100000L
  10. +#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
  11. #define X509_get_signature_nid(o) OBJ_obj2nid((o)->sig_alg->algorithm)
  12. #endif
  13. #endif