mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Don't associate nsock logging info to a nspool.
Make current loglevel and current log callback global to the library. Attaching them to the nsock pool doesn't bring any benefit and prevents from logging activity in code sections that don't have access to a pool (such as proxy chain specification parsing). Updated external calls and nsock tests accordingly.
This commit is contained in:
4
output.h
4
output.h
@@ -284,8 +284,8 @@ void printfinaloutput();
|
||||
void printdatafilepaths();
|
||||
|
||||
/* nsock logging interface */
|
||||
void nmap_adjust_loglevel(nsock_pool nsp, bool trace);
|
||||
void nmap_nsock_stderr_logger(nsock_pool nsp, const struct nsock_log_rec *rec);
|
||||
void nmap_adjust_loglevel(bool trace);
|
||||
void nmap_nsock_stderr_logger(const struct nsock_log_rec *rec);
|
||||
|
||||
#endif /* OUTPUT_H */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user