[Openvas-commits] r5526 - in trunk/openvas-scanner: . openvassd

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Oct 13 23:35:35 CEST 2009


Author: jan
Date: 2009-10-13 23:35:34 +0200 (Tue, 13 Oct 2009)
New Revision: 5526

Modified:
   trunk/openvas-scanner/ChangeLog
   trunk/openvas-scanner/openvassd/plugs_hash.c
Log:
* openvassd/plugs_hash.c (plugins_send_md5_byname): Removed. This
function is not used anyway. It uses names to identify NVTs which
are not required to be unique. Instead, OID is used.



Modified: trunk/openvas-scanner/ChangeLog
===================================================================
--- trunk/openvas-scanner/ChangeLog	2009-10-13 21:21:40 UTC (rev 5525)
+++ trunk/openvas-scanner/ChangeLog	2009-10-13 21:35:34 UTC (rev 5526)
@@ -1,5 +1,11 @@
 2009-10-13  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
 
+	* openvassd/plugs_hash.c (plugins_send_md5_byname): Removed. This
+	function is not used anyway. It uses names to identify NVTs which
+	are not required to be unique. Instead, OID is used.
+
+2009-10-13  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
+
 	* openvassd/openvassd.c: Added missing include. Resolves
 	compiler warning.
 

Modified: trunk/openvas-scanner/openvassd/plugs_hash.c
===================================================================
--- trunk/openvas-scanner/openvassd/plugs_hash.c	2009-10-13 21:21:40 UTC (rev 5525)
+++ trunk/openvas-scanner/openvassd/plugs_hash.c	2009-10-13 21:35:34 UTC (rev 5526)
@@ -195,47 +195,6 @@
  auth_printf(globals, "<|> SERVER\n");
 }
 
-
-static void plugins_send_md5_byname(struct arglist * globals)
-{ 
- struct arglist * preferences = arg_get_value(globals,"preferences");
- char * dirname  = arg_get_value(preferences, "plugins_folder");
- DIR * dir;
- struct dirent * dp;
-
- if( dirname == NULL )
-	return;
-
- dir = opendir(dirname);
- if( dir == NULL )
-	return;
-
- auth_printf(globals, "SERVER <|> PLUGINS_MD5\n");
- while ( (dp = readdir(dir)) != NULL )
- {
-  char fullname[PATH_MAX + 1];
-  char * tmp;
-
-  if(dp->d_name[0] == '.')
-	continue;
-
-  if(strlen(dirname) + strlen(dp->d_name) > (sizeof(fullname) - 2))
-	continue;
-
-  snprintf(fullname, sizeof(fullname), "%s/%s", dirname, dp->d_name);
-  tmp = file_hash(fullname);
-  if( tmp != NULL )
-   {
-    auth_printf(globals, "%s <|> %s\n", dp->d_name, tmp);
-    efree(&tmp);
-   }
- }
- closedir(dir);
- auth_printf(globals, "<|> SERVER\n");
-}
-
-
-
 void plugins_send_md5(struct arglist * globals)
 {
 	plugins_send_md5_byid(globals);



More information about the Openvas-commits mailing list