大量测试暂时未发现Bug.

This commit is contained in:
aixiao 2022-11-04 19:37:03 +08:00
parent 9e7c957bf6
commit 986efc0fe6
61 changed files with 6727 additions and 10078 deletions

668
13.txt
View File

@ -1,668 +0,0 @@
==7165== Memcheck, a memory error detector
==7165== Copyright (C) 2002-2017, and GNU GPL'd, by Julian Seward et al.
==7165== Using Valgrind-3.17.0 and LibVEX; rerun with -h for copyright info
==7165== Command: ./rhost
==7165== Parent PID: 3607
==7165==
==7165== Conditional jump or move depends on uninitialised value(s)
==7165== at 0x6205146: ____strtol_l_internal (in /usr/lib64/libc-2.17.so)
==7165== by 0x62018FF: atoi (in /usr/lib64/libc-2.17.so)
==7165== by 0x405EC9: rule (rhost.c:357)
==7165== by 0x404F76: main (rhost.c:740)
==7165== Uninitialised value was created by a stack allocation
==7165== at 0x405D63: rule (rhost.c:287)
==7165==
==7165==
==7165== HEAP SUMMARY:
==7165== in use at exit: 6,957 bytes in 67 blocks
==7165== total heap usage: 57,864 allocs, 57,797 frees, 10,950,962 bytes allocated
==7165==
==7165== 3 bytes in 1 blocks are still reachable in loss record 1 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16329: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 3 bytes in 1 blocks are still reachable in loss record 2 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1639B: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 4 bytes in 1 blocks are still reachable in loss record 3 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1633C: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 4 bytes in 1 blocks are still reachable in loss record 4 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A163AE: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 5 bytes in 1 blocks are still reachable in loss record 5 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16316: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 5 bytes in 1 blocks are still reachable in loss record 6 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16362: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 5 bytes in 1 blocks are still reachable in loss record 7 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A163C1: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 6 bytes in 1 blocks are still reachable in loss record 8 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16303: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 6 bytes in 1 blocks are still reachable in loss record 9 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16375: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 6 bytes in 1 blocks are still reachable in loss record 10 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A10747: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16439: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 7 bytes in 1 blocks are still reachable in loss record 11 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1634F: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 7 bytes in 1 blocks are still reachable in loss record 12 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x6256B89: strdup (in /usr/lib64/libc-2.17.so)
==7165== by 0x7A0BE34: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16388: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 13 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16303: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 14 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16316: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 15 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16329: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 16 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1633C: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 17 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1634F: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 18 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16362: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 19 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16375: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 20 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16388: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 21 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1639B: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 22 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A163AE: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 23 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0BE20: PR_NewLogModule (in /usr/lib64/libnspr4.so)
==7165== by 0x7A163C1: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 24 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A093CE: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1645E: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 24 bytes in 1 blocks are still reachable in loss record 25 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A16202: PR_ErrorInstallTable (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16468: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 32 bytes in 1 blocks are still reachable in loss record 26 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x659960F: _dlerror_run (in /usr/lib64/libdl-2.17.so)
==7165== by 0x6599040: dlopen@@GLIBC_2.2.5 (in /usr/lib64/libdl-2.17.so)
==7165== by 0x7A11463: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A162F2: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 40 bytes in 1 blocks are still reachable in loss record 27 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A08F7B: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23236: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23340: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16424: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 40 bytes in 1 blocks are still reachable in loss record 28 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A08F7B: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23236: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A2335E: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16424: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 40 bytes in 1 blocks are still reachable in loss record 29 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A08F7B: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23236: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A2337C: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16424: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 40 bytes in 1 blocks are still reachable in loss record 30 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A10731: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16439: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 48 bytes in 1 blocks are still reachable in loss record 31 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A08F69: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23236: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23340: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16424: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 48 bytes in 1 blocks are still reachable in loss record 32 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A08F69: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23236: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A2335E: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16424: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 48 bytes in 1 blocks are still reachable in loss record 33 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A08F69: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23236: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A2337C: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16424: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 64 bytes in 1 blocks are still reachable in loss record 34 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A1F222: PR_NewCondVar (in /usr/lib64/libnspr4.so)
==7165== by 0x7A25970: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16413: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 64 bytes in 1 blocks are still reachable in loss record 35 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0FB06: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1641D: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 64 bytes in 1 blocks are still reachable in loss record 36 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A1F222: PR_NewCondVar (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23317: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16424: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 64 bytes in 1 blocks are still reachable in loss record 37 of 60
==7165== at 0x4C2B067: malloc (vg_replace_malloc.c:380)
==7165== by 0x7A1F222: PR_NewCondVar (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1644D: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 38 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A15B88: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A163EE: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 39 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A0BD49: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A163F4: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 40 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A163FE: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 41 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A25961: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16413: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 42 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A0FC48: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1641D: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 43 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23308: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16424: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 44 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A23323: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16424: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 45 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A09140: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A2332F: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16424: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 46 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A177A8: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16429: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 47 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A0C1A5: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16434: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 48 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F619: PR_NewMonitor (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1F708: PR_NewNamedMonitor (in /usr/lib64/libnspr4.so)
==7165== by 0x7A107EB: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16439: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 49 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1643E: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 50 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A13498: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16459: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 51 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A134A4: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A16459: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 52 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A093B8: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1645E: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 53 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x7A267D7: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 54 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F619: PR_NewMonitor (in /usr/lib64/libnspr4.so)
==7165== by 0x7A267E3: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 55 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED59: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 56 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED65: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 168 bytes in 1 blocks are still reachable in loss record 57 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F17C: PR_NewLock (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED71: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 264 bytes in 1 blocks are still reachable in loss record 58 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A0FA1D: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1641D: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 1,024 bytes in 1 blocks are still reachable in loss record 59 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A10312: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A163E9: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== 1,344 bytes in 8 blocks are still reachable in loss record 60 of 60
==7165== at 0x4C2F7C8: calloc (vg_replace_malloc.c:1117)
==7165== by 0x7A1F619: PR_NewMonitor (in /usr/lib64/libnspr4.so)
==7165== by 0x7A0FA59: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x7A1641D: ??? (in /usr/lib64/libnspr4.so)
==7165== by 0x4E7ED54: ??? (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E664F4: curl_global_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4E66657: curl_easy_init (in /usr/lib64/libcurl.so.4.3.0)
==7165== by 0x4057B7: GET_PUBLIC_IP (rhost.c:52)
==7165== by 0x404D2B: main (rhost.c:612)
==7165==
==7165== LEAK SUMMARY:
==7165== definitely lost: 0 bytes in 0 blocks
==7165== indirectly lost: 0 bytes in 0 blocks
==7165== possibly lost: 0 bytes in 0 blocks
==7165== still reachable: 6,957 bytes in 67 blocks
==7165== suppressed: 0 bytes in 0 blocks
==7165==
==7165== For lists of detected and suppressed errors, rerun with: -s
==7165== ERROR SUMMARY: 2352 errors from 1 contexts (suppressed: 0 from 0)

View File

@ -10,9 +10,20 @@ OBG = rhost
CLAMSCAN_CFLAGS += -Wall -Os -DHAVE_CONFIG_H -I./clamscan -I./clamscan/shared -I./clamscan/libclamav -I./clamscan/libclamunrar_iface -I/usr/include/json-c -Wdate-time -D_FORTIFY_SOURCE=2 -fstack-protector-strong -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
SHARED_CFLAGS += -Wall -Os -DHAVE_CONFIG_H -I./clamscan -I./clamscan/shared -I./clamscan/libclamav -I./clamscan/libclamunrar_iface -I/usr/include/json-c -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
CFLAGS += -Os -g -Wall -DCRON_USE_LOCAL_TIME -DCRON_TEST_MALLOC
freshclam_CFLAGS += -g -O2 -Wall -DHAVE_CONFIG_H -I./clamscan -I./clamscan/shared -I./clamscan/libclamav -I./clamscan/libclamunrar_iface -I/usr/include/json-c -Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
libfreshclam_CFLAGS += -g -Os -Wall -DHAVE_CONFIG_H -I./clamscan -I./clamscan/freshclam -I./clamscan/shared -I./clamscan/libclamav -I./clamscan/libclamunrar_iface -I/usr/include/json-c -Wdate-time -D_FORTIFY_SOURCE=2
freshclam_LIB += clamscan/freshclam/freshclam.o clamscan/freshclam/notify.o clamscan/freshclam/execute.o clamscan/freshclam/libfreshclam.o clamscan/freshclam/libfreshclam_internal.o clamscan/freshclam/dns.o ./clamscan/shared/libshared.a -lssl -lcrypto -lclamav -lresolv -lcurl -lz -ljson-c -lltdl -lpthread -lm
all: conf.o rhost.o libiptc.o ccronexpr.o
$(CC) $(freshclam_CFLAGS) -c clamscan/freshclam/freshclam.c -fPIC -DPIC -o clamscan/freshclam/freshclam.o
$(CC) $(freshclam_CFLAGS) -c clamscan/freshclam/notify.c -fPIC -DPIC -o clamscan/freshclam/notify.o
$(CC) $(freshclam_CFLAGS) -c clamscan/freshclam/execute.c -fPIC -DPIC -o clamscan/freshclam/execute.o
$(CC) $(libfreshclam_CFLAGS) -c clamscan/freshclam/libfreshclam.c -fPIC -DPIC -o clamscan/freshclam/libfreshclam.o
$(CC) $(libfreshclam_CFLAGS) -c clamscan/freshclam/libfreshclam_internal.c -fPIC -DPIC -o clamscan/freshclam/libfreshclam_internal.o
$(CC) $(libfreshclam_CFLAGS) -c clamscan/freshclam/dns.c -fPIC -DPIC -o clamscan/freshclam/dns.o
$(CC) $(SHARED_CFLAGS) -c ./clamscan/shared/actions.c -fPIC -DPIC -o ./clamscan/shared/actions.o
$(CC) $(SHARED_CFLAGS) -c ./clamscan/shared/cdiff.c -fPIC -DPIC -o ./clamscan/shared/cdiff.o
$(CC) $(SHARED_CFLAGS) -c ./clamscan/shared/cert_util.c -fPIC -DPIC -o ./clamscan/shared/cert_util.o
@ -26,9 +37,11 @@ all: conf.o rhost.o libiptc.o ccronexpr.o
$(CC) $(SHARED_CFLAGS) -c ./clamscan/shared/tar.c -fPIC -DPIC -o ./clamscan/shared/tar.o
$(CC) $(SHARED_CFLAGS) -c ./clamscan/shared/linux/cert_util_linux.c -fPIC -DPIC -o ./clamscan/shared/linux/cert_util_linux.o
ar cr ./clamscan/shared/libshared.a ./clamscan/shared/actions.o ./clamscan/shared/cdiff.o ./clamscan/shared/cert_util.o ./clamscan/shared/clamdcom.o ./clamscan/shared/getopt.o ./clamscan/shared/hostid.o ./clamscan/shared/idmef_logging.o ./clamscan/shared/misc.o ./clamscan/shared/optparser.o ./clamscan/shared/output.o ./clamscan/shared/tar.o ./clamscan/shared/linux/cert_util_linux.o
$(CC) $(CLAMSCAN_CFLAGS) -c clamscan/clamscan.c -o clamscan/clamscan.o
$(CC) $(CLAMSCAN_CFLAGS) -c clamscan/manager.c -o clamscan/manager.o
$(CC) $(CFLAGS) $^ -o $(OBG) $(LIB)
$(CC) $(CFLAGS) $^ -o $(OBG) $(LIB) $(freshclam_LIB)
chmod +x $(OBG)
@ -42,4 +55,5 @@ clean:
rm -rf *.o
rm -rf libiptc/*.o libiptc/*.a
rm -rf clamscan/shared/*.o clamscan/shared/libshared.a clamscan/*.o
rm -rf clamscan/freshclam/*.o
rm -rf $(OBG)

View File

@ -8,7 +8,7 @@
```
Debian系统请安装libcurl、iptables-devel、libclamav-dev
apt install libclamav-dev libip4tc-dev libcurl4-openssl-dev #(或者libcurl4-gnutls-dev)
apt install libsystemd-dev libjson-c-dev libpcre2-dev
apt install libsystemd-dev libjson-c-dev libpcre2-dev clamav-freshclam
freshclam # 更新病毒库(必要)
```
@ -16,7 +16,7 @@ Debian系统请安装libcurl、iptables-devel、libclamav-dev
Centos 7系统请安装libcurl、iptables-devel、libclamav-devel
yum install clamav clamav-update clamav-lib clamav-devel json-c-devel pcre2-devel
yum install iptables-devel libcurl-devel
yum install systemd-devel
yum install systemd-devel libtool-ltdl-devel
freshclam # 更新病毒库(必要)
```

Binary file not shown.

View File

@ -1,36 +0,0 @@
# Copyright (C) 2020-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
cmake_minimum_required( VERSION 3.12...3.13 )
if(WIN32)
add_definitions(-DWIN32_LEAN_AND_MEAN)
add_definitions(-DHAVE_STRUCT_TIMESPEC)
# Windows compatibility headers
include_directories(${CMAKE_SOURCE_DIR}/win32/compat)
endif()
# The clamscan executable.
add_executable( clamscan )
target_sources( clamscan
PRIVATE
clamscan.c
manager.c
manager.h
global.h )
if(WIN32)
target_sources( clamscan PRIVATE ${CMAKE_SOURCE_DIR}/win32/res/clamscan.rc )
endif()
target_include_directories( clamscan
PRIVATE ${CMAKE_BINARY_DIR} # For clamav-config.h
)
set_target_properties( clamscan PROPERTIES COMPILE_FLAGS "${WARNCFLAGS}" )
target_link_libraries( clamscan
PRIVATE
ClamAV::libclamav
ClamAV::shared )
if(WIN32)
install(TARGETS clamscan DESTINATION ${CMAKE_INSTALL_PREFIX})
else()
install(TARGETS clamscan DESTINATION ${CMAKE_INSTALL_BINDIR})
endif()

View File

@ -1,911 +0,0 @@
# Makefile.in generated by automake 1.16.3 from Makefile.am.
# clamscan/Makefile. Generated from Makefile.in by configure.
# Copyright (C) 1994-2020 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
#
# Copyright (C) 2013-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
# Copyright (C) 2007-2013 Sourcefire, Inc.
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
#
# Fixes by Arkadiusz Miskiewicz <misiek@pld.org.pl>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/clamav
pkgincludedir = $(includedir)/clamav
pkglibdir = $(libdir)/clamav
pkglibexecdir = $(libexecdir)/clamav
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = x86_64-pc-linux-gnu
host_triplet = x86_64-pc-linux-gnu
target_triplet = x86_64-pc-linux-gnu
bin_PROGRAMS = clamscan$(EXEEXT)
subdir = clamscan
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
$(top_srcdir)/m4/ax_check_uname_syscall.m4 \
$(top_srcdir)/m4/fdpassing.m4 $(top_srcdir)/m4/lib-ld.m4 \
$(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
$(top_srcdir)/m4/lib-prelude.m4 $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/llvm.m4 $(top_srcdir)/m4/ltargz.m4 \
$(top_srcdir)/m4/ltdl.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \
$(top_srcdir)/m4/reorganization/version.m4 \
$(top_srcdir)/m4/reorganization/libclamav-only.m4 \
$(top_srcdir)/m4/reorganization/build_tools.m4 \
$(top_srcdir)/m4/reorganization/headers.m4 \
$(top_srcdir)/m4/reorganization/c_options.m4 \
$(top_srcdir)/m4/reorganization/compiler_checks.m4 \
$(top_srcdir)/m4/reorganization/linker_checks.m4 \
$(top_srcdir)/m4/reorganization/code_checks/fuzz.m4 \
$(top_srcdir)/m4/reorganization/code_checks/functions.m4 \
$(top_srcdir)/m4/reorganization/code_checks/mpool.m4 \
$(top_srcdir)/m4/reorganization/code_checks/unit_tests.m4 \
$(top_srcdir)/m4/reorganization/code_checks/coverage.m4 \
$(top_srcdir)/m4/reorganization/libs/xml.m4 \
$(top_srcdir)/m4/reorganization/libs/openssl.m4 \
$(top_srcdir)/m4/reorganization/libs/json.m4 \
$(top_srcdir)/m4/reorganization/libs/pcre.m4 \
$(top_srcdir)/m4/reorganization/libs/libmspack.m4 \
$(top_srcdir)/m4/reorganization/libs/tomsfastmath.m4 \
$(top_srcdir)/m4/reorganization/libs/libz.m4 \
$(top_srcdir)/m4/reorganization/libs/bzip.m4 \
$(top_srcdir)/m4/reorganization/libs/unrar.m4 \
$(top_srcdir)/m4/reorganization/libs/systemd.m4 \
$(top_srcdir)/m4/reorganization/code_checks/ipv6.m4 \
$(top_srcdir)/m4/reorganization/code_checks/dns.m4 \
$(top_srcdir)/m4/reorganization/code_checks/fanotify.m4 \
$(top_srcdir)/m4/reorganization/code_checks/setpgrp.m4 \
$(top_srcdir)/m4/reorganization/milter/enable.m4 \
$(top_srcdir)/m4/reorganization/libs/iconv_check.m4 \
$(top_srcdir)/m4/reorganization/libs/iconv.m4 \
$(top_srcdir)/m4/reorganization/code_checks/pthreads.m4 \
$(top_srcdir)/m4/reorganization/code_checks/reentrant.m4 \
$(top_srcdir)/m4/reorganization/utility_checks/id.m4 \
$(top_srcdir)/m4/reorganization/utility_checks/yp.m4 \
$(top_srcdir)/m4/reorganization/usergroup.m4 \
$(top_srcdir)/m4/reorganization/debug.m4 \
$(top_srcdir)/m4/reorganization/customversion.m4 \
$(top_srcdir)/m4/reorganization/nocache.m4 \
$(top_srcdir)/m4/reorganization/dns.m4 \
$(top_srcdir)/m4/reorganization/bigstack.m4 \
$(top_srcdir)/m4/reorganization/dbdir.m4 \
$(top_srcdir)/m4/reorganization/cfgdir.m4 \
$(top_srcdir)/m4/reorganization/code_checks/in_port_t.m4 \
$(top_srcdir)/m4/reorganization/code_checks/in_addr_t.m4 \
$(top_srcdir)/m4/reorganization/os_checks.m4 \
$(top_srcdir)/m4/reorganization/milter/check.m4 \
$(top_srcdir)/m4/reorganization/code_checks/pthread_02.m4 \
$(top_srcdir)/m4/reorganization/code_checks/ctime.m4 \
$(top_srcdir)/m4/reorganization/code_checks/socklen_t.m4 \
$(top_srcdir)/m4/reorganization/clamav_user.m4 \
$(top_srcdir)/m4/reorganization/code_checks/compiler_attribs.m4 \
$(top_srcdir)/m4/reorganization/code_checks/select.m4 \
$(top_srcdir)/m4/reorganization/code_checks/stat64.m4 \
$(top_srcdir)/m4/reorganization/code_checks/shift.m4 \
$(top_srcdir)/m4/reorganization/code_checks/features.m4 \
$(top_srcdir)/m4/reorganization/clamdtop.m4 \
$(top_srcdir)/m4/reorganization/distcheck.m4 \
$(top_srcdir)/m4/reorganization/llvm.m4 \
$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
$(top_srcdir)/m4/reorganization/sha_collect.m4 \
$(top_srcdir)/m4/reorganization/yara.m4 \
$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
$(top_srcdir)/m4/reorganization/prelude.m4 \
$(top_srcdir)/m4/reorganization/bsd.m4 \
$(top_srcdir)/m4/reorganization/clamonacc.m4 \
$(top_srcdir)/m4/reorganization/libs/curl.m4 \
$(top_srcdir)/m4/reorganization/substitutions.m4 \
$(top_srcdir)/m4/reorganization/strni.m4 \
$(top_srcdir)/m4/reorganization/types.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/clamav-config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
am__installdirs = "$(DESTDIR)$(bindir)"
PROGRAMS = $(bin_PROGRAMS)
am_clamscan_OBJECTS = clamscan.$(OBJEXT) manager.$(OBJEXT)
clamscan_OBJECTS = $(am_clamscan_OBJECTS)
clamscan_LDADD = $(LDADD)
AM_V_lt = $(am__v_lt_$(V))
am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY))
am__v_lt_0 = --silent
am__v_lt_1 =
AM_V_P = $(am__v_P_$(V))
am__v_P_ = $(am__v_P_$(AM_DEFAULT_VERBOSITY))
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_$(V))
am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY))
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_$(V))
am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY))
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I. -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
am__maybe_remake_depfiles = depfiles
am__depfiles_remade = ./$(DEPDIR)/clamscan.Po ./$(DEPDIR)/manager.Po
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_$(V))
am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY))
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_$(V))
am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY))
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(clamscan_SOURCES)
DIST_SOURCES = $(clamscan_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
ETAGS = etags
CTAGS = ctags
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = ${SHELL} '/root/clamav/clamav-0.103.7+dfsg/config/missing' aclocal-1.16
AMTAR = $${TAR-tar}
AM_DEFAULT_VERBOSITY = 1
AR = ar
AUTOCONF = ${SHELL} '/root/clamav/clamav-0.103.7+dfsg/config/missing' autoconf
AUTOHEADER = ${SHELL} '/root/clamav/clamav-0.103.7+dfsg/config/missing' autoheader
AUTOMAKE = ${SHELL} '/root/clamav/clamav-0.103.7+dfsg/config/missing' automake-1.16
AWK = mawk
BUILD_CONFIGURE_FLAGS = '--build=x86_64-linux-gnu' '--prefix=/usr' '--includedir=${prefix}/include' '--mandir=${prefix}/share/man' '--infodir=${prefix}/share/info' '--sysconfdir=/etc' '--localstatedir=/var' '--disable-option-checking' '--disable-silent-rules' '--libdir=${prefix}/lib/x86_64-linux-gnu' '--runstatedir=/run' '--disable-maintainer-mode' '--disable-dependency-tracking' 'CFLAGS=-g -O2 -ffile-prefix-map=/root/clamav/clamav-0.103.7+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64' 'CPPFLAGS=-Wdate-time -D_FORTIFY_SOURCE=2' 'CXXFLAGS=-g -O2 -ffile-prefix-map=/root/clamav/clamav-0.103.7+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64' 'LDFLAGS=-Wl,-z,relro -Wl,-z,now -Wl,--as-needed' '--with-dbdir=/var/lib/clamav' '--sysconfdir=/etc/clamav' '--disable-clamav' '--disable-unrar' '--enable-milter' '--enable-dns-fix' '--with-libjson' '--with-system-libmspack' '--with-libcurl=/usr' '--with-gnu-ld' '--with-systemdsystemunitdir=/lib/systemd/system' '--enable-static' 'build_alias=x86_64-linux-gnu' 'OBJCFLAGS=-g -O2 -ffile-prefix-map=/root/clamav/clamav-0.103.7+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security'
CC = gcc
CCDEPMODE = depmode=none
CFGDIR = /etc/clamav
CFLAGS = -g -O2 -ffile-prefix-map=/root/clamav/clamav-0.103.7+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
CHECK_CFLAGS = -pthread
CHECK_CPPFLAGS = -pthread
CHECK_LIBS = -lcheck_pic -pthread -lrt -lm -lsubunit
CLAMAVGROUP =
CLAMAVUSER =
CLAMAV_MILTER_CPPFLAGS =
CLAMAV_MILTER_LIBS = -lmilter -lpthread
CLAMBC_CPPFLAGS =
CLAMBC_LIBS =
CLAMCONF_CPPFLAGS =
CLAMCONF_LIBS =
CLAMDSCAN_CPPFLAGS =
CLAMDSCAN_LIBS =
CLAMDTOP_CPPFLAGS =
CLAMDTOP_LIBS =
CLAMD_CPPFLAGS =
CLAMD_LIBS = -lsystemd
CLAMMEM_CPPFLAGS =
CLAMMEM_LIBS =
CLAMONACC_CPPFLAGS =
CLAMONACC_LIBS =
CLAMSCAN_CPPFLAGS =
CLAMSCAN_LIBS =
CLAMSUBMIT_CFLAGS =
CLAMSUBMIT_LIBS = -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -lcurl
CPP = gcc -E
CPPFLAGS = -Wdate-time -D_FORTIFY_SOURCE=2
CURL_CPPFLAGS =
CURL_LDFLAGS = -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
CURL_LIBS = -lcurl
CURSES_CPPFLAGS = -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
CURSES_LIBS = -lncurses -ltinfo
CXX = g++
CXXCPP = g++ -E
CXXDEPMODE = depmode=none
CXXFLAGS = -g -O2 -ffile-prefix-map=/root/clamav/clamav-0.103.7+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security -Wall -D_FILE_OFFSET_BITS=64
CYGPATH_W = echo
DBDIR = /var/lib/clamav
DEFINE_SF32_PREFIX = #define _SF32_PREFIX ""
DEFINE_SF64_PREFIX = #define _SF64_PREFIX "l"
DEFS = -DHAVE_CONFIG_H
DEPDIR = .deps
DLLTOOL = false
DSYMUTIL =
DUMPBIN =
ECHO_C =
ECHO_N = -n
ECHO_T =
EGREP = /bin/grep -E
EXEEXT =
FGREP = /bin/grep -F
FRESHCLAM_CPPFLAGS =
FRESHCLAM_LIBS = -lresolv -Wl,-z,relro -Wl,-z,now -Wl,--as-needed -lcurl
GCOV =
GENERATE_WARNING = Warning: This file is generated with ./configure. Do not edit!
GENHTML =
GETENT =
GPERF = ${SHELL} '/root/clamav/clamav-0.103.7+dfsg/config/missing' gperf
GREP = /bin/grep
HAVE_STRNI =
HAVE_YARA =
INCLTDL =
INSTALL = /usr/bin/install -c
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_PROGRAM = ${INSTALL}
INSTALL_SCRIPT = ${INSTALL}
INSTALL_STRIP_PROGRAM = $(install_sh) -c -s
INT16_DEF =
INT32_DEF =
INT64_DEF =
INT8_DEF =
INT_TYPES_HEADER = #include <inttypes.h>
JSON_CPPFLAGS = -I/usr/include/json-c
JSON_LDFLAGS =
JSON_LIBS = -ljson-c
LCOV =
LD = /usr/bin/ld -m elf_x86_64
LDFLAGS = -Wl,-z,relro -Wl,-z,now -Wl,--as-needed
LEX = flex
LEXLIB = -lfl
LEX_OUTPUT_ROOT = lex.yy
LIBADD_DL = -ldl
LIBADD_DLD_LINK =
LIBADD_DLOPEN = -ldl
LIBADD_SHL_LOAD =
LIBBZ2 = -lbz2
LIBBZ2_PREFIX =
LIBCLAMAV_CPPFLAGS =
LIBCLAMAV_LIBS = -lbz2
LIBCLAMAV_VERSION = 9:5:0
LIBCLAMAV_VERSION_NUM = 0x090500
LIBCLAMSHARED_CPPFLAGS =
LIBFRESHCLAM_VERSION = 2:1:0
LIBFRESHCLAM_VERSION_NUM = 0x020100
LIBICONV =
LIBLTDL = -lltdl
LIBM = -lm
LIBMSPACK_CFLAGS =
LIBMSPACK_LIBS = -lmspack
LIBOBJS =
LIBPRELUDE_CFLAGS =
LIBPRELUDE_CONFIG =
LIBPRELUDE_CONFIG_PREFIX =
LIBPRELUDE_LDFLAGS =
LIBPRELUDE_LIBS =
LIBPRELUDE_PREFIX =
LIBPRELUDE_PTHREAD_CFLAGS =
LIBS = $(top_builddir)/libclamav/libclamav.la $(top_builddir)/shared/libshared.la -lpthread
LIBTOOL = $(SHELL) $(top_builddir)/libtool
LIPO =
LN_S = ln -s
LTDLDEPS =
LTDLINCL =
LTDLOPEN = libltdl
LTLIBBZ2 = -lbz2
LTLIBICONV =
LTLIBOBJS =
LT_ARGZ_H =
LT_CONFIG_H = clamav-config.h
LT_DLLOADERS = dlopen.la
LT_DLPREOPEN = -dlpreopen dlopen.la
LT_SYS_LIBRARY_PATH =
MAINT = #
MAKEINFO = ${SHELL} '/root/clamav/clamav-0.103.7+dfsg/config/missing' makeinfo
MANIFEST_TOOL = :
MKDIR_P = /bin/mkdir -p
NCURSES_CFLAGS = -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600
NCURSES_LIBS = -lncurses -ltinfo
NM = /usr/bin/nm -B
NMEDIT =
OBJC = gcc
OBJCDEPMODE = depmode=none
OBJCFLAGS = -g -O2 -ffile-prefix-map=/root/clamav/clamav-0.103.7+dfsg=. -fstack-protector-strong -Wformat -Werror=format-security
OBJDUMP = objdump
OBJEXT = o
OTOOL =
OTOOL64 =
PACKAGE = clamav
PACKAGE_BUGREPORT = https://github.com/Cisco-Talos/clamav/issues
PACKAGE_NAME = ClamAV
PACKAGE_STRING = ClamAV 0.103.7
PACKAGE_TARNAME = clamav
PACKAGE_URL = https://www.clamav.net/
PACKAGE_VERSION = 0.103.7
PACKAGE_VERSION_NUM = 0x006707
PATH_SEPARATOR = :
PCRE_CFLAGS =
PCRE_CPPFLAGS =
PCRE_LIBS = -lpcre2-8
PKG_CONFIG = /usr/bin/pkg-config
PKG_CONFIG_LIBDIR =
PKG_CONFIG_PATH =
RANLIB = ranlib
SED = /bin/sed
SET_MAKE =
SHELL = /bin/bash
SIGTOOL_CPPFLAGS =
SSL_CPPFLAGS =
SSL_LDFLAGS =
SSL_LIBS = -lssl -lcrypto -lz
STRIP = strip
SYSTEMD_CFLAGS =
SYSTEMD_LIBS = -lsystemd
THREAD_LIBS = -lpthread
TH_SAFE = -thread-safe
TOMSFASTMATH_CFLAGS =
TOMSFASTMATH_LIBS = -ltfm
UINT16_DEF =
UINT32_DEF =
UINT64_DEF =
UINT8_DEF =
VERSION = 0.103.7
VERSIONSCRIPTFLAG = --version-script
WERR_CFLAGS =
WERR_CFLAGS_MILTER =
XML_CPPFLAGS = -I/usr/include/libxml2
XML_LIBS = -lxml2
YACC = bison -y
YFLAGS =
ZLIB_CFLAGS =
ZLIB_LIBS = -lz
abs_builddir = /root/clamav/clamav-0.103.7+dfsg/clamscan
abs_srcdir = /root/clamav/clamav-0.103.7+dfsg/clamscan
abs_top_builddir = /root/clamav/clamav-0.103.7+dfsg
abs_top_srcdir = /root/clamav/clamav-0.103.7+dfsg
ac_ct_AR = ar
ac_ct_CC = gcc
ac_ct_CXX = g++
ac_ct_DUMPBIN =
ac_ct_OBJC = gcc
am__include = include
am__leading_dot = .
am__quote =
am__tar = tar --format=ustar -chf - "$$tardir"
am__untar = tar -xf -
bindir = ${exec_prefix}/bin
build = x86_64-pc-linux-gnu
build_alias = x86_64-linux-gnu
build_cpu = x86_64
build_os = linux-gnu
build_vendor = pc
builddir = .
curl_config = /usr/bin/curl-config
datadir = ${datarootdir}
datarootdir = ${prefix}/share
docdir = ${datarootdir}/doc/${PACKAGE_TARNAME}
dvidir = ${docdir}
exec_prefix = ${prefix}
host = x86_64-pc-linux-gnu
host_alias =
host_cpu = x86_64
host_os = linux-gnu
host_vendor = pc
htmldir = ${docdir}
includedir = ${prefix}/include
infodir = ${prefix}/share/info
install_sh = ${SHELL} /root/clamav/clamav-0.103.7+dfsg/config/install-sh
libdir = ${prefix}/lib/x86_64-linux-gnu
libexecdir = ${exec_prefix}/libexec
llvmconfig =
localedir = ${datarootdir}/locale
localstatedir = /var
ltdl_LIBOBJS = lt__strl.o
ltdl_LTLIBOBJS = lt__strl.lo
mandir = ${prefix}/share/man
mkdir_p = $(MKDIR_P)
oldincludedir = /usr/include
pcreconfig =
pdfdir = ${docdir}
prefix = /usr
program_transform_name = s,x,x,
psdir = ${docdir}
runstatedir = /run
sbindir = ${exec_prefix}/sbin
sharedstatedir = ${prefix}/com
srcdir = .
subdirs =
sys_symbol_underscore = no
sysconfdir = /etc/clamav
systemdsystemunitdir = /lib/systemd/system
target = x86_64-pc-linux-gnu
target_alias =
target_cpu = x86_64
target_os = linux-gnu
target_vendor = pc
top_build_prefix = ../
top_builddir = ..
top_srcdir = ..
xmlconfig = /usr/bin/xml2-config
clamscan_SOURCES = \
clamscan.c \
global.h \
manager.c \
manager.h
AM_CFLAGS =
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav -I$(top_builddir)/libclamav -I$(top_srcdir)/libclamunrar_iface -I/usr/include/json-c
CLEANFILES = *.gcda *.gcno
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: # $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign clamscan/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --foreign clamscan/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: # $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): # $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
$(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
fi; \
for p in $$list; do echo "$$p $$p"; done | \
sed 's/$(EXEEXT)$$//' | \
while read p p1; do if test -f $$p \
|| test -f $$p1 \
; then echo "$$p"; echo "$$p"; else :; fi; \
done | \
sed -e 'p;s,.*/,,;n;h' \
-e 's|.*|.|' \
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
sed 'N;N;N;s,\n, ,g' | \
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
{ d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
if ($$2 == $$4) files[d] = files[d] " " $$1; \
else { print "f", $$3 "/" $$4, $$1; } } \
END { for (d in files) print "f", d, files[d] }' | \
while read type dir files; do \
if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
test -z "$$files" || { \
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
} \
; done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
files=`for p in $$list; do echo "$$p"; done | \
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
-e 's/$$/$(EXEEXT)/' \
`; \
test -n "$$list" || exit 0; \
echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
cd "$(DESTDIR)$(bindir)" && rm -f $$files
clean-binPROGRAMS:
@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
echo " rm -f" $$list; \
rm -f $$list || exit $$?; \
test -n "$(EXEEXT)" || exit 0; \
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
echo " rm -f" $$list; \
rm -f $$list
installcheck-binPROGRAMS: $(bin_PROGRAMS)
bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \
case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
*" $$p "* | *" $(srcdir)/$$p "*) continue;; \
esac; \
f=`echo "$$p" | \
sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
for opt in --help --version; do \
if "$(DESTDIR)$(bindir)/$$f" $$opt >c$${pid}_.out \
2>c$${pid}_.err </dev/null \
&& test -n "`cat c$${pid}_.out`" \
&& test -z "`cat c$${pid}_.err`"; then :; \
else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
done; \
done; rm -f c$${pid}_.???; exit $$bad
clamscan$(EXEEXT): $(clamscan_OBJECTS) $(clamscan_DEPENDENCIES) $(EXTRA_clamscan_DEPENDENCIES)
@rm -f clamscan$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(clamscan_OBJECTS) $(clamscan_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
#include ./$(DEPDIR)/clamscan.Po # am--include-marker
#include ./$(DEPDIR)/manager.Po # am--include-marker
$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
am--depfiles: $(am__depfiles_remade)
.c.o:
# $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
# $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
# $(am__mv) $$depbase.Tpo $$depbase.Po
# $(AM_V_CC)source='$<' object='$@' libtool=no
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp)
$(AM_V_CC)$(COMPILE) -c -o $@ $<
.c.obj:
# $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
# $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
# $(am__mv) $$depbase.Tpo $$depbase.Po
# $(AM_V_CC)source='$<' object='$@' libtool=no
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp)
$(AM_V_CC)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
# $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
# $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
# $(am__mv) $$depbase.Tpo $$depbase.Plo
# $(AM_V_CC)source='$<' object='$@' libtool=yes
# DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp)
$(AM_V_CC)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS)
installdirs:
for dir in "$(DESTDIR)$(bindir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
-rm -f ./$(DEPDIR)/clamscan.Po
-rm -f ./$(DEPDIR)/manager.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am: install-binPROGRAMS
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am: installcheck-binPROGRAMS
maintainer-clean: maintainer-clean-am
-rm -f ./$(DEPDIR)/clamscan.Po
-rm -f ./$(DEPDIR)/manager.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-binPROGRAMS
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
ctags ctags-am distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-binPROGRAMS \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-html install-html-am \
install-info install-info-am install-man install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
installcheck installcheck-am installcheck-binPROGRAMS \
installdirs maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
uninstall-am uninstall-binPROGRAMS
.PRECIOUS: Makefile
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,36 +0,0 @@
#
# Copyright (C) 2013-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
# Copyright (C) 2007-2013 Sourcefire, Inc.
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
#
# Fixes by Arkadiusz Miskiewicz <misiek@pld.org.pl>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
bin_PROGRAMS = clamscan
clamscan_SOURCES = \
clamscan.c \
global.h \
manager.c \
manager.h
AM_CFLAGS=@WERR_CFLAGS@
DEFS = @DEFS@
LIBS = $(top_builddir)/libclamav/libclamav.la $(top_builddir)/shared/libshared.la @THREAD_LIBS@ @CLAMSCAN_LIBS@
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav -I$(top_builddir)/libclamav -I$(top_srcdir)/libclamunrar_iface @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @PCRE_CPPFLAGS@ @CLAMSCAN_CPPFLAGS@
CLEANFILES=*.gcda *.gcno

View File

@ -1,911 +0,0 @@
# Makefile.in generated by automake 1.16.3 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2020 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
#
# Copyright (C) 2013-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
# Copyright (C) 2007-2013 Sourcefire, Inc.
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
#
# Fixes by Arkadiusz Miskiewicz <misiek@pld.org.pl>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
bin_PROGRAMS = clamscan$(EXEEXT)
subdir = clamscan
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
$(top_srcdir)/m4/ax_check_uname_syscall.m4 \
$(top_srcdir)/m4/fdpassing.m4 $(top_srcdir)/m4/lib-ld.m4 \
$(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
$(top_srcdir)/m4/lib-prelude.m4 $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/llvm.m4 $(top_srcdir)/m4/ltargz.m4 \
$(top_srcdir)/m4/ltdl.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \
$(top_srcdir)/m4/reorganization/version.m4 \
$(top_srcdir)/m4/reorganization/libclamav-only.m4 \
$(top_srcdir)/m4/reorganization/build_tools.m4 \
$(top_srcdir)/m4/reorganization/headers.m4 \
$(top_srcdir)/m4/reorganization/c_options.m4 \
$(top_srcdir)/m4/reorganization/compiler_checks.m4 \
$(top_srcdir)/m4/reorganization/linker_checks.m4 \
$(top_srcdir)/m4/reorganization/code_checks/fuzz.m4 \
$(top_srcdir)/m4/reorganization/code_checks/functions.m4 \
$(top_srcdir)/m4/reorganization/code_checks/mpool.m4 \
$(top_srcdir)/m4/reorganization/code_checks/unit_tests.m4 \
$(top_srcdir)/m4/reorganization/code_checks/coverage.m4 \
$(top_srcdir)/m4/reorganization/libs/xml.m4 \
$(top_srcdir)/m4/reorganization/libs/openssl.m4 \
$(top_srcdir)/m4/reorganization/libs/json.m4 \
$(top_srcdir)/m4/reorganization/libs/pcre.m4 \
$(top_srcdir)/m4/reorganization/libs/libmspack.m4 \
$(top_srcdir)/m4/reorganization/libs/tomsfastmath.m4 \
$(top_srcdir)/m4/reorganization/libs/libz.m4 \
$(top_srcdir)/m4/reorganization/libs/bzip.m4 \
$(top_srcdir)/m4/reorganization/libs/unrar.m4 \
$(top_srcdir)/m4/reorganization/libs/systemd.m4 \
$(top_srcdir)/m4/reorganization/code_checks/ipv6.m4 \
$(top_srcdir)/m4/reorganization/code_checks/dns.m4 \
$(top_srcdir)/m4/reorganization/code_checks/fanotify.m4 \
$(top_srcdir)/m4/reorganization/code_checks/setpgrp.m4 \
$(top_srcdir)/m4/reorganization/milter/enable.m4 \
$(top_srcdir)/m4/reorganization/libs/iconv_check.m4 \
$(top_srcdir)/m4/reorganization/libs/iconv.m4 \
$(top_srcdir)/m4/reorganization/code_checks/pthreads.m4 \
$(top_srcdir)/m4/reorganization/code_checks/reentrant.m4 \
$(top_srcdir)/m4/reorganization/utility_checks/id.m4 \
$(top_srcdir)/m4/reorganization/utility_checks/yp.m4 \
$(top_srcdir)/m4/reorganization/usergroup.m4 \
$(top_srcdir)/m4/reorganization/debug.m4 \
$(top_srcdir)/m4/reorganization/customversion.m4 \
$(top_srcdir)/m4/reorganization/nocache.m4 \
$(top_srcdir)/m4/reorganization/dns.m4 \
$(top_srcdir)/m4/reorganization/bigstack.m4 \
$(top_srcdir)/m4/reorganization/dbdir.m4 \
$(top_srcdir)/m4/reorganization/cfgdir.m4 \
$(top_srcdir)/m4/reorganization/code_checks/in_port_t.m4 \
$(top_srcdir)/m4/reorganization/code_checks/in_addr_t.m4 \
$(top_srcdir)/m4/reorganization/os_checks.m4 \
$(top_srcdir)/m4/reorganization/milter/check.m4 \
$(top_srcdir)/m4/reorganization/code_checks/pthread_02.m4 \
$(top_srcdir)/m4/reorganization/code_checks/ctime.m4 \
$(top_srcdir)/m4/reorganization/code_checks/socklen_t.m4 \
$(top_srcdir)/m4/reorganization/clamav_user.m4 \
$(top_srcdir)/m4/reorganization/code_checks/compiler_attribs.m4 \
$(top_srcdir)/m4/reorganization/code_checks/select.m4 \
$(top_srcdir)/m4/reorganization/code_checks/stat64.m4 \
$(top_srcdir)/m4/reorganization/code_checks/shift.m4 \
$(top_srcdir)/m4/reorganization/code_checks/features.m4 \
$(top_srcdir)/m4/reorganization/clamdtop.m4 \
$(top_srcdir)/m4/reorganization/distcheck.m4 \
$(top_srcdir)/m4/reorganization/llvm.m4 \
$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
$(top_srcdir)/m4/reorganization/sha_collect.m4 \
$(top_srcdir)/m4/reorganization/yara.m4 \
$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
$(top_srcdir)/m4/reorganization/prelude.m4 \
$(top_srcdir)/m4/reorganization/bsd.m4 \
$(top_srcdir)/m4/reorganization/clamonacc.m4 \
$(top_srcdir)/m4/reorganization/libs/curl.m4 \
$(top_srcdir)/m4/reorganization/substitutions.m4 \
$(top_srcdir)/m4/reorganization/strni.m4 \
$(top_srcdir)/m4/reorganization/types.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/clamav-config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
am__installdirs = "$(DESTDIR)$(bindir)"
PROGRAMS = $(bin_PROGRAMS)
am_clamscan_OBJECTS = clamscan.$(OBJEXT) manager.$(OBJEXT)
clamscan_OBJECTS = $(am_clamscan_OBJECTS)
clamscan_LDADD = $(LDADD)
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
am__maybe_remake_depfiles = depfiles
am__depfiles_remade = ./$(DEPDIR)/clamscan.Po ./$(DEPDIR)/manager.Po
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
SOURCES = $(clamscan_SOURCES)
DIST_SOURCES = $(clamscan_SOURCES)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
ETAGS = etags
CTAGS = ctags
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BUILD_CONFIGURE_FLAGS = @BUILD_CONFIGURE_FLAGS@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFGDIR = @CFGDIR@
CFLAGS = @CFLAGS@
CHECK_CFLAGS = @CHECK_CFLAGS@
CHECK_CPPFLAGS = @CHECK_CPPFLAGS@
CHECK_LIBS = @CHECK_LIBS@
CLAMAVGROUP = @CLAMAVGROUP@
CLAMAVUSER = @CLAMAVUSER@
CLAMAV_MILTER_CPPFLAGS = @CLAMAV_MILTER_CPPFLAGS@
CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
CLAMBC_CPPFLAGS = @CLAMBC_CPPFLAGS@
CLAMBC_LIBS = @CLAMBC_LIBS@
CLAMCONF_CPPFLAGS = @CLAMCONF_CPPFLAGS@
CLAMCONF_LIBS = @CLAMCONF_LIBS@
CLAMDSCAN_CPPFLAGS = @CLAMDSCAN_CPPFLAGS@
CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
CLAMDTOP_CPPFLAGS = @CLAMDTOP_CPPFLAGS@
CLAMDTOP_LIBS = @CLAMDTOP_LIBS@
CLAMD_CPPFLAGS = @CLAMD_CPPFLAGS@
CLAMD_LIBS = @CLAMD_LIBS@
CLAMMEM_CPPFLAGS = @CLAMMEM_CPPFLAGS@
CLAMMEM_LIBS = @CLAMMEM_LIBS@
CLAMONACC_CPPFLAGS = @CLAMONACC_CPPFLAGS@
CLAMONACC_LIBS = @CLAMONACC_LIBS@
CLAMSCAN_CPPFLAGS = @CLAMSCAN_CPPFLAGS@
CLAMSCAN_LIBS = @CLAMSCAN_LIBS@
CLAMSUBMIT_CFLAGS = @CLAMSUBMIT_CFLAGS@
CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CURL_CPPFLAGS = @CURL_CPPFLAGS@
CURL_LDFLAGS = @CURL_LDFLAGS@
CURL_LIBS = @CURL_LIBS@
CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
CURSES_LIBS = @CURSES_LIBS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DBDIR = @DBDIR@
DEFINE_SF32_PREFIX = @DEFINE_SF32_PREFIX@
DEFINE_SF64_PREFIX = @DEFINE_SF64_PREFIX@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
FRESHCLAM_CPPFLAGS = @FRESHCLAM_CPPFLAGS@
FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
GCOV = @GCOV@
GENERATE_WARNING = @GENERATE_WARNING@
GENHTML = @GENHTML@
GETENT = @GETENT@
GPERF = @GPERF@
GREP = @GREP@
HAVE_STRNI = @HAVE_STRNI@
HAVE_YARA = @HAVE_YARA@
INCLTDL = @INCLTDL@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INT16_DEF = @INT16_DEF@
INT32_DEF = @INT32_DEF@
INT64_DEF = @INT64_DEF@
INT8_DEF = @INT8_DEF@
INT_TYPES_HEADER = @INT_TYPES_HEADER@
JSON_CPPFLAGS = @JSON_CPPFLAGS@
JSON_LDFLAGS = @JSON_LDFLAGS@
JSON_LIBS = @JSON_LIBS@
LCOV = @LCOV@
LD = @LD@
LDFLAGS = @LDFLAGS@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBADD_DL = @LIBADD_DL@
LIBADD_DLD_LINK = @LIBADD_DLD_LINK@
LIBADD_DLOPEN = @LIBADD_DLOPEN@
LIBADD_SHL_LOAD = @LIBADD_SHL_LOAD@
LIBBZ2 = @LIBBZ2@
LIBBZ2_PREFIX = @LIBBZ2_PREFIX@
LIBCLAMAV_CPPFLAGS = @LIBCLAMAV_CPPFLAGS@
LIBCLAMAV_LIBS = @LIBCLAMAV_LIBS@
LIBCLAMAV_VERSION = @LIBCLAMAV_VERSION@
LIBCLAMAV_VERSION_NUM = @LIBCLAMAV_VERSION_NUM@
LIBCLAMSHARED_CPPFLAGS = @LIBCLAMSHARED_CPPFLAGS@
LIBFRESHCLAM_VERSION = @LIBFRESHCLAM_VERSION@
LIBFRESHCLAM_VERSION_NUM = @LIBFRESHCLAM_VERSION_NUM@
LIBICONV = @LIBICONV@
LIBLTDL = @LIBLTDL@
LIBM = @LIBM@
LIBMSPACK_CFLAGS = @LIBMSPACK_CFLAGS@
LIBMSPACK_LIBS = @LIBMSPACK_LIBS@
LIBOBJS = @LIBOBJS@
LIBPRELUDE_CFLAGS = @LIBPRELUDE_CFLAGS@
LIBPRELUDE_CONFIG = @LIBPRELUDE_CONFIG@
LIBPRELUDE_CONFIG_PREFIX = @LIBPRELUDE_CONFIG_PREFIX@
LIBPRELUDE_LDFLAGS = @LIBPRELUDE_LDFLAGS@
LIBPRELUDE_LIBS = @LIBPRELUDE_LIBS@
LIBPRELUDE_PREFIX = @LIBPRELUDE_PREFIX@
LIBPRELUDE_PTHREAD_CFLAGS = @LIBPRELUDE_PTHREAD_CFLAGS@
LIBS = $(top_builddir)/libclamav/libclamav.la $(top_builddir)/shared/libshared.la @THREAD_LIBS@ @CLAMSCAN_LIBS@
LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTDLDEPS = @LTDLDEPS@
LTDLINCL = @LTDLINCL@
LTDLOPEN = @LTDLOPEN@
LTLIBBZ2 = @LTLIBBZ2@
LTLIBICONV = @LTLIBICONV@
LTLIBOBJS = @LTLIBOBJS@
LT_ARGZ_H = @LT_ARGZ_H@
LT_CONFIG_H = @LT_CONFIG_H@
LT_DLLOADERS = @LT_DLLOADERS@
LT_DLPREOPEN = @LT_DLPREOPEN@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NCURSES_CFLAGS = @NCURSES_CFLAGS@
NCURSES_LIBS = @NCURSES_LIBS@
NM = @NM@
NMEDIT = @NMEDIT@
OBJC = @OBJC@
OBJCDEPMODE = @OBJCDEPMODE@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PACKAGE_VERSION_NUM = @PACKAGE_VERSION_NUM@
PATH_SEPARATOR = @PATH_SEPARATOR@
PCRE_CFLAGS = @PCRE_CFLAGS@
PCRE_CPPFLAGS = @PCRE_CPPFLAGS@
PCRE_LIBS = @PCRE_LIBS@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SIGTOOL_CPPFLAGS = @SIGTOOL_CPPFLAGS@
SSL_CPPFLAGS = @SSL_CPPFLAGS@
SSL_LDFLAGS = @SSL_LDFLAGS@
SSL_LIBS = @SSL_LIBS@
STRIP = @STRIP@
SYSTEMD_CFLAGS = @SYSTEMD_CFLAGS@
SYSTEMD_LIBS = @SYSTEMD_LIBS@
THREAD_LIBS = @THREAD_LIBS@
TH_SAFE = @TH_SAFE@
TOMSFASTMATH_CFLAGS = @TOMSFASTMATH_CFLAGS@
TOMSFASTMATH_LIBS = @TOMSFASTMATH_LIBS@
UINT16_DEF = @UINT16_DEF@
UINT32_DEF = @UINT32_DEF@
UINT64_DEF = @UINT64_DEF@
UINT8_DEF = @UINT8_DEF@
VERSION = @VERSION@
VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@
WERR_CFLAGS = @WERR_CFLAGS@
WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@
XML_CPPFLAGS = @XML_CPPFLAGS@
XML_LIBS = @XML_LIBS@
YACC = @YACC@
YFLAGS = @YFLAGS@
ZLIB_CFLAGS = @ZLIB_CFLAGS@
ZLIB_LIBS = @ZLIB_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
ac_ct_OBJC = @ac_ct_OBJC@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
curl_config = @curl_config@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
llvmconfig = @llvmconfig@
localedir = @localedir@
localstatedir = @localstatedir@
ltdl_LIBOBJS = @ltdl_LIBOBJS@
ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pcreconfig = @pcreconfig@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
subdirs = @subdirs@
sys_symbol_underscore = @sys_symbol_underscore@
sysconfdir = @sysconfdir@
systemdsystemunitdir = @systemdsystemunitdir@
target = @target@
target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
xmlconfig = @xmlconfig@
clamscan_SOURCES = \
clamscan.c \
global.h \
manager.c \
manager.h
AM_CFLAGS = @WERR_CFLAGS@
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/shared -I$(top_srcdir)/libclamav -I$(top_builddir)/libclamav -I$(top_srcdir)/libclamunrar_iface @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @PCRE_CPPFLAGS@ @CLAMSCAN_CPPFLAGS@
CLEANFILES = *.gcda *.gcno
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .o .obj
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign clamscan/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --foreign clamscan/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__maybe_remake_depfiles);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
install-binPROGRAMS: $(bin_PROGRAMS)
@$(NORMAL_INSTALL)
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
if test -n "$$list"; then \
echo " $(MKDIR_P) '$(DESTDIR)$(bindir)'"; \
$(MKDIR_P) "$(DESTDIR)$(bindir)" || exit 1; \
fi; \
for p in $$list; do echo "$$p $$p"; done | \
sed 's/$(EXEEXT)$$//' | \
while read p p1; do if test -f $$p \
|| test -f $$p1 \
; then echo "$$p"; echo "$$p"; else :; fi; \
done | \
sed -e 'p;s,.*/,,;n;h' \
-e 's|.*|.|' \
-e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
sed 'N;N;N;s,\n, ,g' | \
$(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
{ d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
if ($$2 == $$4) files[d] = files[d] " " $$1; \
else { print "f", $$3 "/" $$4, $$1; } } \
END { for (d in files) print "f", d, files[d] }' | \
while read type dir files; do \
if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
test -z "$$files" || { \
echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(bindir)$$dir'"; \
$(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(bindir)$$dir" || exit $$?; \
} \
; done
uninstall-binPROGRAMS:
@$(NORMAL_UNINSTALL)
@list='$(bin_PROGRAMS)'; test -n "$(bindir)" || list=; \
files=`for p in $$list; do echo "$$p"; done | \
sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
-e 's/$$/$(EXEEXT)/' \
`; \
test -n "$$list" || exit 0; \
echo " ( cd '$(DESTDIR)$(bindir)' && rm -f" $$files ")"; \
cd "$(DESTDIR)$(bindir)" && rm -f $$files
clean-binPROGRAMS:
@list='$(bin_PROGRAMS)'; test -n "$$list" || exit 0; \
echo " rm -f" $$list; \
rm -f $$list || exit $$?; \
test -n "$(EXEEXT)" || exit 0; \
list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
echo " rm -f" $$list; \
rm -f $$list
installcheck-binPROGRAMS: $(bin_PROGRAMS)
bad=0; pid=$$$$; list="$(bin_PROGRAMS)"; for p in $$list; do \
case ' $(AM_INSTALLCHECK_STD_OPTIONS_EXEMPT) ' in \
*" $$p "* | *" $(srcdir)/$$p "*) continue;; \
esac; \
f=`echo "$$p" | \
sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
for opt in --help --version; do \
if "$(DESTDIR)$(bindir)/$$f" $$opt >c$${pid}_.out \
2>c$${pid}_.err </dev/null \
&& test -n "`cat c$${pid}_.out`" \
&& test -z "`cat c$${pid}_.err`"; then :; \
else echo "$$f does not support $$opt" 1>&2; bad=1; fi; \
done; \
done; rm -f c$${pid}_.???; exit $$bad
clamscan$(EXEEXT): $(clamscan_OBJECTS) $(clamscan_DEPENDENCIES) $(EXTRA_clamscan_DEPENDENCIES)
@rm -f clamscan$(EXEEXT)
$(AM_V_CCLD)$(LINK) $(clamscan_OBJECTS) $(clamscan_LDADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clamscan.Po@am__quote@ # am--include-marker
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/manager.Po@am__quote@ # am--include-marker
$(am__depfiles_remade):
@$(MKDIR_P) $(@D)
@echo '# dummy' >$@-t && $(am__mv) $@-t $@
am--depfiles: $(am__depfiles_remade)
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
.c.obj:
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) distdir-am
distdir-am: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(PROGRAMS)
installdirs:
for dir in "$(DESTDIR)$(bindir)"; do \
test -z "$$dir" || $(MKDIR_P) "$$dir"; \
done
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-binPROGRAMS clean-generic clean-libtool mostlyclean-am
distclean: distclean-am
-rm -f ./$(DEPDIR)/clamscan.Po
-rm -f ./$(DEPDIR)/manager.Po
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am: install-binPROGRAMS
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am: installcheck-binPROGRAMS
maintainer-clean: maintainer-clean-am
-rm -f ./$(DEPDIR)/clamscan.Po
-rm -f ./$(DEPDIR)/manager.Po
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am: uninstall-binPROGRAMS
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \
clean-binPROGRAMS clean-generic clean-libtool cscopelist-am \
ctags ctags-am distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-binPROGRAMS \
install-data install-data-am install-dvi install-dvi-am \
install-exec install-exec-am install-html install-html-am \
install-info install-info-am install-man install-pdf \
install-pdf-am install-ps install-ps-am install-strip \
installcheck installcheck-am installcheck-binPROGRAMS \
installdirs maintainer-clean maintainer-clean-generic \
mostlyclean mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool pdf pdf-am ps ps-am tags tags-am uninstall \
uninstall-am uninstall-binPROGRAMS
.PRECIOUS: Makefile
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

View File

@ -1,210 +0,0 @@
#! /bin/bash
# clamscan - temporary wrapper script for .libs/clamscan
# Generated by libtool (GNU libtool) 2.4.6 Debian-2.4.6-15
#
# The clamscan program cannot be directly executed until all the libtool
# libraries that it depends on are installed.
#
# This wrapper script should never be moved out of the build directory.
# If it is, it will not operate correctly.
# Sed substitution that helps us do robust quoting. It backslashifies
# metacharacters that are still active within double-quoted strings.
sed_quote_subst='s|\([`"$\\]\)|\\\1|g'
# Be Bourne compatible
if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
emulate sh
NULLCMD=:
# Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
# is contrary to our usage. Disable this feature.
alias -g '${1+"$@"}'='"$@"'
setopt NO_GLOB_SUBST
else
case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
fi
BIN_SH=xpg4; export BIN_SH # for Tru64
DUALCASE=1; export DUALCASE # for MKS sh
# The HP-UX ksh and POSIX shell print the target directory to stdout
# if CDPATH is set.
(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
relink_command=""
# This environment variable determines our operation mode.
if test "$libtool_install_magic" = "%%%MAGIC variable%%%"; then
# install mode needs the following variables:
generated_by_libtool_version='2.4.6'
notinst_deplibs=' ../libclamav/libclamav.la'
else
# When we are sourced in execute mode, $file and $ECHO are already set.
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
file="$0"
# A function that is used when there is no print builtin or printf.
func_fallback_echo ()
{
eval 'cat <<_LTECHO_EOF
$1
_LTECHO_EOF'
}
ECHO="printf %s\\n"
fi
# Very basic option parsing. These options are (a) specific to
# the libtool wrapper, (b) are identical between the wrapper
# /script/ and the wrapper /executable/ that is used only on
# windows platforms, and (c) all begin with the string --lt-
# (application programs are unlikely to have options that match
# this pattern).
#
# There are only two supported options: --lt-debug and
# --lt-dump-script. There is, deliberately, no --lt-help.
#
# The first argument to this parsing function should be the
# script's ../libtool value, followed by no.
lt_option_debug=
func_parse_lt_options ()
{
lt_script_arg0=$0
shift
for lt_opt
do
case "$lt_opt" in
--lt-debug) lt_option_debug=1 ;;
--lt-dump-script)
lt_dump_D=`$ECHO "X$lt_script_arg0" | /bin/sed -e 's/^X//' -e 's%/[^/]*$%%'`
test "X$lt_dump_D" = "X$lt_script_arg0" && lt_dump_D=.
lt_dump_F=`$ECHO "X$lt_script_arg0" | /bin/sed -e 's/^X//' -e 's%^.*/%%'`
cat "$lt_dump_D/$lt_dump_F"
exit 0
;;
--lt-*)
$ECHO "Unrecognized --lt- option: '$lt_opt'" 1>&2
exit 1
;;
esac
done
# Print the debug banner immediately:
if test -n "$lt_option_debug"; then
echo "clamscan:clamscan:$LINENO: libtool wrapper (GNU libtool) 2.4.6 Debian-2.4.6-15" 1>&2
fi
}
# Used when --lt-debug. Prints its arguments to stdout
# (redirection is the responsibility of the caller)
func_lt_dump_args ()
{
lt_dump_args_N=1;
for lt_arg
do
$ECHO "clamscan:clamscan:$LINENO: newargv[$lt_dump_args_N]: $lt_arg"
lt_dump_args_N=`expr $lt_dump_args_N + 1`
done
}
# Core function for launching the target application
func_exec_program_core ()
{
if test -n "$lt_option_debug"; then
$ECHO "clamscan:clamscan:$LINENO: newargv[0]: $progdir/$program" 1>&2
func_lt_dump_args ${1+"$@"} 1>&2
fi
exec "$progdir/$program" ${1+"$@"}
$ECHO "$0: cannot exec $program $*" 1>&2
exit 1
}
# A function to encapsulate launching the target application
# Strips options in the --lt-* namespace from $@ and
# launches target application with the remaining arguments.
func_exec_program ()
{
case " $* " in
*\ --lt-*)
for lt_wr_arg
do
case $lt_wr_arg in
--lt-*) ;;
*) set x "$@" "$lt_wr_arg"; shift;;
esac
shift
done ;;
esac
func_exec_program_core ${1+"$@"}
}
# Parse options
func_parse_lt_options "$0" ${1+"$@"}
# Find the directory that this script lives in.
thisdir=`$ECHO "$file" | /bin/sed 's%/[^/]*$%%'`
test "x$thisdir" = "x$file" && thisdir=.
# Follow symbolic links until we get to the real thisdir.
file=`ls -ld "$file" | /bin/sed -n 's/.*-> //p'`
while test -n "$file"; do
destdir=`$ECHO "$file" | /bin/sed 's%/[^/]*$%%'`
# If there was a directory component, then change thisdir.
if test "x$destdir" != "x$file"; then
case "$destdir" in
[\\/]* | [A-Za-z]:[\\/]*) thisdir="$destdir" ;;
*) thisdir="$thisdir/$destdir" ;;
esac
fi
file=`$ECHO "$file" | /bin/sed 's%^.*/%%'`
file=`ls -ld "$thisdir/$file" | /bin/sed -n 's/.*-> //p'`
done
# Usually 'no', except on cygwin/mingw when embedded into
# the cwrapper.
WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=no
if test "$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR" = "yes"; then
# special case for '.'
if test "$thisdir" = "."; then
thisdir=`pwd`
fi
# remove .libs from thisdir
case "$thisdir" in
*[\\/].libs ) thisdir=`$ECHO "$thisdir" | /bin/sed 's%[\\/][^\\/]*$%%'` ;;
.libs ) thisdir=. ;;
esac
fi
# Try to get the absolute directory name.
absdir=`cd "$thisdir" && pwd`
test -n "$absdir" && thisdir="$absdir"
program='clamscan'
progdir="$thisdir/.libs"
if test -f "$progdir/$program"; then
# Add our own library path to LD_LIBRARY_PATH
LD_LIBRARY_PATH="/root/clamav/clamav-0.103.7+dfsg/libclamav/.libs:$LD_LIBRARY_PATH"
# Some systems cannot cope with colon-terminated LD_LIBRARY_PATH
# The second colon is a workaround for a bug in BeOS R4 sed
LD_LIBRARY_PATH=`$ECHO "$LD_LIBRARY_PATH" | /bin/sed 's/::*$//'`
export LD_LIBRARY_PATH
if test "$libtool_execute_magic" != "%%%MAGIC variable%%%"; then
# Run the actual program with our arguments.
func_exec_program ${1+"$@"}
fi
else
# The program doesn't exist.
$ECHO "$0: error: '$progdir/$program' does not exist" 1>&2
$ECHO "This script is just a wrapper for $program." 1>&2
$ECHO "See the libtool documentation for more information." 1>&2
exit 1
fi
fi

