Skip to content

Commit

Permalink
Fix build with LibreSSL
Browse files Browse the repository at this point in the history
  • Loading branch information
ant1 authored and plusvic committed Jun 7, 2017
1 parent 1aaac7b commit 1b1198b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libyara/modules/pe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1b1198b

Please sign in to comment.