12#ifndef MISC_PLUGUTILS_H
13#define MISC_PLUGUTILS_H
17#include <gvm/base/nvti.h>
92 const char *,
const char *);
101#define post_alarm_tcp post_alarm
105 const char *,
const char *);
110#define post_error_tcp post_error
114 const char *,
const char *);
123#define post_log_tcp post_log
void plug_set_ssl_cert(struct script_infos *, char *)
void plug_set_key_len_volatile(struct script_infos *, char *, int, const void *, int, size_t)
Set volatile key with expire.
void plug_set_port_transport(struct script_infos *, int, int)
void proto_post_alarm(const char *, struct script_infos *, int, const char *, const char *, const char *)
kb_t plug_get_kb(struct script_infos *)
int kb_item_add_int_unique_with_main_kb_check(kb_t, const char *, int)
Check if the current kb corresponds to the original scanid, if it matches it call kb_item_add_int_uni...
void post_log_with_uri(const char *, struct script_infos *, int, const char *, const char *)
Post a log message about a tcp port with a uri.
void plug_set_key_volatile(struct script_infos *, char *, int, const void *, int)
Set volatile key with expire.
void plug_set_key(struct script_infos *, char *, int, const void *)
void plug_set_ssl_CA_file(struct script_infos *, char *)
char * get_plugin_preference(const char *, const char *, int)
Get the a plugins preference.
char * plug_get_host_ip_str(struct script_infos *)
unsigned int plug_get_host_open_port(struct script_infos *desc)
int kb_get_port_state_proto(kb_t kb, int portnum, char *proto)
void plug_set_ssl_key(struct script_infos *, char *)
int kb_item_push_str_with_main_kb_check(kb_t, const char *, const char *)
Check if the current kb corresponds to the original scanid, if it matches it kb_item_push_str....
void proto_post_error(const char *, struct script_infos *, int, const char *, const char *, const char *)
void plug_set_key_len(struct script_infos *, char *, int, const void *, size_t)
char * plug_get_host_source(struct script_infos *, const char *)
const char * plug_current_vhost(void)
char * get_plugin_preference_file_content(struct script_infos *, const char *)
Get the file contents of a plugins preference that is of type "file".
void post_error(const char *, struct script_infos *, int, const char *, const char *)
void post_alarm_udp(struct script_infos *, int, const char *, const char *)
GSList * plug_get_host_fqdn_list(struct script_infos *)
int plug_add_host_fqdn(struct script_infos *, const char *, const char *)
long get_plugin_preference_file_size(struct script_infos *, const char *)
Get the file size of a plugins preference that is of type "file".
void post_alarm(const char *, struct script_infos *, int, const char *, const char *)
struct in6_addr * plug_get_host_ip(struct script_infos *)
void plug_set_dep(struct script_infos *, const char *)
int kb_item_set_int_with_main_kb_check(kb_t, const char *, int)
Check if the current kb corresponds to the original scanid, if it matches it call kb_item_set_int....
char * plug_get_host_fqdn(struct script_infos *)
int kb_item_add_str_unique_with_main_kb_check(kb_t, const char *, const char *, size_t, int)
Check if the current kb corresponds to the original scanid, if it matches it call kb_item_add_str_uni...
int kb_item_set_str_with_main_kb_check(kb_t, const char *, const char *, size_t)
Check if the current kb corresponds to the original scanid, if it matches it call kb_item_set_str....
void plug_replace_key(struct script_infos *, char *, int, void *)
int kb_item_add_int_with_main_kb_check(kb_t, const char *, int)
Check if the current kb corresponds to the original scanid, if it matches it call kb_item_add_int....
int host_get_port_state(struct script_infos *, int)
void plug_replace_key_len(struct script_infos *, char *, int, void *, size_t)
void post_log(const char *, struct script_infos *, int, const char *)
Post a log message about a tcp port.
const char * get_plugin_preference_fname(struct script_infos *, const char *)
Get the file name of a plugins preference that is of type "file".
void scanner_add_port(struct script_infos *, int, char *)
int check_kb_inconsistency(kb_t)
Check if the current main kb corresponds to the original scan main kb. @description Compares the scan...
void plug_set_ssl_pem_password(struct script_infos *, char *)
void * plug_get_key(struct script_infos *, char *, int *, size_t *, int)
Get values from a kb under the given key name.
int host_get_port_state_udp(struct script_infos *, int)
struct script_infos * plug_create_from_nvti_and_prefs(const nvti_t *)
void proto_post_log(const char *, struct script_infos *, int, const char *, const char *, const char *)
Post a log message.
int plug_get_port_transport(struct script_infos *, int)
Auxiliary structures for scanner.