Greenbone Security Assistant
Functions
gsad_base.h File Reference

Headers/structs used generally in GSA. More...

#include "gsad_cmd.h"
#include "gsad_user.h"
#include <glib.h>
#include <sys/time.h>

Go to the source code of this file.

Functions

int gsad_base_init ()
 Base init. More...
 
int gsad_base_cleanup ()
 Base init. More...
 
void set_chroot_state (int)
 Sets the chroot state. More...
 
void set_http_only (int)
 Sets the http_only state. More...
 
char * ctime_r_strip_newline (time_t *, char *)
 Return string from ctime_r with newline replaces with terminator. More...
 

Detailed Description

Headers/structs used generally in GSA.

Function Documentation

◆ ctime_r_strip_newline()

char* ctime_r_strip_newline ( time_t *  time,
char *  string 
)

Return string from ctime_r with newline replaces with terminator.

Parameters
[in]timeTime.
[out]stringTime string.
Returns
Return from ctime_r applied to time, with newline stripped off.

◆ gsad_base_cleanup()

int gsad_base_cleanup ( )

Base init.

Returns
0 success, -1 error.

◆ gsad_base_init()

int gsad_base_init ( )

Base init.

Returns
0 success, 1 XML needs thread support.

◆ set_chroot_state()

void set_chroot_state ( int  state)

Sets the chroot state.

Parameters
[in]stateThe new chroot state.

◆ set_http_only()

void set_http_only ( int  state)

Sets the http_only state.

Parameters
[in]stateThe new http_only state.