OpenVAS Scanner  22.7.9
debug_utils.c
Go to the documentation of this file.
1 /* SPDX-FileCopyrightText: 2023 Greenbone AG
2  *
3  * SPDX-License-Identifier: GPL-2.0-or-later
4  */
5 
11 #include "debug_utils.h"
12 
13 #include <gvm/base/logging.h>
14 #include <stdio.h> /* for snprintf */
15 #include <stdlib.h>
16 
22 int
24 {
25  char *sentry_dsn_openvas = NULL;
26  char version[96];
27 
28  snprintf (version, sizeof (version), "openvas@%s", OPENVAS_VERSION);
29 
30  sentry_dsn_openvas = getenv ("SENTRY_DSN_OPENVAS");
31  if (FALSE
32  == (gvm_has_sentry_support () && sentry_dsn_openvas
33  && *sentry_dsn_openvas))
34  {
35  return -1;
36  }
37  else
38  {
39  gvm_sentry_init (sentry_dsn_openvas, version);
40  return 0;
41  }
42 }
st_nasl_func
Definition: nasl_func.h:15
OR
@ OR
Definition: nasl_grammar.tab.h:63
init_sentry
int init_sentry(void)
Init sentry.
Definition: debug_utils.c:23
openvas
int openvas(int argc, char *argv[], char *env[])
openvas.
Definition: openvas.c:471
debug_utils.h
debug_utils.c headerfile.
NOT
@ NOT
Definition: nasl_grammar.tab.h:101
hosts
static struct host * hosts
Definition: hosts.c:49
code
#define code
processes
static struct running processes[MAX_PROCESSES]
Definition: pluginlaunch.c:63