Skip to content

Commit

Permalink
Fix OpenSSL support (authenticode-parser is available only with OSSL) (
Browse files Browse the repository at this point in the history
  • Loading branch information
wargio authored Apr 22, 2024
1 parent c387e63 commit 1f2cfc6
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions subprojects/packagefiles/yara/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,6 @@ yara_src = [
'libyara/modules/math/math.c',
#'libyara/modules/pb_tests/pb_tests.c',
#'libyara/modules/pb_tests/pb_tests.pb-c.c',
'libyara/modules/pe/authenticode-parser/authenticode.c',
'libyara/modules/pe/authenticode-parser/certificate.c',
'libyara/modules/pe/authenticode-parser/countersignature.c',
'libyara/modules/pe/authenticode-parser/helper.c',
'libyara/modules/pe/authenticode-parser/structs.c',
'libyara/modules/pe/pe.c',
'libyara/modules/pe/pe_utils.c',
'libyara/modules/string/string.c',
Expand Down Expand Up @@ -114,6 +109,11 @@ if get_option('enable_openssl')
yara_c_args += '-DHAVE_OPENSSL_SHA_H=1'
yara_c_args += '-DHAVE_OPENSSL_X509_H=1'
yara_src += 'libyara/modules/hash/hash.c'
yara_src += 'libyara/modules/pe/authenticode-parser/authenticode.c',
yara_src += 'libyara/modules/pe/authenticode-parser/certificate.c',
yara_src += 'libyara/modules/pe/authenticode-parser/countersignature.c',
yara_src += 'libyara/modules/pe/authenticode-parser/helper.c',
yara_src += 'libyara/modules/pe/authenticode-parser/structs.c',
endif
endif

Expand Down

0 comments on commit 1f2cfc6

Please sign in to comment.