11#ifndef _GVM_UTIL_AUTHUTILS_H
12#define _GVM_UTIL_AUTHUTILS_H
int auth_method_name_valid(const gchar *name)
Check if name is a valid auth method name.
int gvm_auth_radius_enabled(void)
Return whether libraries has been compiled with RADIUS support.
gchar * get_md5_hash_from_string(const gchar *string)
Calculate the MD5 hash value for a given string.
int gvm_authenticate_classic(const gchar *username, const gchar *password, const gchar *hash_arg)
Authenticate a credential pair against user file contents.
int gvm_auth_init(void)
Initializes Gcrypt.
gchar * digest_hex(int gcrypt_algorithm, const guchar *digest)
Generate a hexadecimal representation of a message 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.
int gvm_auth_ldap_enabled(void)
Return whether libraries has been compiled with LDAP support.
const gchar * auth_method_name(auth_method_t method)
Return name of auth_method_t.
enum authentication_method auth_method_t
Type for the numerical representation of the supported authentication methods.
authentication_method
Numerical representation of the supported authentication methods. Beware to have it in sync with auth...
@ AUTHENTICATION_METHOD_FILE
@ AUTHENTICATION_METHOD_LDAP_CONNECT
@ AUTHENTICATION_METHOD_LAST
@ AUTHENTICATION_METHOD_RADIUS_CONNECT