[Openvas-commits] r1382 - in trunk/openvas-libraries: . libopenvas
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Fri Sep 19 13:59:57 CEST 2008
Author: mwiegand
Date: 2008-09-19 13:59:57 +0200 (Fri, 19 Sep 2008)
New Revision: 1382
Modified:
trunk/openvas-libraries/ChangeLog
trunk/openvas-libraries/libopenvas/plugutils.c
trunk/openvas-libraries/libopenvas/plugutils.h
Log:
Added support for new LOG and DEBUG messages.
* libopenvas/plugutils.c (proto_post_log, post_log, post_log_udp,
proto_post_debug, post_debug, post_debug_udp): Added functions to
support new LOG and DEBUG messages.
* libopenvas/plugutils.h: Added function declarations for new functions.
Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog 2008-09-19 10:00:29 UTC (rev 1381)
+++ trunk/openvas-libraries/ChangeLog 2008-09-19 11:59:57 UTC (rev 1382)
@@ -1,3 +1,13 @@
+2008-09-19 Michael Wiegand <michael.wiegand at intevation.de>
+
+ Added support for new LOG and DEBUG messages.
+
+ * libopenvas/plugutils.c (proto_post_log, post_log, post_log_udp,
+ proto_post_debug, post_debug, post_debug_udp): Added functions to
+ support new LOG and DEBUG messages.
+
+ * libopenvas/plugutils.h: Added function declarations for new functions.
+
2008-09-16 Michael Wiegand <michael.wiegand at intevation.de>
* libopenvas/plugutils.c (plug_get_oid): Do not use cached OIDs, use
Modified: trunk/openvas-libraries/libopenvas/plugutils.c
===================================================================
--- trunk/openvas-libraries/libopenvas/plugutils.c 2008-09-19 10:00:29 UTC (rev 1381)
+++ trunk/openvas-libraries/libopenvas/plugutils.c 2008-09-19 11:59:57 UTC (rev 1382)
@@ -1233,6 +1233,64 @@
}
+void proto_post_log(desc, port, proto, action)
+ struct arglist * desc;
+ int port;
+ const char * proto;
+ const char * action;
+{
+ proto_post_wrapped(desc, port, proto, action, "LOG");
+ return;
+}
+
+
+void post_log(desc, port, action)
+ struct arglist * desc;
+ int port;
+ const char * action;
+{
+ proto_post_log(desc, port, "tcp", action);
+}
+
+
+void post_log_udp(desc, port, action)
+ struct arglist * desc;
+ int port;
+ const char * action;
+{
+ proto_post_log(desc, port, "udp", action);
+}
+
+
+void proto_post_debug(desc, port, proto, action)
+ struct arglist * desc;
+ int port;
+ const char * proto;
+ const char * action;
+{
+ proto_post_wrapped(desc, port, proto, action, "DEBUG");
+ return;
+}
+
+
+void post_debug(desc, port, action)
+ struct arglist * desc;
+ int port;
+ const char * action;
+{
+ proto_post_debug(desc, port, "tcp", action);
+}
+
+
+void post_debug_udp(desc, port, action)
+ struct arglist * desc;
+ int port;
+ const char * action;
+{
+ proto_post_debug(desc, port, "udp", action);
+}
+
+
char * get_preference(desc, name)
struct arglist *desc;
const char * name;
Modified: trunk/openvas-libraries/libopenvas/plugutils.h
===================================================================
--- trunk/openvas-libraries/libopenvas/plugutils.h 2008-09-19 10:00:29 UTC (rev 1381)
+++ trunk/openvas-libraries/libopenvas/plugutils.h 2008-09-19 11:59:57 UTC (rev 1382)
@@ -132,6 +132,16 @@
void post_note_udp(struct arglist *, int, const char *);
#define post_note_tcp post_note
+void proto_post_debug(struct arglist *, int, const char *, const char *);
+void post_debug(struct arglist *, int, const char *);
+void post_debug_udp(struct arglist *, int, const char *);
+#define post_debug_tcp post_debug
+
+void proto_post_log(struct arglist *, int, const char *, const char *);
+void post_log(struct arglist *, int, const char *);
+void post_log_udp(struct arglist *, int, const char *);
+#define post_log_tcp post_log
+
/*
* Management of the portlists
*/
More information about the Openvas-commits
mailing list