diff --git a/NmapOps.h b/NmapOps.h index bbde12ca9..ee7e284b6 100644 --- a/NmapOps.h +++ b/NmapOps.h @@ -123,6 +123,9 @@ /* $Id$ */ +#ifndef NMAP_OPS_H +#define NMAP_OPS_H + #include "nmap.h" #include "global_structures.h" #include "output.h" @@ -425,3 +428,4 @@ class NmapOps { bool spoof_mac_set; }; +#endif diff --git a/ncat/base64.h b/ncat/base64.h index 1d6609e77..e503498df 100644 --- a/ncat/base64.h +++ b/ncat/base64.h @@ -120,4 +120,9 @@ /* $Id$ */ +#ifndef NCAT_BASE64_H +#define NCAT_BASE64_H + char *b64enc(const unsigned char *data, int len); + +#endif diff --git a/ncat/ncat_config.h b/ncat/ncat_config.h index 56ec9b675..bb4698c8d 100644 --- a/ncat/ncat_config.h +++ b/ncat/ncat_config.h @@ -118,6 +118,9 @@ * * ***************************************************************************/ +#ifndef NCAT_CONFIG_H +#define NCAT_CONFIG_H + /* This is a wrapper that selects config.h or config_win.h depending on whether we're using Autoconf or a static Windows configuration file. */ @@ -128,3 +131,5 @@ #else #error "No config.h, and not WIN32" #endif + +#endif diff --git a/ncat/ncat_connect.h b/ncat/ncat_connect.h index 2514bf1fb..b3c371102 100644 --- a/ncat/ncat_connect.h +++ b/ncat/ncat_connect.h @@ -119,8 +119,12 @@ ***************************************************************************/ /* $Id$ */ +#ifndef NCAT_CONNECT_H +#define NCAT_CONNECT_H #include "nsock.h" /* handle nsock-powered connections */ extern int ncat_connect(void); + +#endif diff --git a/ncat/ncat_core.h b/ncat/ncat_core.h index 065edfe90..89bd581db 100644 --- a/ncat/ncat_core.h +++ b/ncat/ncat_core.h @@ -120,6 +120,9 @@ /* $Id$ */ +#ifndef NCAT_CORE_H +#define NCAT_CORE_H + #include "nsock.h" #include "nbase.h" #include "util.h" @@ -266,3 +269,5 @@ extern void set_lf_mode(void); extern int getaddrfamily(const char *addr); extern int setenv_portable(const char *name, const char *value); extern void setup_environment(struct fdinfo *fdinfo); + +#endif diff --git a/ncat/ncat_exec.h b/ncat/ncat_exec.h index d429352f3..6f005b43d 100644 --- a/ncat/ncat_exec.h +++ b/ncat/ncat_exec.h @@ -119,6 +119,8 @@ ***************************************************************************/ /* $Id$ */ +#ifndef NCAT_EXEC_H +#define NCAT_EXEC_H /* fork and exec a child process with netexec. Close the given file descriptor in the parent process. Return the child's PID or -1 on error. */ @@ -133,3 +135,5 @@ extern void netexec(struct fdinfo *info, char *cmdexec); child process dies. This is only used on Windows. */ extern void set_pseudo_sigchld_handler(void (*handler)(void)); #endif + +#endif diff --git a/ncat/ncat_listen.h b/ncat/ncat_listen.h index e6118a02e..158f84fe6 100644 --- a/ncat/ncat_listen.h +++ b/ncat/ncat_listen.h @@ -119,5 +119,9 @@ ***************************************************************************/ /* $Id$ */ +#ifndef NCAT_LISTEN_H +#define NCAT_LISTEN_H extern int ncat_listen(void); + +#endif diff --git a/ncat/ncat_proxy.h b/ncat/ncat_proxy.h index 581cf531a..d2a6b96e0 100644 --- a/ncat/ncat_proxy.h +++ b/ncat/ncat_proxy.h @@ -120,6 +120,9 @@ /* $Id$ */ +#ifndef NCAT_PROXY_H +#define NCAT_PROXY_H + /* How long we will honor nonces we issue, in seconds. The client gets back a 407 with stale="true" if the nonce is valid but expired. Nonces are good only once, so this is really a limit on how long we have to keep nonces on a @@ -130,3 +133,5 @@ * Simple forking HTTP proxy. */ extern int ncat_http_server(void); + +#endif diff --git a/ncat/ncat_ssl.h b/ncat/ncat_ssl.h index 9ba558136..7b9c38603 100644 --- a/ncat/ncat_ssl.h +++ b/ncat/ncat_ssl.h @@ -119,6 +119,8 @@ ***************************************************************************/ /* $Id$ */ +#ifndef NCAT_SSL_H +#define NCAT_SSL_H #include "ncat_config.h" @@ -159,3 +161,4 @@ extern int ssl_load_default_ca_certs(SSL_CTX *ctx); extern int ssl_handshake(struct fdinfo *sinfo); #endif +#endif diff --git a/nmap_dns.h b/nmap_dns.h index 217a0aa31..a3d514824 100644 --- a/nmap_dns.h +++ b/nmap_dns.h @@ -119,6 +119,9 @@ * * ***************************************************************************/ +#ifndef NMAP_DNS_H +#define NMAP_DNS_H + class Target; #include "nbase.h" @@ -131,3 +134,4 @@ const char *lookup_cached_host(u32 ip); std::list get_dns_servers(); +#endif diff --git a/nmap_tty.h b/nmap_tty.h index 7d1d550aa..eda90c82f 100644 --- a/nmap_tty.h +++ b/nmap_tty.h @@ -120,6 +120,9 @@ * * ***************************************************************************/ +#ifndef NMAP_TTY_H +#define NMAP_TTY_H + /* * Initializes the terminal for unbuffered non-blocking input. Also * registers tty_done() via atexit(). You need to call this before @@ -133,3 +136,4 @@ void tty_init(); calling method should print a status message */ bool keyWasPressed(); +#endif diff --git a/nse_ssl_cert.h b/nse_ssl_cert.h index b096fb3ce..6a37b4b5b 100644 --- a/nse_ssl_cert.h +++ b/nse_ssl_cert.h @@ -122,7 +122,11 @@ /* $Id:$ */ +#ifndef NMAP_SSL_CERT_H +#define NMAP_SSL_CERT_H + int l_get_ssl_certificate(lua_State *L); int l_parse_ssl_certificate(lua_State *L); void nse_nsock_init_ssl_cert(lua_State *L); +#endif diff --git a/scan_engine_connect.h b/scan_engine_connect.h index 9fcef0546..4644d69db 100644 --- a/scan_engine_connect.h +++ b/scan_engine_connect.h @@ -123,8 +123,13 @@ /* $Id$ */ +#ifndef SCAN_ENGINE_CONNECT_H +#define SCAN_ENGINE_CONNECT_H + #include "scan_engine.h" UltraProbe *sendConnectScanProbe(UltraScanInfo *USI, HostScanStats *hss, u16 destport, u8 tryno, u8 pingseq); bool do_one_select_round(UltraScanInfo *USI, struct timeval *stime); + +#endif diff --git a/scan_engine_raw.h b/scan_engine_raw.h index d51efb0d1..cc4d9c158 100644 --- a/scan_engine_raw.h +++ b/scan_engine_raw.h @@ -123,6 +123,9 @@ /* $Id$ */ +#ifndef SCAN_ENGINE_RAW_H +#define SCAN_ENGINE_RAW_H + #include "scan_engine.h" #include "Target.h" #include @@ -139,3 +142,5 @@ UltraProbe *sendIPScanProbe(UltraScanInfo *USI, HostScanStats *hss, bool get_arp_result(UltraScanInfo *USI, struct timeval *stime); bool get_ns_result(UltraScanInfo *USI, struct timeval *stime); bool get_pcap_result(UltraScanInfo *USI, struct timeval *stime); + +#endif diff --git a/traceroute.h b/traceroute.h index ee77f4538..fd4d70441 100644 --- a/traceroute.h +++ b/traceroute.h @@ -120,7 +120,10 @@ * * ***************************************************************************/ -/* $Id: nmap.h 6676 2008-01-12 22:39:34Z fyodor $ */ +/* $Id$ */ + +#ifndef NMAP_TRACEROUTE_H +#define NMAP_TRACEROUTE_H #include "Target.h" @@ -130,3 +133,4 @@ int traceroute(std::vector &Targets); void traceroute_hop_cache_clear(); +#endif