Greenbone Vulnerability Management Libraries
21.4.2
|
Authentication mechanism(s). More...
Macros | |
#define | G_LOG_DOMAIN "libgvm util" |
GLib logging domain. More... | |
Functions | |
int | gvm_auth_ldap_enabled () |
Return whether libraries has been compiled with LDAP support. More... | |
int | gvm_auth_radius_enabled () |
Return whether libraries has been compiled with RADIUS support. More... | |
const gchar * | auth_method_name (auth_method_t method) |
Return name of auth_method_t. More... | |
int | gvm_auth_init () |
Initializes Gcrypt. More... | |
gchar * | digest_hex (int gcrypt_algorithm, const guchar *digest) |
Generate a hexadecimal representation of a message digest. More... | |
gchar * | get_password_hashes (const gchar *password) |
Generate a pair of md5 hashes to be used in the "auth/hash" file for the user. More... | |
int | gvm_authenticate_classic (const gchar *username, const gchar *password, const gchar *hash_arg) |
Authenticate a credential pair against user file contents. More... | |
Variables | |
static const gchar * | authentication_methods [] |
Array of string representations of the supported authentication methods. More... | |
static gboolean | initialized = FALSE |
Flag whether the config file was read. More... | |
Authentication mechanism(s).
#define G_LOG_DOMAIN "libgvm util" |
GLib logging domain.
const gchar* auth_method_name | ( | auth_method_t | method | ) |
Return name of auth_method_t.
Keep in sync with authentication_methods
and authentication_method .
method | Auth method. |
gchar* digest_hex | ( | int | gcrypt_algorithm, |
const guchar * | digest | ||
) |
Generate a hexadecimal representation of a message digest.
gcrypt_algorithm | The libgcrypt message digest algorithm used to create the digest (e.g. GCRY_MD_MD5; see the enum gcry_md_algos in gcrypt.h). |
digest | The binary representation of the digest. |
gchar* get_password_hashes | ( | const gchar * | password | ) |
Generate a pair of md5 hashes to be used in the "auth/hash" file for the user.
The "auth/hash" file consist of two hashes, h_1 and h_2. h_2 (the "seed") is the message digest of (currently) 256 bytes of random data. h_1 is the message digest of h_2 concatenated with the password in plaintext.
password | The password in plaintext. |
int gvm_auth_init | ( | ) |
Initializes Gcrypt.
int gvm_auth_ldap_enabled | ( | ) |
Return whether libraries has been compiled with LDAP support.
int gvm_auth_radius_enabled | ( | ) |
Return whether libraries has been compiled with RADIUS support.
int gvm_authenticate_classic | ( | const gchar * | username, |
const gchar * | password, | ||
const gchar * | hash_arg | ||
) |
Authenticate a credential pair against user file contents.
username | Username. |
password | Password. |
hash_arg | Hash. |
|
static |
Array of string representations of the supported authentication methods.
|
static |
Flag whether the config file was read.