Files
clamav/common
Valerie Snyder 6d9b57eeeb libclamav: cl_scan*_ex() functions provide verdict separate from errors
It is a shortcoming of existing scan APIs that it is not possible
to return an error without masking a verdict.
We presently work around this limitation by counting up detections at
the end and then overriding the error code with `CL_VIRUS`, if necessary.

The `cl_scanfile_ex()`, `cl_scandesc_ex()`, and `cl_scanmap_ex()` functions
should provide the scan verdict separately from the error code.

This introduces a new enum for recording and reporting a verdict:
`cl_verdict_t` with options:

- `CL_VERDICT_NOTHING_FOUND`
- `CL_VERDICT_TRUSTED`
- `CL_VERDICT_STRONG_INDICATOR`
- `CL_VERDICT_POTENTIALLY_UNWANTED`

Notably, the newer scan APIs may set the verdict to `CL_VERDICT_TRUSTED`
if there is a (hash-based) FP signature for a file, or in the cause where
Authenticode or similar certificate-based verification was performed, or
in the case where an application scan callback returned `CL_VERIFIED`.

CLAM-763
CLAM-865
2025-08-14 22:40:46 -04:00
..
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-08-11 18:14:19 -04:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00
2025-02-14 10:24:30 -05:00