Binary file not shown.

163
clamscan/freshclam/dns.c Normal file
View File

@ -0,0 +1,163 @@
/*
* Copyright (C) 2013-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2013 Sourcefire, Inc.
* Copyright (C) 2004-2007 Tomasz Kojm <tkojm@clamav.net>2004 Tomasz Kojm <tkojm@clamav.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#if HAVE_CONFIG_H
#include "clamav-config.h"
#endif
#include <stdio.h>
#include "dns.h"
#ifdef HAVE_RESOLV_H
#include <string.h>
#include <sys/types.h>
#ifndef _WIN32
#include <netinet/in.h>
#include <arpa/nameser.h>
#endif
#include <resolv.h>
#include "output.h"
#ifndef PACKETSZ
#define PACKETSZ 512
#endif
char *
dnsquery(const char *domain, int qtype, unsigned int *ttl)
{
unsigned char answer[PACKETSZ], *answend, *pt;
char *txt, host[128];
int len, type;
unsigned int cttl, size, txtlen = 0;
if (ttl)
*ttl = 0;
if (res_init() < 0) {
logg("^res_init failed\n");
return NULL;
}
logg("*Querying %s\n", domain);
memset(answer, 0, PACKETSZ);
if ((len = res_query(domain, C_IN, qtype, answer, PACKETSZ)) < 0 || len > PACKETSZ) {
#ifdef FRESHCLAM_DNS_FIX
/* The DNS server in the SpeedTouch Alcatel 510 modem can't
* handle a TXT-query, but it can resolve an ANY-query to a
* TXT-record, so we try an ANY-query now. The thing we try
* to resolve normally only has a TXT-record anyway.
*/
memset(answer, 0, PACKETSZ);
if (qtype == T_TXT)
qtype = T_ANY;
if ((len = res_query(domain, C_IN, qtype, answer, PACKETSZ)) < 0) {
logg("%cCan't query %s\n",
(qtype == T_TXT || qtype == T_ANY) ? '^' : '*', domain);
return NULL;
}
#else
logg("%cCan't query %s\n", (qtype == T_TXT) ? '^' : '*', domain);
return NULL;
#endif
}
if (qtype != T_TXT && qtype != T_ANY) {
if (ttl)
*ttl = 2;
return NULL;
}
answend = answer + len;
pt = answer + sizeof(HEADER);
if ((len = dn_expand(answer, answend, pt, host, sizeof(host))) < 0) {
logg("^dn_expand failed\n");
return NULL;
}
pt += len;
if (pt > answend - 4) {
logg("^Bad (too short) DNS reply\n");
return NULL;
}
GETSHORT(type, pt);
if (type != qtype) {
logg("^Broken DNS reply.\n");
return NULL;
}
pt += INT16SZ; /* class */
size = 0;
do { /* recurse through CNAME rr's */
pt += size;
if ((len = dn_expand(answer, answend, pt, host, sizeof(host))) < 0) {
logg("^second dn_expand failed\n");
return NULL;
}
pt += len;
if (pt > answend - 10) {
logg("^Bad (too short) DNS reply\n");
return NULL;
}
GETSHORT(type, pt);
pt += INT16SZ; /* class */
GETLONG(cttl, pt);
GETSHORT(size, pt);
if (pt + size < answer || pt + size > answend) {
logg("^DNS rr overflow\n");
return NULL;
}
} while (type == T_CNAME);
if (type != T_TXT) {
logg("^Not a TXT record\n");
return NULL;
}
if (!size || (txtlen = *pt) >= size || !txtlen) {
logg("^Broken TXT record (txtlen = %d, size = %d)\n", txtlen, size);
return NULL;
}
if (!(txt = (char *)malloc(txtlen + 1)))
return NULL;
memcpy(txt, pt + 1, txtlen);
txt[txtlen] = 0;
if (ttl)
*ttl = cttl;
return txt;
}
#else
char *
dnsquery(const char *domain, int qtype, unsigned int *ttl)
{
if (ttl)
*ttl = 1; /* ttl of 1 combined with a NULL return distinguishes a failed lookup from DNS queries not being available */
return NULL;
}
#endif

