Needs libcurl >= 7.11

git-svn: trunk@983
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent a8f7929704
commit 1d3d7dd9c9
  1. 4
      clamav-devel/ChangeLog
  2. 22
      clamav-devel/libclamav/mbox.c

@ -1,3 +1,7 @@
Sat Oct 9 09:03:21 BST 2004 (njh)
----------------------------------
* libclamav/mbox.c: Only use libcurl if the version is >= 7.11
Sat Oct 9 03:07:35 CEST 2004 (tk)
----------------------------------
* libclamav/readdb.c: make signature parser more elastic

@ -17,6 +17,9 @@
*
* Change History:
* $Log: mbox.c,v $
* Revision 1.150 2004/10/09 08:01:37 nigelhorne
* Needs libcurl >= 7.11
*
* Revision 1.149 2004/10/06 17:21:30 nigelhorne
* Fix RFC2298 handling broken by RFC1341 code
*
@ -435,7 +438,7 @@
* Compilable under SCO; removed duplicate code with message.c
*
*/
static char const rcsid[] = "$Id: mbox.c,v 1.149 2004/10/06 17:21:30 nigelhorne Exp $";
static char const rcsid[] = "$Id: mbox.c,v 1.150 2004/10/09 08:01:37 nigelhorne Exp $";
#if HAVE_CONFIG_H
#include "clamav-config.h"
@ -539,18 +542,31 @@ typedef enum { FALSE = 0, TRUE = 1 } bool;
* LDFLAGS=`curl-config --libs` ./configure ...
*/
#include <curl/curl.h>
/*
* Needs curl >= 7.11 (I've heard that 7.9 can cause crashes and 7.10 is
* untested)
*/
#if (LIBCURL_VERSION_MAJOR < 7)
#undef WITH_CURL /* also undef FOLLOWURLS? */
#endif
#if (LIBCURL_VERSION_MAJOR == 7) && (LIBCURL_VERSION_MINOR < 11)
#undef WITH_CURL /* also undef FOLLOWURLS? */
#endif
#endif /*WITH_CURL*/
#else /*!FOLLOWURLS*/
#undef WITH_CURL
#endif
#endif /*FOLLOWURLS*/
/*
* Define this to handle RFC1341 messages.
* This is experimental code so it is up to YOU to (1) ensure it's secure
* (2) peridically trim the directory of old files
*/
#define PARTIAL_DIR "/tmp/partial" /* FIXME: should be config based on TMPDIR */
/*#define PARTIAL_DIR "/tmp/partial" /* FIXME: should be config based on TMPDIR */
static message *parseEmailHeaders(const message *m, const table_t *rfc821Table);
static int parseEmailHeader(message *m, const char *line, const table_t *rfc821Table);

Loading…
Cancel
Save