OpenVAS Scanner  22.7.9
scan_id.c File Reference
#include "scan_id.h"
#include <stdlib.h>
Include dependency graph for scan_id.c:

Go to the source code of this file.

Functions

int set_scan_id (const char *new_scan_id)
 
const char * get_scan_id ()
 

Variables

const char * scan_id = NULL
 

Function Documentation

◆ get_scan_id()

const char* get_scan_id ( void  )

Definition at line 22 of file scan_id.c.

23 {
24  return scan_id;
25 }

References scan_id.

Referenced by check_kb_inconsistency(), check_kb_inconsistency_log(), openvas(), send_message_to_client_and_finish_scan(), and stop_single_task_scan().

Here is the caller graph for this function:

◆ set_scan_id()

int set_scan_id ( const char *  new_scan_id)

Definition at line 13 of file scan_id.c.

14 {
15  if (scan_id != NULL)
16  return -1;
17  scan_id = new_scan_id;
18  return 0;
19 }

References scan_id.

Referenced by openvas().

Here is the caller graph for this function:

Variable Documentation

◆ scan_id

scan_id
const char * scan_id
Definition: scan_id.c:10