Modernize LibClamAV API usage #30
Merged
blu.256
merged 2 commits from fix/klammail-libclamav
into master
3 years ago
Loading…
Reference in new issue
There is no content yet.
Delete Branch 'fix/klammail-libclamav'
Deleting a branch is permanent. It CANNOT be undone. Continue?
Based on official docs and this example.
This change affects Klammail.
This should resolve issue #29.
This change is not backwards-compatible with older versions of ClamAV (but that's probably fine; one wants to use the latest version of ClamAV for security reasons anyway).
According to the related ClamAV commit, this change seems to be performed in ClamAV 0.101.0. If I remember well, because of on-access scanning we require ClamAV >= 0.102.0. So the change in this PR should not mean a problem. The question is whether in
ConfigureChecks.cmake
adjust libclamav detection tolibclamav>=0.102.0
?Probably a good idea IMO
Check added; successfully tested with ClamAV versions 0.100.2 and 0.103.2.
I made a test on Debian 9.x (Stretch) – the oldest supported for Klamav and everything is okay. However, there is a question on the test in
ConfigureChecks.cmake
, see below.if( NOT LIBCLAMAV_FOUND )
tde_message_fatal( "ClamAV is required but not found on your system" )
else()
if( LIBCLAMAV_VERSION VERSION_LESS "0.102.0" )
Is a question of whether to deal with a separate condition and message or use the condition directly in the library detection and leave the job to CMake:
Oh, I did not know this was possible. This seems like a better solution.
88c8b7429e
toae3079ad20
3 years agoae3079ad20
to2206a914d6
3 years agoIt looks good.
2206a914d6
into master 3 years agoReviewers
2206a914d6
.