Phil Endecott [EMAIL PROTECTED] wrote: > I am contemplating adding clam scanning to a web application. Files > that users upload via a web form will be scanned before being stored in > a database. The application is written in C and called by CGI from > Apache. > [...] > Has anyone written [a clamd client library]? If not, maybe I'll have a > go. I'm not very enthusiastic about writing the socket code but I could > probably get something working. Or perhaps all I need to do is to turn > clamdscan into a library.
I don't know about C-based clamd client libraries, but there are two such libraries that are written in Perl: http://search.cpan.org/dist/ClamAV-Client http://search.cpan.org/dist/File-Scan-ClamAV Their source code is relatively straight-forward, so perhaps you can use them as models for writing your own C-based library. _______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-users
