Greenbone Security Assistant
gsad_base.h
Go to the documentation of this file.
1 /* Copyright (C) 2009-2021 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 _GSAD_BASE_H
25 #define _GSAD_BASE_H
26 
27 #include "gsad_cmd.h" /* for cmd_response_data_t */
28 #include "gsad_user.h" /* for credentials_t */
29 
30 #include <glib.h>
31 #include <sys/time.h>
32 
33 int
35 
36 int
38 
39 void
40 set_chroot_state (int);
41 
42 void
43 set_http_only (int);
44 
45 char *
46 ctime_r_strip_newline (time_t *, char *);
47 
48 #endif /* not _GSAD_BASE_H */
char * ctime_r_strip_newline(time_t *, char *)
Return string from ctime_r with newline replaces with terminator.
Definition: gsad_base.c:110
int gsad_base_init()
Base init.
Definition: gsad_base.c:58
int gsad_base_cleanup()
Base init.
Definition: gsad_base.c:73
void set_http_only(int)
Sets the http_only state.
Definition: gsad_base.c:96
void set_chroot_state(int)
Sets the chroot state.
Definition: gsad_base.c:85
Headers for Response Data struct.
GSAD user handling.