blob: c8a0eceffe6a51ab60e4e279667174295dedb3ef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef ASTAL_AUTH_PAM_H
#define ASTAL_AUTH_PAM_H
#include <gio/gio.h>
#include <glib-object.h>
#define ASTAL_AUTH_MAJOR_VERSION @MAJOR_VERSION@
#define ASTAL_AUTH_MINOR_VERSION @MINOR_VERSION@
#define ASTAL_AUTH_MICRO_VERSION @MICRO_VERSION@
#define ASTAL_AUTH_VERSION "@VERSION@"
G_BEGIN_DECLS
#define ASTAL_AUTH_TYPE_PAM (astal_auth_pam_get_type())
G_DECLARE_FINAL_TYPE(AstalAuthPam, astal_auth_pam, ASTAL_AUTH, PAM, GObject)
void astal_auth_pam_set_username(AstalAuthPam *self, const gchar *username);
const gchar *astal_auth_pam_get_username(AstalAuthPam *self);
void astal_auth_pam_set_service(AstalAuthPam *self, const gchar *service);
const gchar *astal_auth_pam_get_service(AstalAuthPam *self);
gboolean astal_auth_pam_start_authenticate(AstalAuthPam *self);
void astal_auth_pam_supply_secret(AstalAuthPam *self, const gchar *secret);
gboolean astal_auth_pam_authenticate(const gchar *password, GAsyncReadyCallback result_callback,
gpointer user_data);
gssize astal_auth_pam_authenticate_finish(GAsyncResult *res, GError **error);
G_END_DECLS
#endif // !ASTAL_AUTH_PAM_H
|