OpenVAS Manager
7.0.3~git
|
#include "types.h"
#include <openvas/misc/openvas_server.h>
#include <glib.h>
#include <gnutls/gnutls.h>
#include <sys/types.h>
Go to the source code of this file.
Macros | |
#define | TO_CLIENT_BUFFER_SIZE 26214400 |
The size of the to_client data buffer, in bytes. More... | |
Functions | |
int | init_omp (GSList *, int, const gchar *, int, int, int, int, void(*)(), int(*)(openvas_connection_t *, gchar *), int) |
Initialise OMP library. More... | |
void | init_omp_process (int, const gchar *, int(*)(const char *, void *), void *, gchar **) |
Initialise OMP library data for a process. More... | |
int | process_omp_client_input () |
Process any XML available in from_client. More... | |
int | process_omp_change () |
Deal with any changes caused by other processes. More... | |
Variables | |
char | to_client [] |
Buffer of output to the client. More... | |
buffer_size_t | to_client_start |
The start of the data in the to_client buffer. More... | |
buffer_size_t | to_client_end |
The end of the data in the to_client buffer. More... | |
#define TO_CLIENT_BUFFER_SIZE 26214400 |
int init_omp | ( | 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(*)(openvas_connection_t *, gchar *) | fork_connection, | ||
int | skip_db_check | ||
) |
Initialise OMP library.
[in] | log_config | Logging configuration list. |
[in] | nvt_cache_mode | True when running in NVT caching mode. |
[in] | database | Location of manage database. |
[in] | max_ips_per_target | Max number of IPs per target. |
[in] | max_email_attachment_size | Max size of email attachments. |
[in] | max_email_include_size | Max size of email inclusions. |
[in] | max_email_message_size | Max size of email user message text. |
[in] | progress | Function to update progress, or NULL. |
[in] | fork_connection | Function to fork a connection to the OMP daemon layer, or NULL. |
[in] | skip_db_check | Skip DB check. |
Definition at line 30814 of file omp.c.
void init_omp_process | ( | int | update_nvt_cache, |
const gchar * | database, | ||
int(*)(const char *, void *) | write_to_client, | ||
void * | write_to_client_data, | ||
gchar ** | disable | ||
) |
Initialise OMP library data for a process.
[in] | update_nvt_cache | 0 operate normally, -1 just update NVT cache, -2 just rebuild NVT cache. |
[in] | database | Location of manage database. |
[in] | write_to_client | Function to write to client. |
[in] | write_to_client_data | Argument to write_to_client . |
[in] | disable | Commands to disable. |
This should run once per process, before the first call to process_omp_client_input.
Definition at line 30846 of file omp.c.
int process_omp_change | ( | ) |
Deal with any changes caused by other processes.
Definition at line 31098 of file omp.c.
References manage_check_current_task().
int process_omp_client_input | ( | ) |
Process any XML available in from_client.
Definition at line 30895 of file omp.c.
References manage_transaction_stop().
char to_client[] |
Buffer of output to the client.
buffer_size_t to_client_end |
buffer_size_t to_client_start |