1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00
Files
nmap/nse_utility.h
batrick de4ba536de Merge from /nmap-exp/patrick/nse-nsock-maintenance.
This is a maintenance fix for the NSE Nsock library binding. The patch focuses
on code correctness and simplicity. The patch also brings some initial updates
with an eye towards the upcoming Lua 5.2 release. See [1] for a post concerning
this branch.

[1] http://seclists.org/nmap-dev/2010/q3/710
2010-09-18 20:35:09 +00:00

20 lines
631 B
C

#ifndef NMAP_NSE_UTILITY_H
#define NMAP_NSE_UTILITY_H
size_t table_length (lua_State *, int);
void setsfield (lua_State *, int, const char *, const char *);
void setnfield (lua_State *, int, const char *, lua_Number);
void setbfield (lua_State *, int, const char *, int);
void weak_table (lua_State *, int, int, const char *);
int success (lua_State *);
int safe_error (lua_State *, const char *);
void check_target (lua_State *, int, const char **, const char **);
unsigned short check_port (lua_State *, int, const char **);
Target *get_target (lua_State *, int);
Port *get_port (lua_State *, Target *, Port *, int);
#endif