40
clamscan/freshclam/dns.h Normal file
View File

@ -0,0 +1,40 @@
/*
* Copyright (C) 2013-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2013 Sourcefire, Inc.
* Copyright (C) 2004-2007 Tomasz Kojm <tkojm@clamav.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef __DNS_H
#define __DNS_H
#if HAVE_CONFIG_H
#include "clamav-config.h"
#endif
#ifdef HAVE_RESOLV_H
#include <sys/types.h>
#ifndef _WIN32
#include <netinet/in.h>
#include <arpa/nameser.h>
#endif
#include <resolv.h>
#endif
char *dnsquery(const char *domain, int qtype, unsigned int *ttl);
#endif

View File

@ -0,0 +1,79 @@
/*
* By Per Jessen <per@computer.org> with changes by the ClamAV team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#if HAVE_CONFIG_H
#include "clamav-config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <string.h>
#include <errno.h>
#include "output.h"
#include "optparser.h"
#include "execute.h"
#define MAX_CHILDREN 5
int g_active_children;
void execute(const char *type, const char *text, int bDaemonized)
{
int ret;
if (!bDaemonized) {
if (sscanf(text, "EXIT_%d", &ret) == 1) {
logg("*%s: EXIT_%d\n", type, ret);
exit(ret);
}
if (system(text) == -1)
logg("%s: system(%s) failed\n", type, text);
return;
}
#ifdef _WIN32
if (system(text) == -1) {
logg("^%s: couldn't execute \"%s\".\n", type, text);
return;
}
#else
if (g_active_children < MAX_CHILDREN) {
pid_t pid;
switch (pid = fork()) {
case 0:
if (-1 == system(text)) {
logg("^%s: couldn't execute \"%s\".\n", type, text);
}
exit(0);
case -1:
logg("^%s::fork() failed, %s.\n", type, strerror(errno));
break;
default:
g_active_children++;
}
} else {
logg("^%s: already %d processes active.\n", type, g_active_children);
}
#endif
}

View File

@ -0,0 +1,29 @@
/*
* By Per Jessen <per@computer.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef __EXECUTE_H
#define __EXECUTE_H
#include "optparser.h"
extern int g_active_children;
void execute(const char *type, const char *text, int bDaemonized);
#endif

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,264 @@
/*
* Copyright (C) 2013-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2013 Sourcefire, Inc.
* Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef __LIBFRESHCLAM_H
#define __LIBFRESHCLAM_H
#include "clamav-types.h"
/*
* FreshClam configuration flag options.
*/
// clang-format off
#define FC_CONFIG_MSG_DEBUG 0x1 // Enable debug messages.
#define FC_CONFIG_MSG_VERBOSE 0x2 // Enable verbose mode.
#define FC_CONFIG_MSG_QUIET 0x4 // Only output error messages.
#define FC_CONFIG_MSG_NOWARN 0x8 // Don't output warning messages.
#define FC_CONFIG_MSG_STDOUT 0x10 // Write to stdout instead of stderr.
#define FC_CONFIG_MSG_SHOWPROGRESS 0x20 // Show download progress percentage.
#define FC_CONFIG_LOG_VERBOSE 0x1 // Be verbose in log output as well.
#define FC_CONFIG_LOG_NOWARN 0x2 // Don't log warning messages.
#define FC_CONFIG_LOG_TIME 0x4 // Include timestamp in log messages.
#define FC_CONFIG_LOG_ROTATE 0x8 // Rotate logs if they exceed MaxLogSize.
#define FC_CONFIG_LOG_SYSLOG 0x10 // Enable Syslog.
// clang-format on
/* freshclam config options */
typedef struct fc_config_ {
uint32_t msgFlags; /**< FC_CONFIG_MSG bitflag field. */
uint32_t logFlags; /**< FC_CONFIG_LOG bitflag field. */
uint64_t maxLogSize; /**< Max size of logfile, if enabled. */
uint32_t maxAttempts; /**< Max # of download attempts. Must be > 0 */
uint32_t connectTimeout; /**< CURLOPT_CONNECTTIMEOUT, Timeout for the. connection phase (seconds). */
uint32_t requestTimeout; /**< CURLOPT_TIMEOUT, Timeout for libcurl transfer operation (seconds). */
uint32_t bCompressLocalDatabase; /**< If set, will apply gz compression to CLD databases. */
const char *logFile; /**< (optional) Filepath to use for log output, if desired. */
const char *logFacility; /**< (optional) System logging facility (I.e. "syslog"), if desired. */
const char *localIP; /**< (optional) client IP for multihomed systems. */
const char *userAgent; /**< (optional) Alternative User Agent. */
const char *proxyServer; /**< (optional) http(s) url for proxy server. */
uint16_t proxyPort; /**< (optional) Proxy server port #. */
const char *proxyUsername; /**< (optional) Username for proxy server authentication .*/
const char *proxyPassword; /**< (optional) Password for proxy server authentication. */
const char *databaseDirectory; /**< Filepath of database directory. */
const char *tempDirectory; /**< Filepath to store temp files. */
} fc_config;
typedef enum fc_error_tag {
FC_SUCCESS = 0,
FC_UPTODATE = 1,
FC_EINIT,
FC_EDIRECTORY,
FC_EFILE,
FC_ECONNECTION,
FC_EEMPTYFILE,
FC_EBADCVD,
FC_ETESTFAIL,
FC_ECONFIG,
FC_EDBDIRACCESS,
FC_EFAILEDGET,
FC_EMIRRORNOTSYNC,
FC_ELOGGING,
FC_EFAILEDUPDATE,
FC_EMEM,
FC_EARG,
FC_EFORBIDDEN,
FC_ERETRYLATER,
FC_ERROR
} fc_error_t;
/**
* @brief Translate an FC_<code> to a human readable message.
*
* @param fcerror fc_error_t code
* @return const char * message.
*/
const char *fc_strerror(fc_error_t fcerror);
/**
* @brief Configure libfreshclam.
*
* This will initialize libcurl with `curl_global_init`.
* This should only be called once per application.
*
* If you are initializing libfreshclam from a Windows DLL you should not
* initialize it from DllMain or a static initializer because Windows holds
* the loader lock during that time and it could cause a deadlock.
*
* @param config Configuration options.
* @return fc_error_t FC_SUCCESS if success.
* @return fc_error_t FC_ELOGGING if there is an issue writing to the log.
*/
fc_error_t fc_initialize(fc_config *config);
/**
* @brief Cleanup libfreshclam features.
*
* This will call `curl_global_cleanup`.
* This should only be invoke once at the end of your
* application.
*/
void fc_cleanup(void);
/**
* @brief Delete CVD & CLD files from database directory that aren't in the provided list.
*
* Will not touch files other than CLD and CVD files.
*
* @param databaseList List of official databases to keep.
* @param nDatabases Number of databses in list.
* @return fc_error_t FC_SUCCESS if success.
* @return fc_error_t FC_EDBDIRACCESS if database access issue occured.
* @return fc_error_t FC_EARG if invalid arguments.
*/
fc_error_t fc_prune_database_directory(
char **databaseList,
uint32_t nDatabases);
/**
* @brief Test if database loads without errors.
*
* @param dbFilename Filename of database.
* @param bBytecodeEnabled Non-zero if database has bytecode signatures, and should be tested.
* @return fc_error_t FC_SUCCESS if loaded correctly.
* @return fc_error_t FC_EARG callback was passed invalid arguments.
*/
fc_error_t fc_test_database(
const char *dbFilename,
int bBytecodeEnabled);
/**
* @brief Query Update Info via DNS to get database version info, and ClamAV version info.
*
* Caller must free dnsUpdateInfo.
*
* @param dnsUpdateInfoServer (optional) The DNS server to query for Update Info. If NULL, will disable DNS update info query feature.
* @param dnsUpdateInfo [out] The Update Info DNS reply string.
* @param newVersion [out] New version of ClamAV available.
* @return fc_error_t FC_SUCCESS if success.
* @return fc_error_t FC_EARG if invalid args.
* @return fc_error_t FC_EFAILEDGET if error or disabled and should fall back to HTTP mode for update info.
*/
fc_error_t fc_dns_query_update_info(
const char *dnsUpdateInfoServer,
char **dnsUpdateInfo,
char **newVersion);
/**
* @brief Download a database directly from a URL.
*
* Whole file download. Does not support incremental update.
*
* @param url Database URL (http, https, file).
* @param context Application context to pass to fccb_download_complete callback.
* @param bUpdated [out] Non-zero if database was updated to new version or is entirely new.
* @return fc_error_t FC_SUCCESS if database downloaded and callback executed successfully.
*/
fc_error_t fc_download_url_database(
const char *urlDatabase,
void *context,
int *bUpdated);
/**
* @brief Download databases directly from a URLs.
*
* @param urlDatabaseList List of database URLs
* @param nUrlDatabases Number of URLs in list.
* @param context Application context to pass to fccb_download_complete callback.
* @param nUpdated [out] Number of databases that were updated.
* @return fc_error_t FC_SUCCESS if database downloaded and callback executed successfully.
*/
fc_error_t fc_download_url_databases(
char **urlDatabaseList,
uint32_t nUrlDatabases,
void *context,
uint32_t *nUpdated);
/**
* @brief Update specific official database, given list of update servers.
*
* @param dbName CVD/CLD database name, excluding file extension.
* @param serverList String array of update servers.
* @param nServers Number of servers in list.
* @param dnsUpdateInfoServer DNS server for update info check. May be NULL to disable use of DNS.
* @param bScriptedUpdates Enable incremental/updates (should not be enabled for PrivateMirrors).
* @param context Application context to pass to fccb_download_complete callback.
* @param bUpdated [out] Non-zero if database was updated to new version or is entirely new.
* @return fc_error_t FC_SUCCESS if database downloaded and callback executed successfully.
*/
fc_error_t fc_update_database(
const char *database,
char **serverList,
uint32_t nServers,
int bPrivateMirror,
const char *dnsUpdateInfo,
int bScriptedUpdates,
void *context,
int *bUpdated);
/**
* @brief Update list of official databases, given list of update servers.
*
* @param dbNames String array of CVD/CLD database names, excluding file extensions.
* @param nDbNames Number of names in array.
* @param serverList String array of update servers.
* @param nServers Number of servers in list.
* @param dnsUpdateInfoServer DNS server for update info check. May be NULL to disable use of DNS.
* @param bScriptedUpdates Enable incremental/updates (should not be enabled for PrivateMirrors).
* @param context Application context to pass to fccb_download_complete callback.
* @param nUpdated [out] Number of databases that were updated.
* @return fc_error_t FC_SUCCESS if database downloaded and callback executed successfully.
*/
fc_error_t fc_update_databases(
char **databaseList,
uint32_t nDatabases,
char **serverList,
uint32_t nServers,
int bPrivateMirror,
const char *dnsUpdateInfo,
int bScriptedUpdates,
void *context,
uint32_t *nUpdated);
/* ----------------------------------------------------------------------------
* Callback function type definitions.
*/
/**
* @brief FreshClam callback Download Complete
*
* Called after each database has been downloaded or updated.
*
* @param dbFilepath Filename of the downloaded database in database directory.
* @param context Opaque application provided data.
* @return fc_error_t FC_SUCCESS if callback action was successful.
* @return fc_error_t FC_EARG callback was passed invalid arguments.
* @return fc_error_t FC_ETESTFAIL if callback action failed and libfreshclam should abort any additional updates.
*/
typedef fc_error_t (*fccb_download_complete)(const char *dbFilename, void *context);
/**
* @brief Set a custom Download Complete callback function.
*
* @param callback The callback function pointer.
*/
extern void fc_set_fccb_download_complete(fccb_download_complete callback);
#endif // __LIBFRESHCLAM_H

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,92 @@
/*
* Copyright (C) 2013-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2013 Sourcefire, Inc.
* Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef __LIBFRESHCLAM_INTERNAL_H
#define __LIBFRESHCLAM_INTERNAL_H
#include "clamav-types.h"
// clang-format off
#define DNS_UPDATEINFO_NEWVERSION 0
#define DNS_UPDATEINFO_RECORDTIME 3
#define DNS_UPDATEINFO_VERSIONWARNING 4
#define DNS_UPDATEINFO_REMOTEFLEVEL 5
#define DNS_EXTRADBINFO_RECORDTIME 1
// clang-format on
#define SIZEOF_UUID_V4 37 /** For uuid_v4_gen(), includes NULL byte */
#define MIRRORS_DAT_MAGIC "FreshClamData" /** Magic bytes for freshclam.dat found before freshclam_dat_v1_t */
typedef struct _freshclam_dat_v1 {
uint32_t version; /** version of this dat format */
char uuid[SIZEOF_UUID_V4]; /** uuid to be used in user-agent */
time_t retry_after; /** retry date. If > 0, don't update until after this date */
} freshclam_dat_v1_t;
/* ----------------------------------------------------------------------------
* Internal libfreshclam globals
*/
extern fccb_download_complete g_cb_download_complete;
extern char *g_localIP;
extern char *g_userAgent;
extern char *g_proxyServer;
extern uint16_t g_proxyPort;
extern char *g_proxyUsername;
extern char *g_proxyPassword;
extern char *g_tempDirectory;
extern char *g_databaseDirectory;
extern uint32_t g_maxAttempts;
extern uint32_t g_connectTimeout;
extern uint32_t g_requestTimeout;
extern uint32_t g_bCompressLocalDatabase;
extern freshclam_dat_v1_t *g_freshclamDat;
fc_error_t load_freshclam_dat(void);
fc_error_t save_freshclam_dat(void);
fc_error_t new_freshclam_dat(void);
fc_error_t updatedb(
const char *database,
const char *dnsUpdateInfo,
char *server,
int bPrivateMirror,
void *context,
int bScriptedUpdates,
int logerr,
int *signo,
char **dbFilename,
int *bUpdated);
fc_error_t updatecustomdb(
const char *url,
void *context,
int logerr,
int *signo,
char **dbFilename,
int *bUpdated);
#endif // __LIBFRESHCLAM_INTERNAL_H

