Hi Eugene,

> int
> scan_mem_data(char *data,int datasize)
> {
>   int rc;
>   if (cl_needfilescan(data,datasize,...)) {
>     int tempfd=make_tempfile();
>     jumbo_write(tempfd,data,datasize);
>     rc=cl_scandesc(tempfd,...);
>     remove_tempfile(tempfd);
>   } else {
>     rc=cl_scanbuff(data,datasize,...);
>   }
>   return rc;
> }
> 
> What do you think?  Is it possible?

cl_needfilescan would be hard to implement (and most likely
ineffective) because file type classification in ClamAV is rather
complex (there are three methods and one of them even uses signature
scanning).

-- 
   oo    .....         Tomasz Kojm <[EMAIL PROTECTED]>
  (\/)\.........         http://www.ClamAV.net/gpg/tkojm.gpg
     \..........._         0DCA5A08407D5288279DB43454822DC8985A444B
       //\   /\              Thu May 26 04:18:12 CEST 2005

Attachment: pgpdfipJY1c3e.pgp
Description: PGP signature

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to