2019-09-09 09:17:41 +00:00
|
|
|
#ifndef ODYSSEY_PAM_H
|
|
|
|
#define ODYSSEY_PAM_H
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Odyssey.
|
|
|
|
*
|
|
|
|
* Scalable PostgreSQL connection pooler.
|
2020-04-02 11:00:56 +00:00
|
|
|
*/
|
2019-09-27 13:47:45 +00:00
|
|
|
|
2020-12-28 10:43:31 +00:00
|
|
|
struct od_pam_auth_data {
|
2020-06-16 05:27:33 +00:00
|
|
|
int msg_style;
|
2020-06-09 09:19:11 +00:00
|
|
|
char *value;
|
|
|
|
od_list_t link;
|
|
|
|
};
|
|
|
|
|
|
|
|
typedef struct od_pam_auth_data od_pam_auth_data_t;
|
|
|
|
|
2020-12-28 10:43:31 +00:00
|
|
|
int od_pam_auth(char *od_pam_service, char *usrname,
|
|
|
|
od_pam_auth_data_t *auth_data, machine_io_t *io);
|
2019-09-09 09:17:41 +00:00
|
|
|
|
2020-12-28 10:43:31 +00:00
|
|
|
void od_pam_convert_passwd(od_pam_auth_data_t *d, char *passwd);
|
2020-06-09 09:19:11 +00:00
|
|
|
|
2020-12-28 10:43:31 +00:00
|
|
|
od_pam_auth_data_t *od_pam_auth_data_create(void);
|
2020-06-09 09:19:11 +00:00
|
|
|
|
2020-12-28 10:43:31 +00:00
|
|
|
void od_pam_auth_data_free(od_pam_auth_data_t *d);
|
2020-06-09 09:19:11 +00:00
|
|
|
|
2019-09-09 09:17:41 +00:00
|
|
|
#endif /* ODYSSEY_PAM_H */
|