176
clamscan/freshclam/notify.c Normal file
View File

@ -0,0 +1,176 @@
/*
* Copyright (C) 2013-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2002-2013 Sourcefire, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#if HAVE_CONFIG_H
#include "clamav-config.h"
#endif
#include <stdio.h>
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#ifndef _WIN32
#include <sys/socket.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#endif
#include <string.h>
#include <errno.h>
#include "optparser.h"
#include "output.h"
#include "clamdcom.h"
#include "notify.h"
int clamd_connect(const char *cfgfile, const char *option)
{
#ifndef _WIN32
struct sockaddr_un server;
#endif
struct addrinfo hints, *res, *p;
char port[6];
int ret;
struct optstruct *opts;
const struct optstruct *opt;
int sockd;
if ((opts = optparse(cfgfile, 0, NULL, 1, OPT_CLAMD, 0, NULL)) == NULL) {
logg("!%s: Can't find or parse configuration file %s\n", option,
cfgfile);
return -11;
}
#ifndef _WIN32
if ((opt = optget(opts, "LocalSocket"))->enabled) {
memset(&server, 0x00, sizeof(server));
server.sun_family = AF_UNIX;
strncpy(server.sun_path, opt->strarg, sizeof(server.sun_path));
server.sun_path[sizeof(server.sun_path) - 1] = '\0';
if ((sockd = socket(AF_UNIX, SOCK_STREAM, 0)) < 0) {
logg("^Clamd was NOT notified: Can't create socket endpoint for %s: %s\n",
opt->strarg, strerror(errno));
optfree(opts);
return -1;
}
if (connect(sockd, (struct sockaddr *)&server,
sizeof(struct sockaddr_un)) < 0) {
logg("^Clamd was NOT notified: Can't connect to clamd through %s: %s\n",
opt->strarg, strerror(errno));
closesocket(sockd);
optfree(opts);
return -11;
}
return sockd;
} else
#endif
if ((opt = optget(opts, "TCPSocket"))->enabled) {
memset(&hints, 0, sizeof(hints));
hints.ai_family = AF_UNSPEC;
hints.ai_socktype = SOCK_STREAM;
hints.ai_flags = AI_PASSIVE;
snprintf(port, sizeof(port), "%u", (unsigned int)opt->numarg);
port[5] = 0;
opt = optget(opts, "TCPAddr");
while (opt) {
ret = getaddrinfo(opt->strarg, port, &hints, &res);
if (ret) {
logg("!%s: Can't resolve hostname %s (%s)\n", option,
opt->strarg ? opt->strarg : "",
(ret ==
EAI_SYSTEM)
? strerror(errno)
: gai_strerror(ret));
opt = opt->nextarg;
continue;
}
for (p = res; p != NULL; p = p->ai_next) {
if ((sockd = socket(p->ai_family, p->ai_socktype, p->ai_protocol)) < 0) {
logg("!%s: Can't create TCP socket to connect to %s: %s\n",
option, opt->strarg ? opt->strarg : "localhost", strerror(errno));
continue;
}
if (connect(sockd, p->ai_addr, p->ai_addrlen) == -1) {
logg("!%s: Can't connect to clamd on %s:%s: %s\n", option,
opt->strarg ? opt->strarg : "localhost", port, strerror(errno));
closesocket(sockd);
continue;
}
optfree(opts);
freeaddrinfo(res);
return sockd;
}
freeaddrinfo(res);
opt = opt->nextarg;
}
} else {
logg("!%s: No communication socket specified in %s\n", option,
cfgfile);
optfree(opts);
return 1;
}
optfree(opts);
return -1;
}
int notify(const char *cfgfile)
{
char buff[20];
int sockd, bread;
if ((sockd = clamd_connect(cfgfile, "NotifyClamd")) < 0)
return 1;
if (sendln(sockd, "RELOAD", 7) < 0) {
logg("!NotifyClamd: Could not write to clamd socket: %s\n", strerror(errno));
closesocket(sockd);
return 1;
}
memset(buff, 0, sizeof(buff));
if ((bread = recv(sockd, buff, sizeof(buff), 0)) > 0) {
if (!strstr(buff, "RELOADING")) {
logg("!NotifyClamd: Unknown answer from clamd: '%s'\n", buff);
closesocket(sockd);
return -1;
}
}
closesocket(sockd);
logg("Clamd successfully notified about the update.\n");
return 0;
}

View File

@ -0,0 +1,27 @@
/*
* Copyright (C) 2013-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
* Copyright (C) 2007-2013 Sourcefire, Inc.
* Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301, USA.
*/
#ifndef __NOTIFY_H
#define __NOTIFY_H
int notify(const char *cfgfile);
int clamd_connect(const char *cfgfile, const char *option);
#endif

