Author: mwiegand
Date: 2008-09-09 14:55:04 +0200 (Tue, 09 Sep 2008)
New Revision: 1309
Modified:
trunk/openvas-libraries/ChangeLog
trunk/openvas-libraries/libopenvas/plugutils.c
Log:
* libopenvas/plugutils.c (proto_post_wrapped): Use OIDs instead of IDs,
removed obsolete code.
Modified: trunk/openvas-libraries/ChangeLog
===================================================================
--- trunk/openvas-libraries/ChangeLog 2008-09-09 12:45:05 UTC (rev 1308)
+++ trunk/openvas-libraries/ChangeLog 2008-09-09 12:55:04 UTC (rev 1309)
@@ -1,3 +1,8 @@
+2008-09-09 Michael Wiegand <[EMAIL PROTECTED]>
+
+ * libopenvas/plugutils.c (proto_post_wrapped): Use OIDs instead of IDs,
+ removed obsolete code.
+
2008-09-02 Michael Wiegand <[EMAIL PROTECTED]>
* libopenvas/network.c (ovas_server_context_attach): Display gnutls
Modified: trunk/openvas-libraries/libopenvas/plugutils.c
===================================================================
--- trunk/openvas-libraries/libopenvas/plugutils.c 2008-09-09 12:45:05 UTC
(rev 1308)
+++ trunk/openvas-libraries/libopenvas/plugutils.c 2008-09-09 12:55:04 UTC
(rev 1309)
@@ -1095,19 +1095,14 @@
buffer = emalloc( 1024 + len );
- if(caps->ntp_11) {
- char idbuffer[32];
+ char idbuffer[105];
const char *svc_name = nessus_get_svc_name(port, proto);
- if (caps->scan_ids) {
- if (plug_get_id(desc) == 0) {
+ if (plug_get_oid(desc) == NULL) {
*idbuffer = '\0';
} else {
- int id = plug_get_id(desc);
- snprintf(idbuffer, sizeof(idbuffer), "<|> %d ", id);
+ char * oid = plug_get_oid(desc);
+ snprintf(idbuffer, sizeof(idbuffer), "<|> %s ", oid);
}
- } else {
- *idbuffer = '\0';
- }
if(port>0){
snprintf(buffer, 1024 + len,
"SERVER <|> %s <|> %s <|> %s (%d/%s) <|> %s %s<|> SERVER\n",
@@ -1122,13 +1117,9 @@
what,
plug_get_hostname(desc),
proto, naction, idbuffer);
- } else {
- snprintf(buffer, 1024 + len, "SERVER <|> %s <|> %s <|> %d:%s <|> SERVER\n",
- what,
- plug_get_hostname(desc), port, naction);
- }
+
mark_post(desc, what, action);
soc = (int)arg_get_value(desc, "SOCKET");
_______________________________________________
Openvas-commits mailing list
[email protected]
http://lists.wald.intevation.org/mailman/listinfo/openvas-commits