From 7d86b277a77f732f4b56f9b4e3072f51a0e5e6a4 Mon Sep 17 00:00:00 2001 From: WerWolv Date: Mon, 13 Mar 2023 10:24:56 +0100 Subject: [PATCH] build: Updated curl and libyara --- lib/external/curl | 2 +- lib/external/yara/CMakeLists.txt | 13 ++++++++++--- lib/external/yara/yara | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) diff --git a/lib/external/curl b/lib/external/curl index c12fb3dda..046209e56 160000 --- a/lib/external/curl +++ b/lib/external/curl @@ -1 +1 @@ -Subproject commit c12fb3ddaf48e709a7a4deaa55ec485e4df163ee +Subproject commit 046209e561b7e9b5aab1aef7daebf29ee6e6e8c7 diff --git a/lib/external/yara/CMakeLists.txt b/lib/external/yara/CMakeLists.txt index dc67bdc50..c6c6aa5b0 100644 --- a/lib/external/yara/CMakeLists.txt +++ b/lib/external/yara/CMakeLists.txt @@ -34,6 +34,8 @@ set(LIBYARA_INCLUDES ${LIBYARA_SOURCE_PATH}/include/yara/types.h ${LIBYARA_SOURCE_PATH}/include/yara/utils.h ${LIBYARA_SOURCE_PATH}/crypto.h + ${LIBYARA_SOURCE_PATH}/tlshc/tlsh_impl.h + ${LIBYARA_SOURCE_PATH}/tlshc/tlsh_util.h ) set(LIBYARA_SOURCE @@ -66,6 +68,7 @@ set(LIBYARA_SOURCE ${LIBYARA_SOURCE_PATH}/scan.c ${LIBYARA_SOURCE_PATH}/scanner.c ${LIBYARA_SOURCE_PATH}/sizedstr.c + ${LIBYARA_SOURCE_PATH}/simple_str.c ${LIBYARA_SOURCE_PATH}/stack.c ${LIBYARA_SOURCE_PATH}/stopwatch.c ${LIBYARA_SOURCE_PATH}/strutils.c @@ -78,6 +81,9 @@ set(LIBYARA_SOURCE ${LIBYARA_SOURCE_PATH}/hex_grammar.c ${LIBYARA_SOURCE_PATH}/re_grammar.c ${LIBYARA_SOURCE_PATH}/proc/none.c + ${LIBYARA_SOURCE_PATH}/tlshc/tlsh.c + ${LIBYARA_SOURCE_PATH}/tlshc/tlsh_impl.c + ${LIBYARA_SOURCE_PATH}/tlshc/tlsh_util.c ) set(LIBYARA_MODULES @@ -91,6 +97,7 @@ set(LIBYARA_MODULES ${LIBYARA_SOURCE_PATH}/modules/math/math.c ${LIBYARA_SOURCE_PATH}/modules/pe/pe.c ${LIBYARA_SOURCE_PATH}/modules/pe/pe_utils.c + ${LIBYARA_SOURCE_PATH}/modules/string/string.c ${LIBYARA_SOURCE_PATH}/modules/tests/tests.c ${LIBYARA_SOURCE_PATH}/modules/time/time.c ) @@ -103,7 +110,7 @@ set_property(TARGET libyara PROPERTY POSITION_INDEPENDENT_CODE ON) # Add mbedtls crypto wrappers target_compile_definitions(libyara PRIVATE HAVE_MBEDTLS) -target_compile_definitions(libyara PRIVATE USE_NO_PROC) +target_compile_definitions(libyara PRIVATE USE_NO_PROC BUCKETS_256 CHECKSUM_3B) target_compile_definitions(libyara PRIVATE HASH_MODULE) target_compile_definitions(libyara PRIVATE DOTNET_MODULE) @@ -128,6 +135,6 @@ else () endif () include(GNUInstallDirs) -configure_file(${LIBYARA_SOURCE_PATH}/yara.pc.in - ${LIBYARA_SOURCE_PATH}/yara.pc @ONLY) +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/yara/yara.pc.in + ${CMAKE_CURRENT_SOURCE_DIR}/yara/yara.pc @ONLY) set(CMAKE_STATIC_LIBRARY_PREFIX "") diff --git a/lib/external/yara/yara b/lib/external/yara/yara index ba94b4f8e..8b8384d15 160000 --- a/lib/external/yara/yara +++ b/lib/external/yara/yara @@ -1 +1 @@ -Subproject commit ba94b4f8ebb6d56786d14f6a0f7529b32d7c216f +Subproject commit 8b8384d15fc5358cee449d88070cc9c8be9ec4ce