/usr/include/openvas/nasl.h is in libopenvasnasl2-dev 2.0.2-2.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | #ifndef __LIB_NASL_H__
#define __LIB_NASL_H__
/**
* @mainpage
*
* @section installation Overview and installation instructions
* @verbinclude README
*
* @section copying License Information
* @verbinclude COPYING
*/
/**
* NASL language level
* Below 1000 is 1.2.6 and before
*
* Level 1000:
* ACT_INIT, ACT_KILL_HOST and ACT_END
*
* Level 2000:
* NASL2
*
* Level 2010:
* Fix repeat / until loop
* Handle icmp_seq parameter in forge_icmp_packet
*
* Level 2020:
* Allow \0 or \x00 in string constants
*
* Level 2100
* "Constant arrays" added, e.g. v = [ 'a' => 1, 'x' => 'zzz' ];
*
* Level 2150
* ACT_FLOOD added
*
* Level 2160
* Unnamed function arguments
*
* Level 2170
* "continue" instruction
*
* Level 2172
* forge_ip_packet does not ignore its ip_dst argument any more
*
* Level 2180
* __FCT_ANON_ARGS special variable - Maybe $ident should be dropped
*
* Level 2181
* Improve libnasl for NASL wrappers: fix pread() and add get_preference()
*
* Level 2190
* Remove "dollar identifiers" $1, $2... $*
*
* Level 2191
* CVE, BID and Xrefs can be much more numerous now
*
* Level 2200
* New functions: fwrite, script_get_preference_file_location
*
* Level 2201
* New functions: file_stat(), file_read(), file_write(), file_close(), file_seek()
*
* Level 2202
* Only signed scripts can write 'Secret/' entries in the KB
* New function: open_sock_to_kdc()
*
* Level 2203
* New function send_capture()
* Fixed shared sockets
*
* Level 2204
* Arrays of arrays
*
* Level 2205
* Fixed a bug in copying arrays of arrays
*
* Level 2206
* Added script_oid support
*
* Level 2300
* New functions: log_message(), debug_message()
*
* Level 2310
* New functions: script_tag()
*
* Level 2320
* New functions: script_mandatory_keys()
*/
/* NASL_LEVEL is deprecated: can be removed once openvas-plugins < 1.0.6 is deprecated */
#define NASL_LEVEL 2205
#define OPENVAS_NASL_LEVEL 2320
/* Signature information extraction and verification (not nasl- specific
anymore, thus likely to be moved to openvas-libraries): */
#include <glib.h>
typedef struct {
char* fpr;
char* ownername;
int trusted;
char* full_public_key;
} openvas_certificate;
int nasl_verify_signature(const char* filename);
char* nasl_extract_signature_fprs(const char* filename);
GSList* nasl_get_all_certificates();
void openvas_certificate_free(openvas_certificate*);
/* End of Signature information extraction */
int add_nasl_inc_dir (const char *);
/* These can be removed with the next major release after 2.0: */
__attribute__ ((__deprecated__)) int execute_nasl_script(struct arglist *, const char *, const char *, int);
int exec_nasl_script(struct arglist *, const char *, int);
int execute_preparsed_nasl_script(struct arglist *, char *, char *, int, int);
char * nasl_version();
pid_t nasl_server_start(char *, char *);
void nasl_server_recompile(char*, char *);
/* exec_nasl_script modes */
#define NASL_EXEC_DESCR (1 << 0)
#define NASL_EXEC_PARSE_ONLY (1 << 1)
#define NASL_EXEC_DONT_CLEANUP (1 << 2)
#define NASL_ALWAYS_SIGNED (1 << 3)
#define NASL_COMMAND_LINE (1 << 4)
#define NASL_LINT (1 << 5)
#define NASL_ERR_NOERR 0
#define NASL_ERR_ETIMEDOUT 1
#define NASL_ERR_ECONNRESET 2
#define NASL_ERR_EUNREACH 3
#define NASL_ERR_EUNKNOWN 99
#endif
|