Skip to content

Commit

Permalink
add ikarus scanserver as clamdengine-compatible AV engine
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Weigel committed Feb 27, 2023
1 parent 7376368 commit d472355
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/adapter_avscan.cc
Original file line number Diff line number Diff line change
Expand Up @@ -742,6 +742,8 @@ void Adapter::Xaction::avCheckVersion(void)

if (0 == strncasecmp(Ctx->avbuf, "clamav", 6)) {
engine = engineClamav;
} else if (0 == strncasecmp(Ctx->avbuf, "ikarus", 6)) {
engine = engineClamav;
// commtouch csamd doesn't return a name
} else if (6 == sscanf(Ctx->avbuf, "[%d.%d|%[.0-9]|%[.0-9]|%[0-9]|%[0-9]]", &major, &minor, s, s, s, s)) {
engine = (major > 1 || minor >= 13) ? engineClamav : engineCommtouch;
Expand Down

0 comments on commit d472355

Please sign in to comment.