1 #ifndef __BACKEND_PGSQL_H 2 #define __BACKEND_PGSQL_H 3 4 #include <libpq-fe.h> 5 #include <security/pam_modules.h> 6 #include "pam_pgsql_options.h" 7 8 PGconn * db_connect(modopt_t *options); 9 int pg_execParam(PGconn *conn, PGresult **res, const char *query, const char *service, const char *user, const char *passwd, const char *rhost); 10 int backend_authenticate(const char *service, const char *user, const char *passwd, const char *rhost, modopt_t *options); 11 char * password_encrypt(modopt_t *options, const char *user, const char *pass, const char *salt); 12 13 #endif 14