c - Clamd INSTREAM checking -


i'm trying check file using clamd ninstream.

struct clam_chunk {     unsigned int fsize;     char data[1024];         };  ..............................................................................  st_data.fsize = __bswap_32(st_data.fsize); //big-endian format  {     ret = send(fd, "ninstream\n", 11, msg_nosignal);     ret = send(fd, &st_data, sizeof(st_data), msg_nosignal);     ret = send (fd,"",0,msg_nosignal); } while (ret < 0 && errno == eintr); 

i have response: "stream: ok", it's wrong, because data contains eicar-test-signature.

ping recive pong, simple scan work too.


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -