~ubuntu-branches/ubuntu/trusty/pam-pgsql/trusty-proposed

« back to all changes in this revision

Viewing changes to .pc/md5postgres_594721.patch/src/pam_pgsql_options.h

  • Committer: Bazaar Package Importer
  • Author(s): Jan Dittberner
  • Date: 2010-09-11 21:51:41 UTC
  • mfrom: (2.1.8 sid)
  • Revision ID: james.westby@ubuntu.com-20100911215141-mg0sfhma27plr7hx
Tags: 0.7.1-4
* update DEP-3 information in
  debian/patches/md5postgres_594721.patch, and fix a typo
* add debian/NEWS to notify about the change of default pw_type

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef _GNU_SOURCE
 
2
#define _GNU_SOURCE
 
3
#endif
 
4
 
 
5
#ifndef __PAM_PG_OPTIONS_H_
 
6
#define __PAM_PG_OPTIONS_H_
 
7
 
 
8
#define PAM_PGSQL_FILECONF                 SYSCONFDIR "/pam_pgsql.conf"
 
9
#define PAM_PGSQL_PORT                     5432
 
10
 
 
11
#include <sys/cdefs.h>
 
12
 
 
13
#define PAM_OPT_DEBUG                   0x01
 
14
#define PAM_OPT_NO_WARN                 0x02
 
15
#define PAM_OPT_USE_FIRST_PASS          0x04
 
16
#define PAM_OPT_TRY_FIRST_PASS          0x08
 
17
#define PAM_OPT_USE_MAPPED_PASS         0x10
 
18
#define PAM_OPT_ECHO_PASS               0x20
 
19
#define PAM_OPT_TRY_OLDAUTH             0x40
 
20
#define PAM_OPT_USE_OLDAUTH             0x80
 
21
 
 
22
typedef enum {
 
23
    PW_CLEAR = 1, 
 
24
    PW_MD5,
 
25
    PW_CRYPT,
 
26
    PW_CRYPT_MD5,
 
27
    PW_SHA1
 
28
} pw_scheme;
 
29
 
 
30
typedef struct modopt_s {
 
31
 
 
32
   char *connstr;
 
33
   char *fileconf;
 
34
   char *host;
 
35
   char *db;
 
36
        char *table;
 
37
        char *timeout;
 
38
   char *user;
 
39
   char *passwd;
 
40
   char *sslmode;
 
41
        char *column_pwd;
 
42
        char *column_user;
 
43
        char *column_expired;
 
44
        char *column_newpwd;
 
45
        char *query_acct;
 
46
        char *query_pwd;
 
47
        char *query_auth;
 
48
        char *query_auth_succ;
 
49
        char *query_auth_fail;
 
50
        char *query_session_open;
 
51
        char *query_session_close;
 
52
   char *port;
 
53
        int pw_type;
 
54
   int debug;
 
55
        int std_flags;
 
56
 
 
57
} modopt_t;
 
58
 
 
59
modopt_t * mod_options(int , const char **);
 
60
 
 
61
 
 
62
int  pam_get_pass(pam_handle_t *, int, const char **, const char *, int);
 
63
int  pam_get_confirm_pass(pam_handle_t *, const char **, const char *,  const char *, int);
 
64
const char *pam_get_service(pam_handle_t *pamh);
 
65
 
 
66
#endif