26 #ifndef OPENVAS_MANAGER_OMPD_H
27 #define OPENVAS_MANAGER_OMPD_H
30 #include <openvas/misc/openvas_server.h>
32 #include <netinet/in.h>
33 #include <gnutls/gnutls.h>
38 #ifndef READ_PROTOCOL_TIMEOUT
39 #define READ_PROTOCOL_TIMEOUT 300
45 #define FROM_BUFFER_SIZE 1048576
59 init_ompd (GSList*,
int,
const gchar*,
int,
int,
int,
int,
void (*) (),
60 int (*) (openvas_connection_t *, gchar *),
buffer_size_t from_scanner_end
The end of the data in the from_scanner buffer.
void(* progress)()
Function to mark progress.
buffer_size_t from_buffer_size
Size of from_client data buffer, in bytes.
buffer_size_t to_client_start
The start of the data in the to_client buffer.
struct sockaddr_in scanner_address
int serve_omp(openvas_connection_t *client_connection, const gchar *database, gchar **disable, void(*progress)())
Serve the OpenVAS Management Protocol (OMP).
buffer_size_t from_client_start
The start of the data in the from_client buffer.
void init_ompd_process(const gchar *database, gchar **disable)
Initialise a process forked within the OMP daemon.
int init_ompd(GSList *log_config, int nvt_cache_mode, const gchar *database, int max_ips_per_target, int max_email_attachment_size, int max_email_include_size, int max_email_message_size, void(*progress)(), int(*fork_connection)(openvas_connection_t *, gchar *), int skip_db_check)
Initialise the OMP library for the OMP daemon.
char to_client[TO_CLIENT_BUFFER_SIZE]
Buffer of output to the client.
char * from_scanner
Buffer of input from the scanner.
buffer_size_t from_client_end
The end of the data in the from_client buffer.
buffer_size_t from_scanner_start
The start of the data in the from_scanner buffer.
char from_client[]
Buffer of input from the client.
buffer_size_t to_client_end
The end of the data in the to_client buffer.
unsigned int buffer_size_t