ca110us / go-clamav

go wrapper for libclamav
GNU General Public License v2.0
33 stars 12 forks source link

Missing `general` options from libclamav #4

Closed TerminalFi closed 2 years ago

TerminalFi commented 2 years ago

Library appears to be missing various values from libclamav

For example

/* general */
#define CL_SCAN_GENERAL_ALLMATCHES                  0x1  /* scan in all-match mode */
#define CL_SCAN_GENERAL_COLLECT_METADATA            0x2  /* collect metadata (--gen-json) */
#define CL_SCAN_GENERAL_HEURISTICS                  0x4  /* option to enable heuristic alerts */
#define CL_SCAN_GENERAL_HEURISTIC_PRECEDENCE        0x8  /* allow heuristic match to take precedence. */
#define CL_SCAN_GENERAL_UNPRIVILEGED                0x10 /* scanner will not have read access to files. */
ca110us commented 2 years ago

I have updated it, you can run the following command to update to latest version

go get github.com/ca110us/go-clamav@v0.6.0