29 #ifndef _OPENVAS_AUTH_H
30 #define _OPENVAS_AUTH_H
34 #include "../base/array.h"
56 int (*) (
const gchar *,
const gchar *,
Definition: openvas_auth.h:43
int openvas_auth_init_funcs(gchar *(*)(const gchar *), int(*)(const gchar *, const gchar *, const gchar *), int(*)(const gchar *, auth_method_t), gchar *(*)(const gchar *, auth_method_t))
Definition: openvas_auth.h:44
int openvas_user_exists(const char *)
Check whether a user exists.
Definition: openvas_auth.c:918
int openvas_authenticate_method(const gchar *, const gchar *, auth_method_t *)
Authenticate a credential pair and expose the method used.
Definition: openvas_auth.c:801
Definition: openvas_auth.h:42
int openvas_auth_write_config(GKeyFile *keyfile)
Writes the authentication mechanism configuration, merging with.
Definition: openvas_auth.c:504
authentication_method
Numerical representation of the supported authentication methods.
Definition: openvas_auth.h:40
int openvas_auth_init()
Initializes the list of authentication methods.
Definition: openvas_auth.c:328
enum authentication_method auth_method_t
Type for the numerical representation of the supported.
Definition: openvas_auth.h:49
const char * name
Definition: nasl_init.c:501
gchar * get_password_hashes(int, const gchar *)
Generate a pair of hashes to be used in the OpenVAS "auth/hash" file for the user.
Definition: openvas_auth.c:670
int openvas_authenticate_uuid(const gchar *, const gchar *, gchar **uuid)
const gchar * auth_method_name(auth_method_t)
Return name of auth_method_t.
Definition: openvas_auth.c:199
gchar * openvas_user_uuid(const char *name)
Return the UUID of a user from the OpenVAS user UUID file.
Definition: openvas_auth.c:955
void openvas_auth_tear_down()
Free memory associated to authentication configuration.
Definition: openvas_auth.c:485
gchar * digest_hex(int, const guchar *)
Generate a hexadecimal representation of a message digest.
Definition: openvas_auth.c:630