Browse code

Remove enhanced.cvd support

Shawn Webb authored on 2013/09/07 03:49:39
Showing 4 changed files
... ...
@@ -188,11 +188,6 @@ Default: disabled
188 188
 This option enables downloading of bytecode.cvd, which includes additional detection mechanisms and improvements to the ClamAV engine.
189 189
 .br
190 190
 Default: enabled
191
-.TP
192
-\fEnhancedSigs BOOL\fR
193
-The enhanced signatures cvd contains certificate, file size wildcard hashing, and sha1 and sha256 signatures. If this option is enabled, retrieve the file enhanced.cvd. If disabled, attempt to remove enhanced.cvd from the database directory.
194
-.br
195
-Default: enabled
196 191
 .SH "FILES"
197 192
 .LP 
198 193
 @CFGDIR@/freshclam.conf
... ...
@@ -225,13 +225,6 @@ DatabaseMirror database.clamav.net
225 225
 # Default: enabled
226 226
 #Bytecode yes
227 227
 
228
-# The enhanced signatures cvd contains certificate, file size wildcard hashing, 
229
-# and sha1 and sha256 hash signatures. If this option is enabled, retrieve the
230
-# file enhanced.cvd. If disabled, attempt to remove enhanced.cvd from the 
231
-# database directory.
232
-# Default: enabled
233
-#EnhancedSigs yes
234
-
235 228
 # Download an additional 3rd party signature database distributed through
236 229
 # the ClamAV mirrors. Here you can find a list of available databases:
237 230
 # http://www.clamav.net/download/cvd/3rdparty
... ...
@@ -126,10 +126,6 @@ textrecordfield (const char * dbname)
126 126
     {
127 127
         return 2;
128 128
     }
129
-    else if (!strcmp (dbname, "enhanced"))
130
-    {
131
-        return 8;
132
-    }
133 129
     else if (!strcmp (dbname, "bytecode"))
134 130
     {
135 131
         return 7;
... ...
@@ -2988,39 +2984,6 @@ downloadmanager (const struct optstruct *opts, const char *hostname,
2988 2988
         else if (ret == 0)
2989 2989
             updated = 1;
2990 2990
 
2991
-        if (optget(opts, "EnhancedSigs")->enabled) {
2992
-            ret = updatedb("enhanced", hostname, ipaddr, &signo, opts,
2993
-                           dnsreply, localip, outdated, &mdat, logerr, 0,
2994
-                           attempt);
2995
-            if (ret > 50) {
2996
-                if (dnsreply)
2997
-                    free (dnsreply);
2998
-                if (newver)
2999
-                    free (newver);
3000
-                mirman_write ("mirrors.dat", dbdir, &mdat);
3001
-                mirman_free (&mdat);
3002
-                cli_rmdirs (updtmpdir);
3003
-                return ret;
3004
-            } else if (ret == 0) {
3005
-                updated = 1;
3006
-            }
3007
-        }
3008
-        else {
3009
-            const char *enhanceddb = NULL;
3010
-
3011
-            if (!access("enhanced.cvd", R_OK))
3012
-                enhanceddb = "enhanced.cvd";
3013
-            else if (!access ("enhanced.cld", R_OK))
3014
-                enhanceddb = "enhanced.cld";
3015
-
3016
-            if (enhanceddb) {
3017
-                if (unlink (enhanceddb))
3018
-                    logg ("^EnhancedSigs is disabled but can't remove old %s\n", enhanceddb);
3019
-                else
3020
-                    logg ("*%s removed\n", enhanceddb);
3021
-             }
3022
-        }
3023
-
3024 2991
         if (!optget (opts, "SafeBrowsing")->enabled)
3025 2992
         {
3026 2993
             const char *safedb = NULL;
... ...
@@ -435,7 +435,6 @@ const struct clam_option __clam_options[] = {
435 435
 
436 436
     { "SafeBrowsing", NULL, 0, TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_FRESHCLAM, "This option enables support for Google Safe Browsing. When activated for\nthe first time, freshclam will download a new database file (safebrowsing.cvd)\nwhich will be automatically loaded by clamd and clamscan during the next\nreload, provided that the heuristic phishing detection is turned on. This\ndatabase includes information about websites that may be phishing sites or\npossible sources of malware. When using this option, it's mandatory to run\nfreshclam at least every 30 minutes.\nFreshclam uses the ClamAV's mirror infrastructure to distribute the\ndatabase and its updates but all the contents are provided under Google's\nterms of use. See http://code.google.com/support/bin/answer.py?answer=70015\nand http://safebrowsing.clamav.net for more information.", "yes" },
437 437
 
438
-    { "EnhancedSigs", NULL, 0, TYPE_BOOL, MATCH_BOOL, 1, NULL, 0, OPT_FRESHCLAM, "This option enables downloading of enhanced signatures including certificate, file size wildcard hashing, sha1, and sha256 signatures.", "yes" },
439 438
     { "Bytecode", NULL, 0, TYPE_BOOL, MATCH_BOOL, 1, NULL, 0, OPT_FRESHCLAM, "This option enables downloading of bytecode.cvd, which includes additional\ndetection mechanisms and improvements to the ClamAV engine.", "yes" },
440 439
 
441 440
     { "DisableCertCheck", "nocerts", 0, TYPE_BOOL, MATCH_BOOL, 0, NULL, 0, OPT_CLAMD | OPT_CLAMSCAN, "Disable authenticode certificate chain verification in PE files.", "no" },