25 #ifndef _GVM_AUTHUTILS_H
26 #define _GVM_AUTHUTILS_H
enum authentication_method auth_method_t
Type for the numerical representation of the supported authentication methods.
Definition: authutils.h:45
const gchar * auth_method_name(auth_method_t)
Return name of auth_method_t.
Definition: authutils.c:90
gchar * digest_hex(int, const guchar *)
Generate a hexadecimal representation of a message digest.
Definition: authutils.c:168
int gvm_auth_ldap_enabled()
Return whether libraries has been compiled with LDAP support.
Definition: authutils.c:55
authentication_method
Numerical representation of the supported authentication methods. Beware to have it in sync with auth...
Definition: authutils.h:36
@ AUTHENTICATION_METHOD_FILE
Definition: authutils.h:37
@ AUTHENTICATION_METHOD_LDAP_CONNECT
Definition: authutils.h:38
@ AUTHENTICATION_METHOD_LAST
Definition: authutils.h:40
@ AUTHENTICATION_METHOD_RADIUS_CONNECT
Definition: authutils.h:39
int gvm_auth_init()
Initializes Gcrypt.
Definition: authutils.c:103
gchar * get_password_hashes(const gchar *)
Generate a pair of md5 hashes to be used in the "auth/hash" file for the user.
Definition: authutils.c:203
int gvm_authenticate_classic(const gchar *, const gchar *, const gchar *)
Authenticate a credential pair against user file contents.
Definition: authutils.c:243
int gvm_auth_radius_enabled()
Return whether libraries has been compiled with RADIUS support.
Definition: authutils.c:70