Greenbone Vulnerability Manager  22.4.0~dev1
gmp.h
Go to the documentation of this file.
1 /* Copyright (C) 2009-2022 Greenbone Networks GmbH
2  *
3  * SPDX-License-Identifier: AGPL-3.0-or-later
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as
7  * published by the Free Software Foundation, either version 3 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 
24 #ifndef _GVMD_GMP_H
25 #define _GVMD_GMP_H
26 
27 #include "manage.h"
28 #include "types.h"
29 
30 #include <glib.h>
31 #include <gnutls/gnutls.h>
32 #include <gvm/util/serverutils.h>
33 #include <sys/types.h>
34 
38 #define TO_CLIENT_BUFFER_SIZE 26214400
39 
43 #define TRUNCATE_TEXT_LENGTH 10000000
44 
48 #define TRUNCATE_TEXT_SUFFIX "[...]\n(text truncated)"
49 
50 int
51 init_gmp (GSList *, const db_conn_info_t *, int, int, int, int,
52  manage_connection_forker_t, int);
53 
54 void
55 init_gmp_process (const db_conn_info_t *, int (*) (const char *, void *),
56  void *, gchar **);
57 
58 int
60 
62 extern char to_client[];
63 extern buffer_size_t to_client_start;
64 extern buffer_size_t to_client_end;
65 
66 #endif /* not _GVMD_MANAGE_H */
buffer_size_t to_client_end
The end of the data in the to_client buffer.
Definition: gmp.c:3968
buffer_size_t to_client_start
The start of the data in the to_client buffer.
Definition: gmp.c:3964
char to_client[]
Buffer of output to the client.
Definition: gmp.c:3959
int process_gmp_client_input()
Process any XML available in from_client.
Definition: gmp.c:26587
int init_gmp(GSList *, const db_conn_info_t *, int, int, int, int, manage_connection_forker_t, int)
Initialise GMP library.
Definition: gmp.c:26515
void init_gmp_process(const db_conn_info_t *, int(*)(const char *, void *), void *, gchar **)
Initialise GMP library data for a process.
Definition: gmp.c:26543
Data structure for info used to connect to the database.
Definition: manage.h:47