[Openvas-commits] r5701 - in trunk/openvas-manager: . src

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Oct 23 23:38:19 CEST 2009


Author: jan
Date: 2009-10-23 23:38:16 +0200 (Fri, 23 Oct 2009)
New Revision: 5701

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/omp.c
Log:
* src/omp.c (latex_severity_heading, print_report_latex): Use
High/Medium/Low terms.



Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-10-23 21:24:15 UTC (rev 5700)
+++ trunk/openvas-manager/ChangeLog	2009-10-23 21:38:16 UTC (rev 5701)
@@ -1,3 +1,8 @@
+2009-10-23  Jan-Oliver Wagner <jan-oliver.wagner at greenbone.net>
+
+	* src/omp.c (latex_severity_heading, print_report_latex): Use
+	High/Medium/Low terms.
+
 2009-10-23  Matthew Mundell <matthew.mundell at intevation.de>
 
 	* src/lsc_user.c (ssh_privkey_create, ssh_pubkey_create): Make return int.

Modified: trunk/openvas-manager/src/omp.c
===================================================================
--- trunk/openvas-manager/src/omp.c	2009-10-23 21:24:15 UTC (rev 5700)
+++ trunk/openvas-manager/src/omp.c	2009-10-23 21:38:16 UTC (rev 5701)
@@ -2144,11 +2144,11 @@
 latex_severity_heading (const char *severity)
 {
   if (strcmp (severity, "Security Hole") == 0)
-    return "Vulnerability";
+    return "Severity: High";
   if (strcmp (severity, "Security Note") == 0)
-    return "Informational";
+    return "Severity: Low";
   if (strcmp (severity, "Security Warning") == 0)
-    return "Warning";
+    return "Severity: Medium";
   return severity;
 }
 
@@ -2313,12 +2313,12 @@
                "\\hyperref[host:%s]{%s}&%s&%i&%i&%i&0\\\\\n",
                host,
                host,
-               ((holes > 1) ? "Security Holes found"
-                : ((holes == 1) ? "Security Hole found"
-                   : ((warnings > 1) ? "Security Warnings found"
-                      : ((warnings == 1) ? "Security Warning found"
-                         : ((notes > 1) ? "Security Notes found"
-                            : ((notes == 1) ? "Security Note found"
+               ((holes > 1) ? "Severity: High"
+                : ((holes == 1) ? "Severity: High"
+                   : ((warnings > 1) ? "Severity: Medium"
+                      : ((warnings == 1) ? "Severity: Medium"
+                         : ((notes > 1) ? "Severity: Low"
+                            : ((notes == 1) ? "Severity: Low"
                                : "")))))),
                holes,
                warnings,
@@ -2368,7 +2368,7 @@
       fprintf (out,
                "\\begin{tabular}{|l|l|}\n"
                "\\hline\n"
-               "\\rowcolor{openvas_report}Service (Port)&Issue regarding port\\\\\n"
+               "\\rowcolor{openvas_report}Service (Port)&Threat Level\\\\\n"
                "\\hline\n");
 
       init_result_iterator (&results, report, host,
@@ -2385,12 +2385,12 @@
           if (last_port) g_free (last_port);
           last_port = g_strdup (result_iterator_port (&results));
           fprintf (out,
-                   "\\hyperref[port:%s %s]{%s}&%s(s) found\\\\\n"
+                   "\\hyperref[port:%s %s]{%s}&%s\\\\\n"
                    "\\hline\n",
                    host_iterator_host (&hosts),
                    last_port,
                    last_port,
-                   result_iterator_type (&results));
+                   result_type_threat(result_iterator_type (&results)));
         }
       cleanup_iterator (&results);
       if (last_port) g_free (last_port);



More information about the Openvas-commits mailing list