Your message dated Fri, 04 Jul 2014 12:07:04 -0400
with message-id <2648307.a92EJamDGc@scott-latitude-e6320>
and subject line Problem fixed in clamav
has caused the Debian Bug report #753530,
regarding havp: libclamav requires additional init to work
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)
--
753530: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=753530
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: havp
Version: 0.92a-2
Severity: grave
Tags: patch
Since the last clamav update (0.94.4) the ABI of the library changed and
all users are now required to invoke cl_initialize_crypto() otherwise
the signature database can't be loaded and thus libclamav library
remains useless.
I've set the severity to grave since havp can't be used without clamav.
Sebastian
>From 45b1edab07d76fc331c4dc0a47d8ecc3a5438a27 Mon Sep 17 00:00:00 2001
From: Sebastian Andrzej Siewior <sebast...@breakpoint.cc>
Date: Wed, 2 Jul 2014 21:12:37 +0200
Subject: [PATCH] update to current (0.94.4) clamav
As of 0.94.4 version of clamav it is required to invoke
cl_initialize_crypto() before doing any kind of clamav-related
operations _or_ the whole thing fails.
The required API should be exported as of the upcomming debian
clamav release.
Signed-off-by: Sebastian Andrzej Siewior <sebast...@breakpoint.cc>
---
debian/control | 2 +-
havp/scanners/clamlibscanner.cpp | 3 +++
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index 5bb21a5..826ad2f 100644
--- a/debian/control
+++ b/debian/control
@@ -2,7 +2,7 @@ Source: havp
Section: net
Priority: optional
Maintainer: Rene Mayrhofer <rene.mayrho...@gibraltar.at>
-Build-Depends: debhelper (>= 4.0.0), autotools-dev, libssl-dev, libclamav-dev, dpatch, docbook-to-man, po-debconf
+Build-Depends: debhelper (>= 4.0.0), autotools-dev, libssl-dev, libclamav-dev (>= 0.98.4+dfsg-2), dpatch, docbook-to-man, po-debconf
Standards-Version: 3.8.1
Package: havp
diff --git a/havp/scanners/clamlibscanner.cpp b/havp/scanners/clamlibscanner.cpp
index f851552..6d19bd9 100644
--- a/havp/scanners/clamlibscanner.cpp
+++ b/havp/scanners/clamlibscanner.cpp
@@ -27,6 +27,8 @@ bool ClamLibScanner::InitDatabase()
if (LL>2) cl_debug();
#ifdef CL_INIT_DEFAULT
+ cl_initialize_crypto();
+
if ( (ret = cl_init(CL_INIT_DEFAULT)) != CL_SUCCESS )
{
printf("ClamAV: cl_init() error: %s\n", cl_strerror(ret));
@@ -246,6 +248,7 @@ void ClamLibScanner::FreeDatabase()
{
LogFile::ErrorMessage("ClamAV: cl_engine_free() failed: %s\n", cl_strerror(ret));
}
+ cl_cleanup_crypto();
#else
cl_free(engine);
#endif
--
1.7.10.4
--- End Message ---
--- Begin Message ---
X-CrossAssassin-Score: 38949
--- End Message ---