[Forensics-changes] [yara] 374/407: Remove unused functions

Hilko Bengen bengen at moszumanska.debian.org
Sat Jul 1 10:28:46 UTC 2017


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

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

commit d16e628d16f74328cccb6cd510f483322666edc5
Author: Victor M. Alvarez <plusvic at gmail.com>
Date:   Thu Feb 5 10:54:50 2015 +0100

    Remove unused functions
---
 libyara/exefiles.c              | 18 ------------------
 libyara/include/yara/exefiles.h | 10 ----------
 2 files changed, 28 deletions(-)

diff --git a/libyara/exefiles.c b/libyara/exefiles.c
index b74f5a3..d45ca9a 100644
--- a/libyara/exefiles.c
+++ b/libyara/exefiles.c
@@ -312,21 +312,3 @@ uint64_t yr_get_entry_point_address(
 
   return UNDEFINED;
 }
-
-
-int yr_file_is_pe(
-    uint8_t* buffer,
-    size_t buffer_length)
-{
-  return (yr_get_pe_header(buffer, buffer_length) != NULL);
-}
-
-
-int yr_file_is_elf(
-    uint8_t* buffer,
-    size_t buffer_length)
-{
-  int type = yr_get_elf_type(buffer, buffer_length);
-
-  return (type == ELF_CLASS_32 || type == ELF_CLASS_64);
-}
diff --git a/libyara/include/yara/exefiles.h b/libyara/include/yara/exefiles.h
index 137320d..c52cd93 100644
--- a/libyara/include/yara/exefiles.h
+++ b/libyara/include/yara/exefiles.h
@@ -17,16 +17,6 @@ limitations under the License.
 #ifndef YR_EXEFILES_H
 #define YR_EXEFILES_H
 
-int yr_file_is_pe(
-    uint8_t* buffer,
-    size_t buffer_length);
-
-
-int yr_file_is_elf(
-    uint8_t* buffer,
-    size_t buffer_length);
-
-
 uint64_t yr_get_entry_point_offset(
     uint8_t* buffer,
     size_t buffer_length);

-- 
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