Here is a patch to htm_ClamAV.c which incorporates the new api in
My build system: Ubuntu 9.04
Not tested on virus sample via API
Stein Erik Gullvik
From: Tillmann Werner <tillmann.werner@gm...> - 2009-09-20 10:01:46
> Here is a patch to htm_ClamAV.c which incorporates the new api in
> libclamav (>=0.95)
As far as I can see, you ported the code to the new API. That solves the
problem with linking against newer versions of libclamav, but makes the
code incompatible with older versions, which are still shipped with many
What we need is a portable way to determine the version number of
libclamav and choose the right API based on this info. Unfortunately, it
seems like clamav.h does not contain version information.
As I am currently not aware of a portable solution, I am going to
address that point on the clamav mailing list. Maybe they have an advice.