mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Factor out XML script result writing.
This commit is contained in:
parent
54fa9ec345
commit
3f415ef38a
3 changed files with 14 additions and 12 deletions
|
|
@ -381,6 +381,14 @@ ScriptResults *get_script_scan_results_obj (void)
|
|||
return &script_scan_results;
|
||||
}
|
||||
|
||||
void ScriptResult::write_xml() const
|
||||
{
|
||||
xml_open_start_tag("script");
|
||||
xml_attribute("id", "%s", get_id());
|
||||
xml_attribute("output", "%s", get_output());
|
||||
xml_close_empty_tag();
|
||||
}
|
||||
|
||||
/* int panic (lua_State *L)
|
||||
*
|
||||
* Panic function set via lua_atpanic().
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue