Greenbone Vulnerability Management Libraries: util/credentialutils.h Source File

Greenbone Vulnerability Management Libraries 23.7.0

credentialutils.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2026 Greenbone AG
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later
4 */
5
10
11#ifndef _GVM_UTIL_CREDENTIALUTILS_H
12#define _GVM_UTIL_CREDENTIALUTILS_H
13
14#include <glib.h> /* for GHashTable, GSList */
15
16 typedef struct scan_credential scan_credential_t;
17
18 scan_credential_t *
19 scan_credential_new (const char *, const char *, const char *);
20
21void
22 scan_credential_free (scan_credential_t *);
23
24const gchar *
25 scan_credential_get_auth_data (scan_credential_t *, const char *);
26
27void
28 scan_credential_set_auth_data (scan_credential_t *, const char *, const char *);
29
30const gchar *
31 scan_credential_get_type (scan_credential_t *);
32
33const gchar *
34 scan_credential_get_service (scan_credential_t *);
35
36const gchar *
37 scan_credential_get_port (scan_credential_t *);
38
39void
40 scan_credential_foreach_auth_data (scan_credential_t *,
41 void (*func) (const char *, const char *,
42 void *),
43 void *);
44
45#endif /* not _GVM_UTIL_CREDENTIALUTILS_H */
scan_credential_foreach_auth_data
void scan_credential_foreach_auth_data(scan_credential_t *, void(*func)(const char *, const char *, void *), void *)
Iterate over each authentication data item in a scan credential.
Definition credentialutils.c:109
scan_credential_get_auth_data
const gchar * scan_credential_get_auth_data(scan_credential_t *, const char *)
Get authentication data from a scan credential.
Definition credentialutils.c:155
scan_credential_set_auth_data
void scan_credential_set_auth_data(scan_credential_t *, const char *, const char *)
Set authentication data for a scan credential.
Definition credentialutils.c:170
scan_credential_free
void scan_credential_free(scan_credential_t *)
Free a scan credential.
Definition credentialutils.c:134
scan_credential_get_service
const gchar * scan_credential_get_service(scan_credential_t *)
Get the service of a scan credential.
Definition credentialutils.c:78
scan_credential_get_port
const gchar * scan_credential_get_port(scan_credential_t *)
Get the port of a scan credential.
Definition credentialutils.c:93
scan_credential_new
scan_credential_t * scan_credential_new(const char *, const char *, const char *)
Allocate and initialize a new scan credential.
Definition credentialutils.c:40
scan_credential_t
struct scan_credential scan_credential_t
Definition credentialutils.h:16
scan_credential_get_type
const gchar * scan_credential_get_type(scan_credential_t *)
Get the type of a scan credential.
Definition credentialutils.c:63
scan_credential
Struct credential information.
Definition credentialutils.c:23