29 #ifndef _OPENVAS_AUTH_H
30 #define _OPENVAS_AUTH_H
34 #include "../base/array.h"
55 int (*) (
const gchar *,
const gchar *,
Definition: openvas_auth.h:43
const gchar * auth_method_name(auth_method_t method)
Return name of auth_method_t.
Definition: openvas_auth.c:233
void openvas_auth_tear_down(void)
Free memory associated to authentication configuration.
Definition: openvas_auth.c:524
Definition: openvas_auth.h:45
int openvas_auth_write_config(GKeyFile *key_file)
Writes the authentication mechanism configuration, merging with.
Definition: openvas_auth.c:543
gchar * get_password_hashes(int digest_algorithm, const gchar *password)
Generate a pair of hashes to be used in the OpenVAS "auth/hash" file for the user.
Definition: openvas_auth.c:723
Definition: openvas_auth.h:42
authentication_method
Numerical representation of the supported authentication methods.
Definition: openvas_auth.h:40
const char * name
Definition: arglists.c:172
int openvas_user_exists(const char *name)
Check whether a user exists.
Definition: openvas_auth.c:1028
gchar * digest_hex(int gcrypt_algorithm, const guchar *digest)
Generate a hexadecimal representation of a message digest.
Definition: openvas_auth.c:683
enum authentication_method auth_method_t
Type for the numerical representation of the supported.
Definition: openvas_auth.h:50
gchar * openvas_user_uuid(const char *name)
Return the UUID of a user from the OpenVAS user UUID file.
Definition: openvas_auth.c:1065
int openvas_auth_init_funcs(gchar *(*get_hash)(const gchar *), int(*set_role)(const gchar *, const gchar *, const gchar *), int(*user_exists_arg)(const gchar *, auth_method_t), gchar *(*get_uuid)(const gchar *, auth_method_t))
Initializes the list of authentication methods.
Definition: openvas_auth.c:389
Definition: openvas_auth.h:44
int openvas_authenticate_uuid(const gchar *, const gchar *, gchar **uuid)
int openvas_authenticate_method(const gchar *username, const gchar *password, auth_method_t *method)
Authenticate a credential pair and expose the method used.
Definition: openvas_auth.c:878
int openvas_auth_radius_enabled()
Return whether libraries has been compiled with RADIUS support.
Definition: openvas_auth.c:213