View File

@ -1,732 +0,0 @@
#
# Copyright (C) 2013-2022 Cisco Systems, Inc. and/or its affiliates. All rights reserved.
# Copyright (C) 2007-2013 Sourcefire, Inc.
# Copyright (C) 2002-2007 Tomasz Kojm <tkojm@clamav.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
# MA 02110-1301, USA.
AM_YFLAGS = -d
AM_LFLAGS = -d
AM_CPPFLAGS = -I$(top_srcdir) -I@srcdir@/nsis $(LTDLINCL)
AM_CFLAGS=@WERR_CFLAGS@
lib_LTLIBRARIES =
COMMON_CLEANFILES =
EXTRA_DIST = c++/Makefile.nollvm.in
if ENABLE_UNRAR
AM_CPPFLAGS += -DWARN_DLOPEN_FAIL
libclamunrar_la_CXXFLAGS = $(AM_CPPFLAGS) -DRARDLL -Wno-logical-op-parentheses -Wno-switch -Wno-dangling-else
libclamunrar_la_LDFLAGS = @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
if VERSIONSCRIPT
libclamunrar_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclamunrar/libclamunrar.map
endif
libclamunrar_la_SOURCES = \
../libclamunrar/archive.cpp \
../libclamunrar/arcread.cpp \
../libclamunrar/blake2s.cpp \
../libclamunrar/cmddata.cpp \
../libclamunrar/consio.cpp \
../libclamunrar/crc.cpp \
../libclamunrar/crypt.cpp \
../libclamunrar/dll.cpp \
../libclamunrar/encname.cpp \
../libclamunrar/errhnd.cpp \
../libclamunrar/extinfo.cpp \
../libclamunrar/extract.cpp \
../libclamunrar/filcreat.cpp \
../libclamunrar/file.cpp \
../libclamunrar/filefn.cpp \
../libclamunrar/filestr.cpp \
../libclamunrar/find.cpp \
../libclamunrar/getbits.cpp \
../libclamunrar/global.cpp \
../libclamunrar/hash.cpp \
../libclamunrar/headers.cpp \
../libclamunrar/list.cpp \
../libclamunrar/match.cpp \
../libclamunrar/options.cpp \
../libclamunrar/pathfn.cpp \
../libclamunrar/qopen.cpp \
../libclamunrar/rar.cpp \
../libclamunrar/rarvm.cpp \
../libclamunrar/rawread.cpp \
../libclamunrar/rdwrfn.cpp \
../libclamunrar/recvol.cpp \
../libclamunrar/resource.cpp \
../libclamunrar/rijndael.cpp \
../libclamunrar/rs.cpp \
../libclamunrar/rs16.cpp \
../libclamunrar/scantree.cpp \
../libclamunrar/secpassword.cpp \
../libclamunrar/sha1.cpp \
../libclamunrar/sha256.cpp \
../libclamunrar/smallfn.cpp \
../libclamunrar/strfn.cpp \
../libclamunrar/strlist.cpp \
../libclamunrar/system.cpp \
../libclamunrar/threadpool.cpp \
../libclamunrar/timefn.cpp \
../libclamunrar/ui.cpp \
../libclamunrar/unicode.cpp \
../libclamunrar/unpack.cpp \
../libclamunrar/volume.cpp
lib_LTLIBRARIES += libclamunrar.la
EXTRA_DIST += @top_srcdir@/libclamunrar/libclamunrar.map
libclamunrar_iface_la_CXXFLAGS = $(AM_CPPFLAGS) -I@top_srcdir@/libclamunrar
libclamunrar_iface_la_LIBADD = libclamunrar.la
libclamunrar_iface_la_LDFLAGS = -module @TH_SAFE@ -version-info @LIBCLAMAV_VERSION@ -no-undefined
if VERSIONSCRIPT
libclamunrar_iface_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclamunrar_iface/libclamunrar_iface.map
endif
libclamunrar_iface_la_SOURCES = \
../libclamunrar_iface/unrar_iface.cpp \
../libclamunrar_iface/unrar_iface.h
lib_LTLIBRARIES += libclamunrar_iface.la
EXTRA_DIST += @top_srcdir@/libclamunrar_iface/libclamunrar_iface.map
IFACELIBADD = -dlopen libclamunrar_iface.la
IFACEDEP = libclamunrar_iface.la
endif
# We need libclamunrar_iface in the include path even if we don't build it,
# because we #include "unrar_iface.h"
# We still want to support unrar if it is later provided, which is why we don't
# just wrap all the unrar scanners code with #ifdefs.
IFACE_CFLAGS = -I@top_srcdir@/libclamunrar_iface
if USE_INTERNAL_MSPACK
# libmspack version: 0.8alpha (1:0:1)
LIBMSPACK_VERSION = 1:0:1
libclammspack_la_CFLAGS = -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Wno-unused-parameter -I@top_srcdir@/libclammspack/mspack
libclammspack_la_LDFLAGS = -version-info $(LIBMSPACK_VERSION) -no-undefined -export-symbols-regex '^mspack_'
# if VERSIONSCRIPT
# libclammspack_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclammspack/libclammspack.map
# endif
libclammspack_la_SOURCES = \
../libclammspack/mspack/cab.h \
../libclammspack/mspack/cabc.c \
../libclammspack/mspack/cabd.c \
../libclammspack/mspack/chm.h \
../libclammspack/mspack/chmc.c \
../libclammspack/mspack/chmd.c \
../libclammspack/mspack/crc32.c \
../libclammspack/mspack/crc32.h \
../libclammspack/mspack/des.h \
../libclammspack/mspack/hlp.h \
../libclammspack/mspack/hlpc.c \
../libclammspack/mspack/hlpd.c \
../libclammspack/mspack/kwaj.h \
../libclammspack/mspack/kwajc.c \
../libclammspack/mspack/kwajd.c \
../libclammspack/mspack/lit.h \
../libclammspack/mspack/litc.c \
../libclammspack/mspack/litd.c \
../libclammspack/mspack/lzss.h \
../libclammspack/mspack/lzssd.c \
../libclammspack/mspack/lzx.h \
../libclammspack/mspack/lzxc.c \
../libclammspack/mspack/lzxd.c \
../libclammspack/mspack/mspack.h \
../libclammspack/mspack/mszip.h \
../libclammspack/mspack/mszipc.c \
../libclammspack/mspack/mszipd.c \
../libclammspack/mspack/oab.h \
../libclammspack/mspack/oabc.c \
../libclammspack/mspack/oabd.c \
../libclammspack/mspack/qtm.h \
../libclammspack/mspack/qtmd.c \
../libclammspack/mspack/readbits.h \
../libclammspack/mspack/readhuff.h \
../libclammspack/mspack/sha.h \
../libclammspack/mspack/system.c \
../libclammspack/mspack/system.h \
../libclammspack/mspack/szdd.h \
../libclammspack/mspack/szddc.c \
../libclammspack/mspack/szddd.c
lib_LTLIBRARIES += libclammspack.la
# EXTRA_DIST += @top_srcdir@/libclammspack/libclammspack.map
MSPACK_CFLAGS = -I@top_srcdir@/libclammspack/mspack -DHAVE_INTERNAL_MSPACK
MSPACKLIBADD = -lclammspack
MSPACKDEP = libclammspack.la
else
MSPACK_CFLAGS = $(LIBMSPACK_CFLAGS)
MSPACKLIBADD = $(LIBMSPACK_LIBS)
MSPACKDEP =
libmspack/Makefile:
.PHONY: distdir distclean maintainer-clean
distdir:
echo "make distdir requires --with-system-libmspack=no"
exit 1
# nothing to do here, rules must exist for distclean to succeed
distclean:
-rm -f Makefile
maintainer-clean:
distclean-recursive distdir maintainer-clean-recursive: libmspack/Makefile
endif
libclamav_internal_utils_la_SOURCES= \
conv.c \
conv.h \
crypto.c \
iowrap.c \
iowrap.h \
others_common.c \
others.h \
qsort.c \
regex/cclass.h \
regex/cname.h \
regex/regcomp.c \
regex/regerror.c \
regex/regex.h \
regex/regex2.h \
regex/regexec.c \
regex/regfree.c \
regex/strlcpy.c \
regex/utils.h \
str.c \
str.h \
strlcat.c
libclamav_internal_utils_la_LDFLAGS=-static @SSL_LDFLAGS@ @JSON_LDFLAGS@
libclamav_internal_utils_la_CFLAGS=$(AM_CFLAGS) $(IFACE_CFLAGS) -fPIC -DPIC @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @PCRE_CPPFLAGS@ @XML_CPPFLAGS@
libclamav_internal_utils_la_LIBADD=@SSL_LIBS@ @PCRE_LIBS@
SUBDIRS=
if ENABLE_LLVM
LLVMLIBADD=c++/libclamavcxx.la -lstdc++ -lm
LLVMDEP=c++/libclamavcxx.la
SUBDIRS+=c++
else
LLVMLIBADD=libclamav_nocxx.la
LLVMDEP=libclamav_nocxx.la
c++/Makefile: c++/Makefile.nollvm.in
$(AM_V_at) cp $< $@
distclean-recursive distdir maintainer-clean-recursive: c++/Makefile
endif
if ENABLE_YARA
YARA_CFLAGS=-DHAVE_YARA
endif
libclamav_nocxx_la_SOURCES = bytecode_nojit.c
libclamav_nocxx_la_CFLAGS=$(AM_CFLAGS) $(IFACE_CFLAGS) @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @ZLIB_CFLAGS@ @PCRE_CPPFLAGS@
libclamav_la_LIBADD = @SSL_LIBS@ @JSON_LIBS@ @PCRE_LIBS@ @LIBCLAMAV_LIBS@ @ZLIB_LIBS@ @LIBLTDL@ $(XML_LIBS) $(IFACELIBADD) $(MSPACKLIBADD) $(LLVMLIBADD) libclamav_internal_utils.la @THREAD_LIBS@ @LIBM@
libclamav_la_DEPENDENCIES = @LTDLDEPS@ $(IFACEDEP) $(LLVMDEP) $(MSPACKDEP) libclamav_internal_utils.la
libclamav_la_CFLAGS = $(IFACE_CFLAGS) $(MSPACK_CFLAGS) $(AM_CFLAGS) $(YARA_CFLAGS) -DSEARCH_LIBDIR=\"$(libdir)\" @LIBCLAMAV_CPPFLAGS@ @SSL_CPPFLAGS@ @JSON_CPPFLAGS@ @ZLIB_CFLAGS@ @PCRE_CPPFLAGS@ @XML_CPPFLAGS@
libclamav_la_LDFLAGS = @SSL_LDFLAGS@ @TH_SAFE@ @JSON_LDFLAGS@ @LIBICONV@ $(XML_LIBS) -version-info @LIBCLAMAV_VERSION@ -no-undefined
if VERSIONSCRIPT
libclamav_la_LDFLAGS += -Wl,@VERSIONSCRIPTFLAG@,@top_srcdir@/libclamav/libclamav.map
endif
include_HEADERS = clamav.h
libclamav_la_SOURCES = \
matcher-ac.c \
matcher-ac.h \
matcher-bm.c \
matcher-bm.h \
matcher-hash.c \
matcher-hash.h \
matcher.c \
matcher.h \
others.c \
others.h \
readdb.c \
readdb.h \
cvd.c \
cvd.h \
dsig.c \
dsig.h \
scanners.c \
scanners.h \
textdet.c \
textdet.h \
filetypes.c \
filetypes.h \
filetypes_int.h \
rtf.c \
rtf.h \
blob.c \
blob.h \
mbox.c \
mbox.h \
message.c \
message.h \
table.c \
table.h \
text.c \
text.h \
ole2_extract.c \
ole2_extract.h \
vba_extract.c \
vba_extract.h \
xlm_extract.c \
xlm_extract.h \
msexpand.c \
msexpand.h \
pe.c \
pe.h \
pe_icons.c \
pe_icons.h \
pe_structs.h \
disasm.c \
disasm.h \
disasm-common.h \
disasmpriv.h \
upx.c \
upx.h \
htmlnorm.c \
htmlnorm.h \
libmspack.c \
libmspack.h \
rebuildpe.c \
rebuildpe.h \
petite.c \
petite.h \
wwunpack.c \
wwunpack.h \
unsp.c \
unsp.h \
aspack.c \
aspack.h \
packlibs.c \
packlibs.h \
fsg.c \
fsg.h \
mew.c \
mew.h \
upack.c \
upack.h \
line.c \
line.h \
untar.c \
untar.h \
unzip.c \
unzip.h \
ooxml.c \
ooxml.h \
inflate64.c \
inflate64.h \
inffixed64.h \
inflate64_priv.h \
special.c \
special.h \
binhex.c \
binhex.h \
is_tar.c \
is_tar.h \
tnef.c \
tnef.h \
autoit.c \
autoit.h \
unarj.c \
unarj.h \
nsis/bzlib.c \
nsis/bzlib_private.h \
nsis/nsis_bzlib.h \
nsis/nulsft.c \
nsis/nulsft.h \
nsis/infblock.c \
nsis/nsis_zconf.h \
nsis/nsis_zlib.h \
nsis/nsis_zutil.h \
pdf.c \
pdf.h \
pdfng.c \
pdfdecode.c \
pdfdecode.h \
spin.c \
spin.h \
yc.c \
yc.h \
elf.c \
elf.h \
execs.h \
execs.c \
sis.c \
sis.h \
uuencode.c \
uuencode.h \
phishcheck.c \
phishcheck.h \
phish_domaincheck_db.c \
phish_domaincheck_db.h \
phish_whitelist.c \
phish_whitelist.h \
iana_cctld.h \
iana_tld.h \
regex_list.c \
regex_list.h \
regex_suffix.c \
regex_suffix.h \
entconv.c \
entconv.h \
entitylist.h \
encoding_aliases.h \
hashtab.c \
hashtab.h \
dconf.c \
dconf.h \
lzma_iface.c \
lzma_iface.h \
7z_iface.c \
7z_iface.h \
7z/7z.h \
7z/7zAlloc.c \
7z/7zAlloc.h \
7z/7zBuf.c \
7z/7zBuf.h \
7z/7zBuf2.c \
7z/7zCrc.c \
7z/7zCrc.h \
7z/7zDec.c \
7z/7zFile.c \
7z/7zFile.h \
7z/7zIn.c \
7z/7zStream.c \
7z/7zVersion.h \
7z/Bcj2.c \
7z/Bcj2.h \
7z/Bra.c \
7z/Bra.h \
7z/Bra86.c \
7z/CpuArch.h \
7z/Lzma2Dec.c \
7z/Lzma2Dec.h \
7z/LzmaDec.c \
7z/LzmaDec.h \
7z/Ppmd.h \
7z/Ppmd7.c \
7z/Ppmd7.h \
7z/Ppmd7Dec.c \
7z/Types.h \
7z/Xz.c \
7z/Xz.h \
7z/XzCrc64.c \
7z/XzCrc64.h \
7z/XzDec.c \
7z/XzIn.c \
7z/Delta.c \
7z/Delta.h \
7z/Alloc.h \
7z/BraIA64.c \
7z/CpuArch.c \
7z/CpuArch.h \
7z/7zCrcOpt.c \
7z/RotateDefs.h \
explode.c \
explode.h \
textnorm.c \
textnorm.h \
dlp.c \
dlp.h \
jsparse/js-norm.c \
jsparse/js-norm.h \
jsparse/lexglobal.h \
jsparse/textbuf.h \
uniq.c \
uniq.h \
version.c\
version.h\
mpool.c\
mpool.h \
filtering.h\
filtering.c\
fmap.c \
fmap.h \
perflogging.c\
perflogging.h\
default.h\
bytecode.c\
bytecode.h\
bytecode_vm.c\
bytecode_priv.h\
clambc.h \
cpio.c \
cpio.h \
macho.c \
macho.h \
ishield.c \
ishield.h \
type_desc.h \
bcfeatures.h \
bytecode_api.c \
bytecode_api_decl.c \
bytecode_api.h \
bytecode_api_impl.h \
bytecode_hooks.h \
cache.c \
cache.h \
bytecode_detect.c \
bytecode_detect.h\
builtin_bytecodes.h\
events.c\
events.h \
adc.c \
adc.h \
dmg.c \
dmg.h \
xar.c \
xar.h \
xdp.c \
xdp.h \
mbr.c \
mbr.h \
gpt.c \
gpt.h \
apm.c \
apm.h \
partition_intersection.c \
partition_intersection.h \
json_api.c\
json_api.h\
xz_iface.c \
xz_iface.h \
sf_base64decode.c \
sf_base64decode.h \
hfsplus.c \
hfsplus.h \
swf.c \
swf.h \
gif.c \
gif.h \
jpeg.c \
jpeg.h \
png.c \
png.h \
iso9660.c \
iso9660.h \
arc4.c \
arc4.h \
rijndael.c \
rijndael.h \
crtmgr.c \
crtmgr.h \
asn1.c \
asn1.h \
fpu.c \
fpu.h \
stats.c \
stats.h \
www.c \
www.h \
stats_json.c \
stats_json.h \
hostid_internal.c \
hostid_internal.h \
openioc.c \
openioc.h \
msdoc.c \
msdoc.h \
matcher-pcre.c \
matcher-pcre.h \
regex_pcre.c \
regex_pcre.h \
msxml.c \
msxml.h \
msxml_parser.c \
msxml_parser.h \
tiff.c \
tiff.h \
hwp.c \
hwp.h \
lzw/lzwdec.c \
lzw/lzwdec.h \
matcher-byte-comp.c \
matcher-byte-comp.h \
egg.c \
egg.h \
queue.h
if ENABLE_YARA
libclamav_la_SOURCES += yara_arena.c \
yara_arena.h \
yara_compiler.c \
yara_compiler.h \
yara_exec.c \
yara_exec.h \
yara_hash.c \
yara_hash.h \
yara_grammar.y \
yara_lexer.l \
yara_lexer.h \
yara_parser.c \
yara_parser.h \
yara_clam.h
endif
libclamav_la_SOURCES += bignum.h\
bignum_fast.h\
tomsfastmath/addsub/fp_add.c\
tomsfastmath/addsub/fp_add_d.c\
tomsfastmath/addsub/fp_addmod.c\
tomsfastmath/addsub/fp_cmp.c\
tomsfastmath/addsub/fp_cmp_d.c\
tomsfastmath/addsub/fp_cmp_mag.c\
tomsfastmath/addsub/fp_sub.c\
tomsfastmath/addsub/fp_sub_d.c\
tomsfastmath/addsub/fp_submod.c\
tomsfastmath/addsub/s_fp_add.c\
tomsfastmath/addsub/s_fp_sub.c\
tomsfastmath/bin/fp_radix_size.c\
tomsfastmath/bin/fp_read_radix.c\
tomsfastmath/bin/fp_read_signed_bin.c\
tomsfastmath/bin/fp_read_unsigned_bin.c\
tomsfastmath/bin/fp_reverse.c\
tomsfastmath/bin/fp_s_rmap.c\
tomsfastmath/bin/fp_signed_bin_size.c\
tomsfastmath/bin/fp_to_signed_bin.c\
tomsfastmath/bin/fp_to_unsigned_bin.c\
tomsfastmath/bin/fp_toradix.c\
tomsfastmath/bin/fp_toradix_n.c\
tomsfastmath/bin/fp_unsigned_bin_size.c\
tomsfastmath/bit/fp_cnt_lsb.c\
tomsfastmath/bit/fp_count_bits.c\
tomsfastmath/bit/fp_div_2.c\
tomsfastmath/bit/fp_div_2d.c\
tomsfastmath/bit/fp_lshd.c\
tomsfastmath/bit/fp_mod_2d.c\
tomsfastmath/bit/fp_rshd.c\
tomsfastmath/divide/fp_div.c\
tomsfastmath/divide/fp_div_d.c\
tomsfastmath/divide/fp_mod.c\
tomsfastmath/divide/fp_mod_d.c\
tomsfastmath/exptmod/fp_2expt.c\
tomsfastmath/exptmod/fp_exptmod.c\
tomsfastmath/misc/fp_ident.c\
tomsfastmath/misc/fp_set.c\
tomsfastmath/mont/fp_montgomery_calc_normalization.c\
tomsfastmath/mont/fp_montgomery_reduce.c\
tomsfastmath/mont/fp_montgomery_setup.c\
tomsfastmath/mul/fp_mul.c\
tomsfastmath/mul/fp_mul_comba.c\
tomsfastmath/mul/fp_mul_2.c\
tomsfastmath/mul/fp_mul_2d.c\
tomsfastmath/mul/fp_mul_comba_12.c\
tomsfastmath/mul/fp_mul_comba_17.c\
tomsfastmath/mul/fp_mul_comba_20.c\
tomsfastmath/mul/fp_mul_comba_24.c\
tomsfastmath/mul/fp_mul_comba_28.c\
tomsfastmath/mul/fp_mul_comba_3.c\
tomsfastmath/mul/fp_mul_comba_32.c\
tomsfastmath/mul/fp_mul_comba_4.c\
tomsfastmath/mul/fp_mul_comba_48.c\
tomsfastmath/mul/fp_mul_comba_6.c\
tomsfastmath/mul/fp_mul_comba_64.c\
tomsfastmath/mul/fp_mul_comba_7.c\
tomsfastmath/mul/fp_mul_comba_8.c\
tomsfastmath/mul/fp_mul_comba_9.c\
tomsfastmath/mul/fp_mul_comba_small_set.c\
tomsfastmath/mul/fp_mul_d.c\
tomsfastmath/mul/fp_mulmod.c\
tomsfastmath/numtheory/fp_invmod.c\
tomsfastmath/sqr/fp_sqr.c\
tomsfastmath/sqr/fp_sqr_comba_12.c\
tomsfastmath/sqr/fp_sqr_comba_17.c\
tomsfastmath/sqr/fp_sqr_comba_20.c\
tomsfastmath/sqr/fp_sqr_comba_24.c\
tomsfastmath/sqr/fp_sqr_comba_28.c\
tomsfastmath/sqr/fp_sqr_comba_3.c\
tomsfastmath/sqr/fp_sqr_comba_32.c\
tomsfastmath/sqr/fp_sqr_comba_4.c\
tomsfastmath/sqr/fp_sqr_comba_48.c\
tomsfastmath/sqr/fp_sqr_comba_6.c\
tomsfastmath/sqr/fp_sqr_comba_64.c\
tomsfastmath/sqr/fp_sqr_comba_7.c\
tomsfastmath/sqr/fp_sqr_comba_8.c\
tomsfastmath/sqr/fp_sqr_comba_9.c\
tomsfastmath/sqr/fp_sqr_comba_generic.c\
tomsfastmath/sqr/fp_sqr_comba_small_set.c\
tomsfastmath/sqr/fp_sqrmod.c
.PHONY2: version.h.tmp
version.c: version.h
version.h: version.h.tmp
$(AM_V_GEN) if test -f version.h.static; then\
cp version.h.static version.h;\
elif ! diff $@ version.h.tmp >/dev/null 2>/dev/null; then\
cp version.h.tmp $@;\
fi
version.h.tmp:
$(AM_V_GEN) test -f version.h || touch version.h;\
rm -f $@;\
REVISION="$$(LANG=C git --git-dir "$(top_srcdir)"/.git describe --always 2>/dev/null || echo "exported")";\
if test "$$REVISION" = "exported"; then\
REVISION="";\
fi;\
if test -n "$$REVISION"; then\
echo "#define REPO_VERSION \"devel-$$REVISION\"" >> $@;\
else\
touch version.h.tmp;\
fi
lib_LTLIBRARIES += libclamav.la
noinst_LTLIBRARIES = libclamav_internal_utils.la libclamav_nocxx.la
EXTRA_DIST += regex/engine.c tomsfastmath/sqr/fp_sqr_comba.c tomsfastmath/mul/fp_mul_comba.c libclamav.map libclamav_main.c \
jsparse/generated/operators.h jsparse/generated/keywords.h jsparse/future_reserved_words.list\
jsparse/keywords.list jsparse/special_keywords.list jsparse/operators.gperf version.h.in
COMMON_CLEANFILES+=version.h version.h.tmp *.gcda *.gcno
BUILT_SOURCES = yara_grammar.h
if MAINTAINER_MODE
BUILT_SOURCES += jsparse/generated/operators.h jsparse/generated/keywords.h jsparse-keywords.gperf
GPERF_FLAGS=-E -t -L ANSI-C -C -F ', TOK_ERROR' -c
jsparse-keywords.gperf: jsparse/keywords.list jsparse/future_reserved_words.list jsparse/special_keywords.list
echo -e "struct keyword { const char *name; int val; };\n%%" >keywords-g-tmp
for i in `cat @srcdir@/jsparse/keywords.list`; do j=`echo $$i |tr \[a-z\] \[A-Z\]`; echo "$$i, TOK_$$j" >>keywords-g-tmp; done
for i in `cat @srcdir@/jsparse/future_reserved_words.list`; do echo "$$i, TOK_FUTURE_RESERVED_WORD" >>keywords-g-tmp; done
cat @srcdir@/jsparse/special_keywords.list >>keywords-g-tmp
mv keywords-g-tmp $@
jsparse/generated/operators.h: jsparse/operators.gperf
$(GPERF) $(GPERF_FLAGS) -H op_hash -N in_op_set -W oplist $< >operators-tmp-g
grep -v '^#line' <operators-tmp-g | sed -e 's/^const struct/static const struct/' -e 's/register //g' >operators-tmp
rm operators-tmp-g
mv operators-tmp @srcdir@/jsparse/generated/operators.h
jsparse/generated/keywords.h: jsparse-keywords.gperf
$(GPERF) $(GPERF_FLAGS) $< >keywords-tmp-g
grep -v '^#line' <keywords-tmp-g | sed -e 's/^const struct/static const struct/' -e 's/register //g' >keywords-tmp
rm keywords-tmp-g
mv keywords-tmp @srcdir@/jsparse/generated/keywords.h
CLEANFILES=$(COMMON_CLEANFILES) @srcdir@/jsparse/generated/operators.h @srcdir@/jsparse/generated/keywords.h
else
CLEANFILES=$(COMMON_CLEANFILES)
endif

