00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00028 #ifndef __BACKEND_PGSQL_H
00029 #define __BACKEND_PGSQL_H
00030
00031 #include "/usr/include/postgresql/libpq-fe.h"
00032 #include <security/pam_modules.h>
00033 #include "pam_kmux_options.h"
00034
00043 void* pgsql_db_connect(const modopt_t *options);
00044
00052 void pgsql_db_disconnect(void *vconn);
00053
00070 int pgsql_expand_query (char **command, const char** values, const char *query, const char *service, const char *user, const char *passwd, const char *rhost, const char *raddr, const modopt_t *options);
00071
00089 int pgsql_exec_param(void *vconn, void **vres, const char *query, const char *service, const char *user, const char *passwd, const char *rhost, const modopt_t *options);
00090
00107 int pgsql_backend_authenticate(const char *service, const char *user, const char *passwd, const char *rhost, const modopt_t *options);
00108 #endif