diff --git a/nmap.cc b/nmap.cc index 7084bde46..06fbe9ff2 100644 --- a/nmap.cc +++ b/nmap.cc @@ -1638,7 +1638,7 @@ int nmap_main(int argc, char *argv[]) { xml_attribute("start", "%lu", (unsigned long) timep); xml_attribute("startstr", "%s", mytime); xml_attribute("version", "%s", NMAP_VERSION); - xml_attribute("xmloutputversion", "1.04"); + xml_attribute("xmloutputversion", NMAP_XMLOUTPUTVERSION); xml_close_start_tag(); xml_newline(); diff --git a/nmap.h b/nmap.h index 22e6b4c65..a1655c33c 100644 --- a/nmap.h +++ b/nmap.h @@ -239,6 +239,8 @@ void *realloc(); earlier) than NMAP_VERSION. */ #define NMAP_UPDATE_CHANNEL "5.61TEST4" +#define NMAP_XMLOUTPUTVERSION "1.04" + /* User configurable #defines: */ #define MAX_PROBE_PORTS 10 /* How many TCP probe ports are allowed ? */ /* Default number of ports in parallel. Doesn't always involve actual