File diff suppressed because it is too large Load Diff

View File

@ -1,65 +0,0 @@
cmake_minimum_required( VERSION 3.13 )
if(WIN32)
add_definitions(-DWIN32_LEAN_AND_MEAN)
add_definitions(-DHAVE_STRUCT_TIMESPEC)
# Windows compatibility headers
include_directories(${CMAKE_SOURCE_DIR}/win32/compat)
endif()
# Move public headers to a dedicated INTERFACE library
#
# An interface is required because libclamav objects will depend on the
# interface to put unrar_iface.h in the include path, but we don't want to link
# with it.
# libclamunrar_iface will be dynamically loaded at run time, if enabled.
add_library(clamunrar_iface_iface INTERFACE)
target_sources(clamunrar_iface_iface
INTERFACE
unrar_iface.h )
target_include_directories( clamunrar_iface_iface
INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}> )
add_library( ClamAV::libclamunrar_iface_iface ALIAS clamunrar_iface_iface )
if(ENABLE_UNRAR)
# The clamunrar_iface SHARED library.
add_library( clamunrar_iface SHARED )
set_target_properties(clamunrar_iface PROPERTIES
VERSION ${LIBCLAMAV_VERSION}
SOVERSION ${LIBCLAMAV_SOVERSION})
target_sources( clamunrar_iface
PRIVATE
unrar_iface.cpp )
target_include_directories( clamunrar_iface
PRIVATE
"${CMAKE_BINARY_DIR}" # For clamav-config.h
$<TARGET_PROPERTY:ClamAV::libclamunrar,INTERFACE_INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:ClamAV::libclamav,INTERFACE_INCLUDE_DIRECTORIES> )
set_target_properties( clamunrar_iface PROPERTIES
COMPILE_FLAGS "${WARNCXXFLAGS} ${CXX1XCXXFLAGS}" )
if(WIN32)
set_target_properties(clamunrar_iface PROPERTIES WINDOWS_EXPORT_ALL_SYMBOLS ON)
endif()
# Private (internal-only) dependencies.
target_link_libraries( clamunrar_iface
PRIVATE
ClamAV::libclamunrar
PUBLIC
ClamAV::libclamunrar_iface_iface)
if(WIN32)
install(TARGETS clamunrar_iface DESTINATION ${CMAKE_INSTALL_PREFIX})
else()
install(TARGETS clamunrar_iface DESTINATION ${CMAKE_INSTALL_LIBDIR})
endif()
add_library( ClamAV::libclamunrar_iface ALIAS clamunrar_iface )
endif()

View File

@ -1,22 +0,0 @@
PROJECT_NAME = ClamAV - Libclamunrar_iface
OUTPUT_DIRECTORY = ../docs/libclamunrar_iface
WARNINGS = YES
FILE_PATTERNS = *.c *.h
PERL_PATH = /usr/bin/perl
SEARCHENGINE = YES
GENERATE_LATEX=NO
OPTIMIZE_OUTPUT_FOR_C=YES
HAVE_DOT=YES
CALL_GRAPH=YES
CALLER_GRAPH=YES
JAVADOC_AUTOBRIEF=YES
GENERATE_MAN=NO
EXAMPLE_PATH=examples
DOT_CLEANUP=NO
MAX_DOT_GRAPH_DEPTH=3
EXTRACT_ALL=YES
INPUT = . \
../shared

View File

@ -1,10 +0,0 @@
CLAMAV_PRIVATE {
global:
libclamunrar_iface_LTX_unrar_open;
libclamunrar_iface_LTX_unrar_peek_file_header;
libclamunrar_iface_LTX_unrar_extract_file;
libclamunrar_iface_LTX_unrar_skip_file;
libclamunrar_iface_LTX_unrar_close;
local:
*;
};

Binary file not shown.

View File

@ -1 +0,0 @@
# dummy

View File

@ -1 +0,0 @@
# dummy

View File

@ -1 +0,0 @@
# dummy

View File

@ -1 +0,0 @@
# dummy

View File

@ -1 +0,0 @@
# dummy

View File

@ -1 +0,0 @@
# dummy

View File

@ -1 +0,0 @@
# dummy

View File

@ -1 +0,0 @@
# dummy

View File

@ -1 +0,0 @@
# dummy

View File

@ -1 +0,0 @@
# dummy

View File

@ -1 +0,0 @@
# dummy

View File

@ -1,47 +0,0 @@
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libclamav -I$(top_builddir)/libclamav -I$(top_srcdir)/libclamunrar_iface @JSON_CPPFLAGS@ @CURL_CPPFLAGS@ @SSL_CPPFLAGS@ @PCRE_CPPFLAGS@
LIBS = @SSL_LDFLAGS@ @SSL_LIBS@
AM_LIBTOOLFLAGS = --tag CC
libshared_la_SOURCES= \
actions.c \
actions.h \
cdiff.c \
cdiff.h \
cert_util.c \
cert_util.h \
cert_util_internal.h \
clamdcom.c \
clamdcom.h \
fdpassing.h \
getopt.c \
getopt.h \
hostid.c \
hostid.h \
idmef_logging.c \
idmef_logging.h \
misc.c \
misc.h \
optparser.c \
optparser.h \
output.c \
output.h \
tar.c \
tar.h
if MACOS
libshared_la_SOURCES += \
mac/cert_util_mac.m \
cert_util.h
endif
if WINDOWS
libshared_la_SOURCES += \
win/cert_util_win.c \
cert_util.h
endif
if LINUX
libshared_la_SOURCES += \
linux/cert_util_linux.c \
cert_util.h
endif
noinst_LTLIBRARIES=libshared.la

View File

@ -1,932 +0,0 @@
# Makefile.in generated by automake 1.15.1 from Makefile.am.
# @configure_input@
# Copyright (C) 1994-2017 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.
@SET_MAKE@
VPATH = @srcdir@
am__is_gnu_make = { \
if test -z '$(MAKELEVEL)'; then \
false; \
elif test -n '$(MAKE_HOST)'; then \
true; \
elif test -n '$(MAKE_VERSION)' && test -n '$(CURDIR)'; then \
true; \
else \
false; \
fi; \
}
am__make_running_with_option = \
case $${target_option-} in \
?) ;; \
*) echo "am__make_running_with_option: internal error: invalid" \
"target option '$${target_option-}' specified" >&2; \
exit 1;; \
esac; \
has_opt=no; \
sane_makeflags=$$MAKEFLAGS; \
if $(am__is_gnu_make); then \
sane_makeflags=$$MFLAGS; \
else \
case $$MAKEFLAGS in \
*\\[\ \ ]*) \
bs=\\; \
sane_makeflags=`printf '%s\n' "$$MAKEFLAGS" \
| sed "s/$$bs$$bs[$$bs $$bs ]*//g"`;; \
esac; \
fi; \
skip_next=no; \
strip_trailopt () \
{ \
flg=`printf '%s\n' "$$flg" | sed "s/$$1.*$$//"`; \
}; \
for flg in $$sane_makeflags; do \
test $$skip_next = yes && { skip_next=no; continue; }; \
case $$flg in \
*=*|--*) continue;; \
-*I) strip_trailopt 'I'; skip_next=yes;; \
-*I?*) strip_trailopt 'I';; \
-*O) strip_trailopt 'O'; skip_next=yes;; \
-*O?*) strip_trailopt 'O';; \
-*l) strip_trailopt 'l'; skip_next=yes;; \
-*l?*) strip_trailopt 'l';; \
-[dEDm]) skip_next=yes;; \
-[JT]) skip_next=yes;; \
esac; \
case $$flg in \
*$$target_option*) has_opt=yes; break;; \
esac; \
done; \
test $$has_opt = yes
am__make_dryrun = (target_option=n; $(am__make_running_with_option))
am__make_keepgoing = (target_option=k; $(am__make_running_with_option))
pkgdatadir = $(datadir)/@PACKAGE@
pkgincludedir = $(includedir)/@PACKAGE@
pkglibdir = $(libdir)/@PACKAGE@
pkglibexecdir = $(libexecdir)/@PACKAGE@
am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
install_sh_DATA = $(install_sh) -c -m 644
install_sh_PROGRAM = $(install_sh) -c
install_sh_SCRIPT = $(install_sh) -c
INSTALL_HEADER = $(INSTALL_DATA)
transform = $(program_transform_name)
NORMAL_INSTALL = :
PRE_INSTALL = :
POST_INSTALL = :
NORMAL_UNINSTALL = :
PRE_UNINSTALL = :
POST_UNINSTALL = :
build_triplet = @build@
host_triplet = @host@
target_triplet = @target@
@MACOS_TRUE@am__append_1 = \
@MACOS_TRUE@ mac/cert_util_mac.m \
@MACOS_TRUE@ cert_util.h
@WINDOWS_TRUE@am__append_2 = \
@WINDOWS_TRUE@ win/cert_util_win.c \
@WINDOWS_TRUE@ cert_util.h
@LINUX_TRUE@am__append_3 = \
@LINUX_TRUE@ linux/cert_util_linux.c \
@LINUX_TRUE@ cert_util.h
subdir = shared
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
am__aclocal_m4_deps = $(top_srcdir)/m4/acinclude.m4 \
$(top_srcdir)/m4/ax_check_uname_syscall.m4 \
$(top_srcdir)/m4/fdpassing.m4 $(top_srcdir)/m4/lib-ld.m4 \
$(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
$(top_srcdir)/m4/lib-prelude.m4 $(top_srcdir)/m4/libtool.m4 \
$(top_srcdir)/m4/llvm.m4 $(top_srcdir)/m4/ltargz.m4 \
$(top_srcdir)/m4/ltdl.m4 $(top_srcdir)/m4/ltoptions.m4 \
$(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \
$(top_srcdir)/m4/lt~obsolete.m4 \
$(top_srcdir)/m4/mmap_private.m4 $(top_srcdir)/m4/resolv.m4 \
$(top_srcdir)/m4/reorganization/version.m4 \
$(top_srcdir)/m4/reorganization/libclamav-only.m4 \
$(top_srcdir)/m4/reorganization/build_tools.m4 \
$(top_srcdir)/m4/reorganization/headers.m4 \
$(top_srcdir)/m4/reorganization/c_options.m4 \
$(top_srcdir)/m4/reorganization/compiler_checks.m4 \
$(top_srcdir)/m4/reorganization/linker_checks.m4 \
$(top_srcdir)/m4/reorganization/code_checks/fuzz.m4 \
$(top_srcdir)/m4/reorganization/code_checks/functions.m4 \
$(top_srcdir)/m4/reorganization/code_checks/mpool.m4 \
$(top_srcdir)/m4/reorganization/code_checks/unit_tests.m4 \
$(top_srcdir)/m4/reorganization/code_checks/coverage.m4 \
$(top_srcdir)/m4/reorganization/libs/xml.m4 \
$(top_srcdir)/m4/reorganization/libs/openssl.m4 \
$(top_srcdir)/m4/reorganization/libs/json.m4 \
$(top_srcdir)/m4/reorganization/libs/pcre.m4 \
$(top_srcdir)/m4/reorganization/libs/libmspack.m4 \
$(top_srcdir)/m4/reorganization/libs/libz.m4 \
$(top_srcdir)/m4/reorganization/libs/bzip.m4 \
$(top_srcdir)/m4/reorganization/libs/unrar.m4 \
$(top_srcdir)/m4/reorganization/libs/systemd.m4 \
$(top_srcdir)/m4/reorganization/code_checks/ipv6.m4 \
$(top_srcdir)/m4/reorganization/code_checks/dns.m4 \
$(top_srcdir)/m4/reorganization/code_checks/fanotify.m4 \
$(top_srcdir)/m4/reorganization/code_checks/setpgrp.m4 \
$(top_srcdir)/m4/reorganization/milter/enable.m4 \
$(top_srcdir)/m4/reorganization/libs/iconv_check.m4 \
$(top_srcdir)/m4/reorganization/libs/iconv.m4 \
$(top_srcdir)/m4/reorganization/code_checks/pthreads.m4 \
$(top_srcdir)/m4/reorganization/code_checks/reentrant.m4 \
$(top_srcdir)/m4/reorganization/utility_checks/id.m4 \
$(top_srcdir)/m4/reorganization/utility_checks/yp.m4 \
$(top_srcdir)/m4/reorganization/usergroup.m4 \
$(top_srcdir)/m4/reorganization/debug.m4 \
$(top_srcdir)/m4/reorganization/customversion.m4 \
$(top_srcdir)/m4/reorganization/nocache.m4 \
$(top_srcdir)/m4/reorganization/dns.m4 \
$(top_srcdir)/m4/reorganization/bigstack.m4 \
$(top_srcdir)/m4/reorganization/dbdir.m4 \
$(top_srcdir)/m4/reorganization/cfgdir.m4 \
$(top_srcdir)/m4/reorganization/code_checks/in_port_t.m4 \
$(top_srcdir)/m4/reorganization/code_checks/in_addr_t.m4 \
$(top_srcdir)/m4/reorganization/os_checks.m4 \
$(top_srcdir)/m4/reorganization/milter/check.m4 \
$(top_srcdir)/m4/reorganization/code_checks/pthread_02.m4 \
$(top_srcdir)/m4/reorganization/code_checks/ctime.m4 \
$(top_srcdir)/m4/reorganization/code_checks/socklen_t.m4 \
$(top_srcdir)/m4/reorganization/clamav_user.m4 \
$(top_srcdir)/m4/reorganization/code_checks/compiler_attribs.m4 \
$(top_srcdir)/m4/reorganization/code_checks/select.m4 \
$(top_srcdir)/m4/reorganization/code_checks/stat64.m4 \
$(top_srcdir)/m4/reorganization/code_checks/shift.m4 \
$(top_srcdir)/m4/reorganization/code_checks/features.m4 \
$(top_srcdir)/m4/reorganization/clamdtop.m4 \
$(top_srcdir)/m4/reorganization/distcheck.m4 \
$(top_srcdir)/m4/reorganization/llvm.m4 \
$(top_srcdir)/libclamav/c++/m4/llvm-opts.m4 \
$(top_srcdir)/m4/reorganization/sha_collect.m4 \
$(top_srcdir)/m4/reorganization/yara.m4 \
$(top_srcdir)/m4/reorganization/code_checks/fts.m4 \
$(top_srcdir)/m4/reorganization/prelude.m4 \
$(top_srcdir)/m4/reorganization/bsd.m4 \
$(top_srcdir)/m4/reorganization/clamonacc.m4 \
$(top_srcdir)/m4/reorganization/libs/curl.m4 \
$(top_srcdir)/m4/reorganization/substitutions.m4 \
$(top_srcdir)/m4/reorganization/strni.m4 \
$(top_srcdir)/m4/reorganization/types.m4 \
$(top_srcdir)/configure.ac
am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
$(ACLOCAL_M4)
DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON)
mkinstalldirs = $(install_sh) -d
CONFIG_HEADER = $(top_builddir)/clamav-config.h \
$(top_builddir)/libclammspack/config.h
CONFIG_CLEAN_FILES =
CONFIG_CLEAN_VPATH_FILES =
LTLIBRARIES = $(noinst_LTLIBRARIES)
libshared_la_LIBADD =
am__libshared_la_SOURCES_DIST = actions.c actions.h cdiff.c cdiff.h \
cert_util.c cert_util.h cert_util_internal.h clamdcom.c \
clamdcom.h fdpassing.h getopt.c getopt.h hostid.c hostid.h \
idmef_logging.c idmef_logging.h misc.c misc.h optparser.c \
optparser.h output.c output.h tar.c tar.h mac/cert_util_mac.m \
win/cert_util_win.c linux/cert_util_linux.c
am__dirstamp = $(am__leading_dot)dirstamp
@MACOS_TRUE@am__objects_1 = mac/cert_util_mac.lo
@WINDOWS_TRUE@am__objects_2 = win/cert_util_win.lo
@LINUX_TRUE@am__objects_3 = linux/cert_util_linux.lo
am_libshared_la_OBJECTS = actions.lo cdiff.lo cert_util.lo clamdcom.lo \
getopt.lo hostid.lo idmef_logging.lo misc.lo optparser.lo \
output.lo tar.lo $(am__objects_1) $(am__objects_2) \
$(am__objects_3)
libshared_la_OBJECTS = $(am_libshared_la_OBJECTS)
AM_V_lt = $(am__v_lt_@AM_V@)
am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@)
am__v_lt_0 = --silent
am__v_lt_1 =
AM_V_P = $(am__v_P_@AM_V@)
am__v_P_ = $(am__v_P_@AM_DEFAULT_V@)
am__v_P_0 = false
am__v_P_1 = :
AM_V_GEN = $(am__v_GEN_@AM_V@)
am__v_GEN_ = $(am__v_GEN_@AM_DEFAULT_V@)
am__v_GEN_0 = @echo " GEN " $@;
am__v_GEN_1 =
AM_V_at = $(am__v_at_@AM_V@)
am__v_at_ = $(am__v_at_@AM_DEFAULT_V@)
am__v_at_0 = @
am__v_at_1 =
DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) -I$(top_builddir)/libclammspack
depcomp = $(SHELL) $(top_srcdir)/config/depcomp
am__depfiles_maybe = depfiles
am__mv = mv -f
COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
$(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_CFLAGS) $(CFLAGS)
AM_V_CC = $(am__v_CC_@AM_V@)
am__v_CC_ = $(am__v_CC_@AM_DEFAULT_V@)
am__v_CC_0 = @echo " CC " $@;
am__v_CC_1 =
CCLD = $(CC)
LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_CCLD = $(am__v_CCLD_@AM_V@)
am__v_CCLD_ = $(am__v_CCLD_@AM_DEFAULT_V@)
am__v_CCLD_0 = @echo " CCLD " $@;
am__v_CCLD_1 =
OBJCCOMPILE = $(OBJC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
$(AM_CPPFLAGS) $(CPPFLAGS) $(AM_OBJCFLAGS) $(OBJCFLAGS)
LTOBJCCOMPILE = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) \
$(LIBTOOLFLAGS) --mode=compile $(OBJC) $(DEFS) \
$(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
$(AM_OBJCFLAGS) $(OBJCFLAGS)
AM_V_OBJC = $(am__v_OBJC_@AM_V@)
am__v_OBJC_ = $(am__v_OBJC_@AM_DEFAULT_V@)
am__v_OBJC_0 = @echo " OBJC " $@;
am__v_OBJC_1 =
OBJCLD = $(OBJC)
OBJCLINK = $(LIBTOOL) $(AM_V_lt) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
--mode=link $(OBJCLD) $(AM_OBJCFLAGS) $(OBJCFLAGS) \
$(AM_LDFLAGS) $(LDFLAGS) -o $@
AM_V_OBJCLD = $(am__v_OBJCLD_@AM_V@)
am__v_OBJCLD_ = $(am__v_OBJCLD_@AM_DEFAULT_V@)
am__v_OBJCLD_0 = @echo " OBJCLD " $@;
am__v_OBJCLD_1 =
SOURCES = $(libshared_la_SOURCES)
DIST_SOURCES = $(am__libshared_la_SOURCES_DIST)
am__can_run_installinfo = \
case $$AM_UPDATE_INFO_DIR in \
n|no|NO) false;; \
*) (install-info --version) >/dev/null 2>&1;; \
esac
am__tagged_files = $(HEADERS) $(SOURCES) $(TAGS_FILES) $(LISP)
# Read a list of newline-separated strings from the standard input,
# and print each of them once, without duplicates. Input order is
# *not* preserved.
am__uniquify_input = $(AWK) '\
BEGIN { nonempty = 0; } \
{ items[$$0] = 1; nonempty = 1; } \
END { if (nonempty) { for (i in items) print i; }; } \
'
# Make sure the list of sources is unique. This is necessary because,
# e.g., the same source file might be shared among _SOURCES variables
# for different programs/libraries.
am__define_uniq_tagged_files = \
list='$(am__tagged_files)'; \
unique=`for i in $$list; do \
if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
done | $(am__uniquify_input)`
ETAGS = etags
CTAGS = ctags
am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/config/depcomp
DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
ACLOCAL = @ACLOCAL@
AMTAR = @AMTAR@
AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@
AR = @AR@
AUTOCONF = @AUTOCONF@
AUTOHEADER = @AUTOHEADER@
AUTOMAKE = @AUTOMAKE@
AWK = @AWK@
BUILD_CONFIGURE_FLAGS = @BUILD_CONFIGURE_FLAGS@
CC = @CC@
CCDEPMODE = @CCDEPMODE@
CFGDIR = @CFGDIR@
CFLAGS = @CFLAGS@
CHECK_CFLAGS = @CHECK_CFLAGS@
CHECK_CPPFLAGS = @CHECK_CPPFLAGS@
CHECK_LIBS = @CHECK_LIBS@
CLAMAVGROUP = @CLAMAVGROUP@
CLAMAVUSER = @CLAMAVUSER@
CLAMAV_MILTER_CPPFLAGS = @CLAMAV_MILTER_CPPFLAGS@
CLAMAV_MILTER_LIBS = @CLAMAV_MILTER_LIBS@
CLAMBC_CPPFLAGS = @CLAMBC_CPPFLAGS@
CLAMBC_LIBS = @CLAMBC_LIBS@
CLAMCONF_CPPFLAGS = @CLAMCONF_CPPFLAGS@
CLAMCONF_LIBS = @CLAMCONF_LIBS@
CLAMDSCAN_CPPFLAGS = @CLAMDSCAN_CPPFLAGS@
CLAMDSCAN_LIBS = @CLAMDSCAN_LIBS@
CLAMDTOP_CPPFLAGS = @CLAMDTOP_CPPFLAGS@
CLAMDTOP_LIBS = @CLAMDTOP_LIBS@
CLAMD_CPPFLAGS = @CLAMD_CPPFLAGS@
CLAMD_LIBS = @CLAMD_LIBS@
CLAMMEM_CPPFLAGS = @CLAMMEM_CPPFLAGS@
CLAMMEM_LIBS = @CLAMMEM_LIBS@
CLAMONACC_CPPFLAGS = @CLAMONACC_CPPFLAGS@
CLAMONACC_LIBS = @CLAMONACC_LIBS@
CLAMSCAN_CPPFLAGS = @CLAMSCAN_CPPFLAGS@
CLAMSCAN_LIBS = @CLAMSCAN_LIBS@
CLAMSUBMIT_CFLAGS = @CLAMSUBMIT_CFLAGS@
CLAMSUBMIT_LIBS = @CLAMSUBMIT_LIBS@
CPP = @CPP@
CPPFLAGS = @CPPFLAGS@
CURL_CPPFLAGS = @CURL_CPPFLAGS@
CURL_LDFLAGS = @CURL_LDFLAGS@
CURL_LIBS = @CURL_LIBS@
CURSES_CPPFLAGS = @CURSES_CPPFLAGS@
CURSES_LIBS = @CURSES_LIBS@
CXX = @CXX@
CXXCPP = @CXXCPP@
CXXDEPMODE = @CXXDEPMODE@
CXXFLAGS = @CXXFLAGS@
CYGPATH_W = @CYGPATH_W@
DBDIR = @DBDIR@
DEFINE_SF32_PREFIX = @DEFINE_SF32_PREFIX@
DEFINE_SF64_PREFIX = @DEFINE_SF64_PREFIX@
DEFS = @DEFS@
DEPDIR = @DEPDIR@
DLLTOOL = @DLLTOOL@
DSYMUTIL = @DSYMUTIL@
DUMPBIN = @DUMPBIN@
ECHO_C = @ECHO_C@
ECHO_N = @ECHO_N@
ECHO_T = @ECHO_T@
EGREP = @EGREP@
EXEEXT = @EXEEXT@
FGREP = @FGREP@
FRESHCLAM_CPPFLAGS = @FRESHCLAM_CPPFLAGS@
FRESHCLAM_LIBS = @FRESHCLAM_LIBS@
GCOV = @GCOV@
GENERATE_WARNING = @GENERATE_WARNING@
GENHTML = @GENHTML@
GETENT = @GETENT@
GPERF = @GPERF@
GREP = @GREP@
HAVE_STRNI = @HAVE_STRNI@
HAVE_YARA = @HAVE_YARA@
INCLTDL = @INCLTDL@
INSTALL = @INSTALL@
INSTALL_DATA = @INSTALL_DATA@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
INT16_DEF = @INT16_DEF@
INT32_DEF = @INT32_DEF@
INT64_DEF = @INT64_DEF@
INT8_DEF = @INT8_DEF@
INT_TYPES_HEADER = @INT_TYPES_HEADER@
JSON_CPPFLAGS = @JSON_CPPFLAGS@
JSON_LDFLAGS = @JSON_LDFLAGS@
JSON_LIBS = @JSON_LIBS@
LCOV = @LCOV@
LD = @LD@
LDFLAGS = @LDFLAGS@
LEX = @LEX@
LEXLIB = @LEXLIB@
LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
LIBADD_DL = @LIBADD_DL@
LIBADD_DLD_LINK = @LIBADD_DLD_LINK@
LIBADD_DLOPEN = @LIBADD_DLOPEN@
LIBADD_SHL_LOAD = @LIBADD_SHL_LOAD@
LIBBZ2 = @LIBBZ2@
LIBBZ2_PREFIX = @LIBBZ2_PREFIX@
LIBCLAMAV_CPPFLAGS = @LIBCLAMAV_CPPFLAGS@
LIBCLAMAV_LIBS = @LIBCLAMAV_LIBS@
LIBCLAMAV_VERSION = @LIBCLAMAV_VERSION@
LIBCLAMAV_VERSION_NUM = @LIBCLAMAV_VERSION_NUM@
LIBCLAMSHARED_CPPFLAGS = @LIBCLAMSHARED_CPPFLAGS@
LIBFRESHCLAM_VERSION = @LIBFRESHCLAM_VERSION@
LIBFRESHCLAM_VERSION_NUM = @LIBFRESHCLAM_VERSION_NUM@
LIBICONV = @LIBICONV@
LIBLTDL = @LIBLTDL@
LIBM = @LIBM@
LIBMSPACK_CFLAGS = @LIBMSPACK_CFLAGS@
LIBMSPACK_LIBS = @LIBMSPACK_LIBS@
LIBOBJS = @LIBOBJS@
LIBPRELUDE_CFLAGS = @LIBPRELUDE_CFLAGS@
LIBPRELUDE_CONFIG = @LIBPRELUDE_CONFIG@
LIBPRELUDE_CONFIG_PREFIX = @LIBPRELUDE_CONFIG_PREFIX@
LIBPRELUDE_LDFLAGS = @LIBPRELUDE_LDFLAGS@
LIBPRELUDE_LIBS = @LIBPRELUDE_LIBS@
LIBPRELUDE_PREFIX = @LIBPRELUDE_PREFIX@
LIBPRELUDE_PTHREAD_CFLAGS = @LIBPRELUDE_PTHREAD_CFLAGS@
LIBS = @SSL_LDFLAGS@ @SSL_LIBS@
LIBTOOL = @LIBTOOL@
LIPO = @LIPO@
LN_S = @LN_S@
LTDLDEPS = @LTDLDEPS@
LTDLINCL = @LTDLINCL@
LTDLOPEN = @LTDLOPEN@
LTLIBBZ2 = @LTLIBBZ2@
LTLIBICONV = @LTLIBICONV@
LTLIBOBJS = @LTLIBOBJS@
LT_ARGZ_H = @LT_ARGZ_H@
LT_CONFIG_H = @LT_CONFIG_H@
LT_DLLOADERS = @LT_DLLOADERS@
LT_DLPREOPEN = @LT_DLPREOPEN@
LT_SYS_LIBRARY_PATH = @LT_SYS_LIBRARY_PATH@
MAINT = @MAINT@
MAKEINFO = @MAKEINFO@
MANIFEST_TOOL = @MANIFEST_TOOL@
MKDIR_P = @MKDIR_P@
NCURSES_CFLAGS = @NCURSES_CFLAGS@
NCURSES_LIBS = @NCURSES_LIBS@
NM = @NM@
NMEDIT = @NMEDIT@
OBJC = @OBJC@
OBJCDEPMODE = @OBJCDEPMODE@
OBJCFLAGS = @OBJCFLAGS@
OBJDUMP = @OBJDUMP@
OBJEXT = @OBJEXT@
OTOOL = @OTOOL@
OTOOL64 = @OTOOL64@
PACKAGE = @PACKAGE@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_STRING = @PACKAGE_STRING@
PACKAGE_TARNAME = @PACKAGE_TARNAME@
PACKAGE_URL = @PACKAGE_URL@
PACKAGE_VERSION = @PACKAGE_VERSION@
PACKAGE_VERSION_NUM = @PACKAGE_VERSION_NUM@
PATH_SEPARATOR = @PATH_SEPARATOR@
PCRE_CFLAGS = @PCRE_CFLAGS@
PCRE_CPPFLAGS = @PCRE_CPPFLAGS@
PCRE_LIBS = @PCRE_LIBS@
PKG_CONFIG = @PKG_CONFIG@
PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@
PKG_CONFIG_PATH = @PKG_CONFIG_PATH@
RANLIB = @RANLIB@
SED = @SED@
SET_MAKE = @SET_MAKE@
SHELL = @SHELL@
SIGTOOL_CPPFLAGS = @SIGTOOL_CPPFLAGS@
SSL_CPPFLAGS = @SSL_CPPFLAGS@
SSL_LDFLAGS = @SSL_LDFLAGS@
SSL_LIBS = @SSL_LIBS@
STRIP = @STRIP@
SYSTEMD_CFLAGS = @SYSTEMD_CFLAGS@
SYSTEMD_LIBS = @SYSTEMD_LIBS@
THREAD_LIBS = @THREAD_LIBS@
TH_SAFE = @TH_SAFE@
UINT16_DEF = @UINT16_DEF@
UINT32_DEF = @UINT32_DEF@
UINT64_DEF = @UINT64_DEF@
UINT8_DEF = @UINT8_DEF@
VERSION = @VERSION@
VERSIONSCRIPTFLAG = @VERSIONSCRIPTFLAG@
WERR_CFLAGS = @WERR_CFLAGS@
WERR_CFLAGS_MILTER = @WERR_CFLAGS_MILTER@
XML_CPPFLAGS = @XML_CPPFLAGS@
XML_LIBS = @XML_LIBS@
YACC = @YACC@
YFLAGS = @YFLAGS@
ZLIB_CFLAGS = @ZLIB_CFLAGS@
ZLIB_LIBS = @ZLIB_LIBS@
abs_builddir = @abs_builddir@
abs_srcdir = @abs_srcdir@
abs_top_builddir = @abs_top_builddir@
abs_top_srcdir = @abs_top_srcdir@
ac_ct_AR = @ac_ct_AR@
ac_ct_CC = @ac_ct_CC@
ac_ct_CXX = @ac_ct_CXX@
ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
ac_ct_OBJC = @ac_ct_OBJC@
am__include = @am__include@
am__leading_dot = @am__leading_dot@
am__quote = @am__quote@
am__tar = @am__tar@
am__untar = @am__untar@
bindir = @bindir@
build = @build@
build_alias = @build_alias@
build_cpu = @build_cpu@
build_os = @build_os@
build_vendor = @build_vendor@
builddir = @builddir@
curl_config = @curl_config@
datadir = @datadir@
datarootdir = @datarootdir@
docdir = @docdir@
dvidir = @dvidir@
exec_prefix = @exec_prefix@
host = @host@
host_alias = @host_alias@
host_cpu = @host_cpu@
host_os = @host_os@
host_vendor = @host_vendor@
htmldir = @htmldir@
includedir = @includedir@
infodir = @infodir@
install_sh = @install_sh@
libdir = @libdir@
libexecdir = @libexecdir@
llvmconfig = @llvmconfig@
localedir = @localedir@
localstatedir = @localstatedir@
ltdl_LIBOBJS = @ltdl_LIBOBJS@
ltdl_LTLIBOBJS = @ltdl_LTLIBOBJS@
mandir = @mandir@
mkdir_p = @mkdir_p@
oldincludedir = @oldincludedir@
pcreconfig = @pcreconfig@
pdfdir = @pdfdir@
prefix = @prefix@
program_transform_name = @program_transform_name@
psdir = @psdir@
runstatedir = @runstatedir@
sbindir = @sbindir@
sharedstatedir = @sharedstatedir@
srcdir = @srcdir@
subdirs = @subdirs@
sys_symbol_underscore = @sys_symbol_underscore@
sysconfdir = @sysconfdir@
systemdsystemunitdir = @systemdsystemunitdir@
target = @target@
target_alias = @target_alias@
target_cpu = @target_cpu@
target_os = @target_os@
target_vendor = @target_vendor@
top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
xmlconfig = @xmlconfig@
AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/libclamav -I$(top_builddir)/libclamav -I$(top_srcdir)/libclamunrar_iface @JSON_CPPFLAGS@ @CURL_CPPFLAGS@ @SSL_CPPFLAGS@ @PCRE_CPPFLAGS@
AM_LIBTOOLFLAGS = --tag CC
libshared_la_SOURCES = actions.c actions.h cdiff.c cdiff.h cert_util.c \
cert_util.h cert_util_internal.h clamdcom.c clamdcom.h \
fdpassing.h getopt.c getopt.h hostid.c hostid.h \
idmef_logging.c idmef_logging.h misc.c misc.h optparser.c \
optparser.h output.c output.h tar.c tar.h $(am__append_1) \
$(am__append_2) $(am__append_3)
noinst_LTLIBRARIES = libshared.la
all: all-am
.SUFFIXES:
.SUFFIXES: .c .lo .m .o .obj
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ $(srcdir)/Makefile.am $(am__configure_deps)
@for dep in $?; do \
case '$(am__configure_deps)' in \
*$$dep*) \
( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
&& { if test -f $@; then exit 0; else break; fi; }; \
exit 1;; \
esac; \
done; \
echo ' cd $(top_srcdir) && $(AUTOMAKE) --foreign shared/Makefile'; \
$(am__cd) $(top_srcdir) && \
$(AUTOMAKE) --foreign shared/Makefile
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
@case '$?' in \
*config.status*) \
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
*) \
echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
esac;
$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(top_srcdir)/configure: @MAINTAINER_MODE_TRUE@ $(am__configure_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(ACLOCAL_M4): @MAINTAINER_MODE_TRUE@ $(am__aclocal_m4_deps)
cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
$(am__aclocal_m4_deps):
clean-noinstLTLIBRARIES:
-test -z "$(noinst_LTLIBRARIES)" || rm -f $(noinst_LTLIBRARIES)
@list='$(noinst_LTLIBRARIES)'; \
locs=`for p in $$list; do echo $$p; done | \
sed 's|^[^/]*$$|.|; s|/[^/]*$$||; s|$$|/so_locations|' | \
sort -u`; \
test -z "$$locs" || { \
echo rm -f $${locs}; \
rm -f $${locs}; \
}
mac/$(am__dirstamp):
@$(MKDIR_P) mac
@: > mac/$(am__dirstamp)
mac/$(DEPDIR)/$(am__dirstamp):
@$(MKDIR_P) mac/$(DEPDIR)
@: > mac/$(DEPDIR)/$(am__dirstamp)
mac/cert_util_mac.lo: mac/$(am__dirstamp) \
mac/$(DEPDIR)/$(am__dirstamp)
win/$(am__dirstamp):
@$(MKDIR_P) win
@: > win/$(am__dirstamp)
win/$(DEPDIR)/$(am__dirstamp):
@$(MKDIR_P) win/$(DEPDIR)
@: > win/$(DEPDIR)/$(am__dirstamp)
win/cert_util_win.lo: win/$(am__dirstamp) \
win/$(DEPDIR)/$(am__dirstamp)
linux/$(am__dirstamp):
@$(MKDIR_P) linux
@: > linux/$(am__dirstamp)
linux/$(DEPDIR)/$(am__dirstamp):
@$(MKDIR_P) linux/$(DEPDIR)
@: > linux/$(DEPDIR)/$(am__dirstamp)
linux/cert_util_linux.lo: linux/$(am__dirstamp) \
linux/$(DEPDIR)/$(am__dirstamp)
libshared.la: $(libshared_la_OBJECTS) $(libshared_la_DEPENDENCIES) $(EXTRA_libshared_la_DEPENDENCIES)
$(AM_V_OBJCLD)$(OBJCLINK) $(libshared_la_OBJECTS) $(libshared_la_LIBADD) $(LIBS)
mostlyclean-compile:
-rm -f *.$(OBJEXT)
-rm -f linux/*.$(OBJEXT)
-rm -f linux/*.lo
-rm -f mac/*.$(OBJEXT)
-rm -f mac/*.lo
-rm -f win/*.$(OBJEXT)
-rm -f win/*.lo
distclean-compile:
-rm -f *.tab.c
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/actions.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cdiff.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/cert_util.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/clamdcom.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/getopt.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/hostid.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/idmef_logging.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/misc.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/optparser.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/output.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tar.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@linux/$(DEPDIR)/cert_util_linux.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@mac/$(DEPDIR)/cert_util_mac.Plo@am__quote@
@AMDEP_TRUE@@am__include@ @am__quote@win/$(DEPDIR)/cert_util_win.Plo@am__quote@
.c.o:
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ $<
.c.obj:
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(COMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.c.lo:
@am__fastdepCC_TRUE@ $(AM_V_CC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
@am__fastdepCC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
@AMDEP_TRUE@@am__fastdepCC_FALSE@ $(AM_V_CC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(AM_V_CC@am__nodep@)$(LTCOMPILE) -c -o $@ $<
.m.o:
@am__fastdepOBJC_TRUE@ $(AM_V_OBJC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.o$$||'`;\
@am__fastdepOBJC_TRUE@ $(OBJCCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
@am__fastdepOBJC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
@AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(OBJCCOMPILE) -c -o $@ $<
.m.obj:
@am__fastdepOBJC_TRUE@ $(AM_V_OBJC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.obj$$||'`;\
@am__fastdepOBJC_TRUE@ $(OBJCCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ `$(CYGPATH_W) '$<'` &&\
@am__fastdepOBJC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Po
@AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(OBJCCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'`
.m.lo:
@am__fastdepOBJC_TRUE@ $(AM_V_OBJC)depbase=`echo $@ | sed 's|[^/]*$$|$(DEPDIR)/&|;s|\.lo$$||'`;\
@am__fastdepOBJC_TRUE@ $(LTOBJCCOMPILE) -MT $@ -MD -MP -MF $$depbase.Tpo -c -o $@ $< &&\
@am__fastdepOBJC_TRUE@ $(am__mv) $$depbase.Tpo $$depbase.Plo
@AMDEP_TRUE@@am__fastdepOBJC_FALSE@ $(AM_V_OBJC)source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
@AMDEP_TRUE@@am__fastdepOBJC_FALSE@ DEPDIR=$(DEPDIR) $(OBJCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepOBJC_FALSE@ $(AM_V_OBJC@am__nodep@)$(LTOBJCCOMPILE) -c -o $@ $<
mostlyclean-libtool:
-rm -f *.lo
clean-libtool:
-rm -rf .libs _libs
-rm -rf linux/.libs linux/_libs
-rm -rf mac/.libs mac/_libs
-rm -rf win/.libs win/_libs
ID: $(am__tagged_files)
$(am__define_uniq_tagged_files); mkid -fID $$unique
tags: tags-am
TAGS: tags
tags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
set x; \
here=`pwd`; \
$(am__define_uniq_tagged_files); \
shift; \
if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
test -n "$$unique" || unique=$$empty_fix; \
if test $$# -gt 0; then \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
"$$@" $$unique; \
else \
$(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
$$unique; \
fi; \
fi
ctags: ctags-am
CTAGS: ctags
ctags-am: $(TAGS_DEPENDENCIES) $(am__tagged_files)
$(am__define_uniq_tagged_files); \
test -z "$(CTAGS_ARGS)$$unique" \
|| $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
$$unique
GTAGS:
here=`$(am__cd) $(top_builddir) && pwd` \
&& $(am__cd) $(top_srcdir) \
&& gtags -i $(GTAGS_ARGS) "$$here"
cscopelist: cscopelist-am
cscopelist-am: $(am__tagged_files)
list='$(am__tagged_files)'; \
case "$(srcdir)" in \
[\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \
*) sdir=$(subdir)/$(srcdir) ;; \
esac; \
for i in $$list; do \
if test -f "$$i"; then \
echo "$(subdir)/$$i"; \
else \
echo "$$sdir/$$i"; \
fi; \
done >> $(top_builddir)/cscope.files
distclean-tags:
-rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
distdir: $(DISTFILES)
@srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
list='$(DISTFILES)'; \
dist_files=`for file in $$list; do echo $$file; done | \
sed -e "s|^$$srcdirstrip/||;t" \
-e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
case $$dist_files in \
*/*) $(MKDIR_P) `echo "$$dist_files" | \
sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
sort -u` ;; \
esac; \
for file in $$dist_files; do \
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
if test -d $$d/$$file; then \
dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
if test -d "$(distdir)/$$file"; then \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
fi; \
cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
else \
test -f "$(distdir)/$$file" \
|| cp -p $$d/$$file "$(distdir)/$$file" \
|| exit 1; \
fi; \
done
check-am: all-am
check: check-am
all-am: Makefile $(LTLIBRARIES)
installdirs:
install: install-am
install-exec: install-exec-am
install-data: install-data-am
uninstall: uninstall-am
install-am: all-am
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
installcheck: installcheck-am
install-strip:
if test -z '$(STRIP)'; then \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
install; \
else \
$(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
"INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'" install; \
fi
mostlyclean-generic:
clean-generic:
distclean-generic:
-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
-test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
-rm -f linux/$(DEPDIR)/$(am__dirstamp)
-rm -f linux/$(am__dirstamp)
-rm -f mac/$(DEPDIR)/$(am__dirstamp)
-rm -f mac/$(am__dirstamp)
-rm -f win/$(DEPDIR)/$(am__dirstamp)
-rm -f win/$(am__dirstamp)
maintainer-clean-generic:
@echo "This command is intended for maintainers to use"
@echo "it deletes files that may require special tools to rebuild."
clean: clean-am
clean-am: clean-generic clean-libtool clean-noinstLTLIBRARIES \
mostlyclean-am
distclean: distclean-am
-rm -rf ./$(DEPDIR) linux/$(DEPDIR) mac/$(DEPDIR) win/$(DEPDIR)
-rm -f Makefile
distclean-am: clean-am distclean-compile distclean-generic \
distclean-tags
dvi: dvi-am
dvi-am:
html: html-am
html-am:
info: info-am
info-am:
install-data-am:
install-dvi: install-dvi-am
install-dvi-am:
install-exec-am:
install-html: install-html-am
install-html-am:
install-info: install-info-am
install-info-am:
install-man:
install-pdf: install-pdf-am
install-pdf-am:
install-ps: install-ps-am
install-ps-am:
installcheck-am:
maintainer-clean: maintainer-clean-am
-rm -rf ./$(DEPDIR) linux/$(DEPDIR) mac/$(DEPDIR) win/$(DEPDIR)
-rm -f Makefile
maintainer-clean-am: distclean-am maintainer-clean-generic
mostlyclean: mostlyclean-am
mostlyclean-am: mostlyclean-compile mostlyclean-generic \
mostlyclean-libtool
pdf: pdf-am
pdf-am:
ps: ps-am
ps-am:
uninstall-am:
.MAKE: install-am install-strip
.PHONY: CTAGS GTAGS TAGS all all-am check check-am clean clean-generic \
clean-libtool clean-noinstLTLIBRARIES cscopelist-am ctags \
ctags-am distclean distclean-compile distclean-generic \
distclean-libtool distclean-tags distdir dvi dvi-am html \
html-am info info-am install install-am install-data \
install-data-am install-dvi install-dvi-am install-exec \
install-exec-am install-html install-html-am install-info \
install-info-am install-man install-pdf install-pdf-am \
install-ps install-ps-am install-strip installcheck \
installcheck-am installdirs maintainer-clean \
maintainer-clean-generic mostlyclean mostlyclean-compile \
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
tags tags-am uninstall uninstall-am
.PRECIOUS: Makefile
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
.NOEXPORT:

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
conf.o

Binary file not shown.

27
freshclam.conf Normal file
View File

@ -0,0 +1,27 @@
# Automatically created by the clamav-freshclam postinst
# Comments will get lost when you reconfigure the clamav-freshclam package
DatabaseOwner clamav
UpdateLogFile freshclam.log
LogVerbose false
LogSyslog false
LogFacility LOG_LOCAL6
LogFileMaxSize 0
LogRotate true
LogTime true
Foreground false
Debug false
MaxAttempts 5
DatabaseDirectory /var/lib/clamav
DNSDatabaseInfo current.cvd.clamav.net
ConnectTimeout 30
ReceiveTimeout 0
TestDatabases yes
ScriptedUpdates yes
CompressLocalDatabase no
Bytecode true
NotifyClamd /etc/clamav/clamd.conf
# Check for new database 24 times a day
Checks 24
DatabaseMirror db.local.clamav.net
DatabaseMirror database.clamav.net

View File

@ -1,182 +0,0 @@
#include "libclamav.h"
int detect_virus_files(char *file)
{
int fd, ret;
unsigned long int size = 0;
unsigned int sigs = 0;
long double mb;
const char *virname;
const char *filename;
struct cl_engine *engine;
struct cl_scan_options options;
filename = (const char *)file;
if ((fd = open(file, O_RDONLY)) == -1) {
printf("Can't open file %s\n", file);
return 2;
}
if ((ret = cl_init(CL_INIT_DEFAULT)) != CL_SUCCESS) {
printf("Can't initialize libclamav: %s\n", cl_strerror(ret));
return 2;
}
if (!(engine = cl_engine_new())) {
printf("Can't create new engine\n");
return 2;
}
/* Example version macro usage to determine if new feature is available */
#if defined(LIBCLAMAV_VERSION_NUM) && (LIBCLAMAV_VERSION_NUM >= 0x090400)
/* Example feature usage lowering max scan time to 15 seconds. */
cl_engine_set_num(engine, CL_ENGINE_MAX_SCANTIME, 15000);
#endif
/* load all available databases from default directory */
if ((ret = cl_load(cl_retdbdir(), engine, &sigs, CL_DB_STDOPT)) != CL_SUCCESS) {
printf("cl_load: %s\n", cl_strerror(ret));
close(fd);
cl_engine_free(engine);
return 2;
}
printf("Loaded %u signatures.\n", sigs);
/* build engine */
if ((ret = cl_engine_compile(engine)) != CL_SUCCESS) {
printf("Database initialization error: %s\n", cl_strerror(ret));
cl_engine_free(engine);
close(fd);
return 2;
}
/* scan file descriptor */
memset(&options, 0, sizeof(struct cl_scan_options));
options.parse |= ~0; /* enable all parsers */
options.general |= CL_SCAN_GENERAL_HEURISTICS; /* enable heuristic alert options */
if ((ret = cl_scandesc(fd, filename, &virname, &size, engine, &options)) == CL_VIRUS) {
printf("Virus detected: %s\n", virname);
#if IS_MOVE
char temp[sizeof(file) + 3];
sprintf(temp, "rm_ %s", file);
//system("rm filename");
FILE *fp = popen(temp, "r");
pclose(fp);
fp = NULL;
#endif
} else {
if (ret == CL_CLEAN) {
printf("No virus detected.\n");
} else {
printf("Error: %s\n", cl_strerror(ret));
cl_engine_free(engine);
close(fd);
return 2;
}
}
close(fd);
/* free memory */
cl_engine_free(engine);
/* calculate size of scanned data */
mb = size * (CL_COUNT_PRECISION / 1024) / 1024.0;
printf("Data scanned: %2.2Lf MB\n", mb);
return ret == CL_VIRUS ? 1 : 0;
}
int recursive_dir(char *path)
{
DIR *dp = NULL;
struct dirent *st;
struct stat sta;
int ret = 0;
char tmp_name[2048] = { 0 };
st = NULL;
memset(&sta, 0, sizeof(struct stat));
memset(tmp_name, 0, 2048);
dp = opendir(path);
if (dp == NULL) {
printf("open dir error!!\n");
return -1;
}
while (1) {
st = readdir(dp);
if (NULL == st) //读取完毕
{
break;
}
strcpy(tmp_name, path);
if (path[strlen(path) - 1] != '/') //判断路径名是否带/
strcat(tmp_name, "/");
strcat(tmp_name, st->d_name); //新文件路径名
ret = stat(tmp_name, &sta); //查看目录下文件属性
if (ret < 0)
{
printf("read stat fail\n");
return -1;
}
if (S_ISDIR(sta.st_mode)) //如果为目录文件
{
if (0 == strcmp("..", st->d_name) || 0 == strcmp(".", st->d_name)) //忽略当前目录和上一层目录
continue;
else
{
recursive_dir(tmp_name); //递归读取
}
}
else //不为目录则打印文件路径名
{
printf("%s\n", tmp_name);
detect_virus_files(tmp_name);
}
}
closedir(dp);
return 0;
}
int is_file_dir(char *file)
{
struct stat buf;
int result = 0;
result = stat(file, &buf);
if(S_IFDIR & buf.st_mode)
{
return 2;
}
else if(S_IFREG & buf.st_mode)
{
return 1;
}
return result;
}
int _clamav(int argc, char *argv[], char **env)
{
int is_fd = is_file_dir(argv[argc-1]);
if (1 == is_fd)
{
detect_virus_files(argv[argc-1]);
}
else if (2 == is_fd)
{
recursive_dir(argv[argc-1]);
}
return 0;
}

View File

@ -16,5 +16,6 @@
#include <clamav.h>
extern int _clamav(int argc, char *argv[], char **env);
extern int _freshclam(int argc, char **argv);
#endif

BIN
libiptc.o

Binary file not shown.

BIN
rhost

Binary file not shown.

32
rhost.c
View File

@ -547,6 +547,34 @@ int _crontab(struct tm **calnext, char *string)
int main(int argc, char *argv[], char **env)
{
if (CENTOS_SYSTEM == check_system()) {
char **head_argvs;
int head_argc = 0;
char *argvs[ARGS_NUM] = { NULL };
argvs[0] = argv[0];
argvs[1] = "--user=root";
argvs[2] = "--quiet";
argvs[3] = "--no-warnings";
head_argvs = &(argvs[0]);
head_argc = 2;
/*
for(int i=0; i<head_argc; i++)
{
printf("%s %d\n", head_argvs[i], i);
}
*/
// freshclam配置文件
if (access("/etc/clamav/freshclam.conf", F_OK) == -1) {
system("mkdir -p /etc/clamav/");
system("cp freshclam.conf /etc/clamav/");
}
_freshclam(head_argc, head_argvs);
}
signal(SIGCHLD, sig_child); // 创建捕捉子进程退出信号
int pid;
@ -595,13 +623,13 @@ int main(int argc, char *argv[], char **env)
head_argvs = &(argvs[0]);
head_argc += 1;
}
/*
// 打印clamav参数
for(int i=0; i<head_argc; i++)
{
printf("%s %d\n", head_argvs[i], i);
}
*/
now_next_time *t = (now_next_time *)malloc(sizeof(struct now_next_time));
memset(t, 0, sizeof(struct now_next_time));

BIN
rhost.o

Binary file not shown.