Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 69 lines (61 sloc) 2.029 kb
57a0f8b @nniclausse add experimental postgresql plugin
nniclausse authored
1 %%%
2 %%% Copyright © Nicolas Niclausse 2005
3 %%%
4 %%% Author : Nicolas Niclausse <nicolas.niclausse@niclux.org>
5 %%% Created: 6 Nov 2005 by Nicolas Niclausse <nicolas.niclausse@niclux.org>
6 %%%
7 %%% This program is free software; you can redistribute it and/or modify
8 %%% it under the terms of the GNU General Public License as published by
9 %%% the Free Software Foundation; either version 2 of the License, or
10 %%% (at your option) any later version.
11 %%%
12 %%% This program is distributed in the hope that it will be useful,
13 %%% but WITHOUT ANY WARRANTY; without even the implied warranty of
14 %%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 %%% GNU General Public License for more details.
16 %%%
17 %%% You should have received a copy of the GNU General Public License
18 %%% along with this program; if not, write to the Free Software
19 %%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA.
bb94bec @nniclausse tabs/spaces
nniclausse authored
20 %%%
57a0f8b @nniclausse add experimental postgresql plugin
nniclausse authored
21 %%% In addition, as a special exception, you have the permission to
22 %%% link the code of this program with any library released under
23 %%% the EPL license and distribute linked combinations including
24 %%% the two.
25
26
9faae4b @mremond * Make sure SVN properties are correctly set.
mremond authored
27 -vc('$Id$ ').
57a0f8b @nniclausse add experimental postgresql plugin
nniclausse authored
28 -author('nicolas.niclausse@niclux.org').
29
30 %% use by the client to create the request
31 -record(pgsql_request, {
32 type,
33 username,
34 passwd,
35 salt,
36 auth_method,
37 database,
64c5bde @nniclausse first step to handle pgsql extended protocol
nniclausse authored
38 name_portal,
39 name_prepared,
40 equery,
41 parameters,
42 formats,
43 formats_results,
57cbeb6 @nniclausse record subset of pgsql extended protocol
nniclausse authored
44 max_rows, % used for type='execute'
57a0f8b @nniclausse add experimental postgresql plugin
nniclausse authored
45 sql
46 }).
47
27eedec @nniclausse plugin API change: drop the dyndata field in state_rcv. All the
nniclausse authored
48 -record(pgsql_session,
bb94bec @nniclausse tabs/spaces
nniclausse authored
49 {
57a0f8b @nniclausse add experimental postgresql plugin
nniclausse authored
50 auth_method,
27eedec @nniclausse plugin API change: drop the dyndata field in state_rcv. All the
nniclausse authored
51 username,
57a0f8b @nniclausse add experimental postgresql plugin
nniclausse authored
52 salt
53 }
54 ).
55
bb94bec @nniclausse tabs/spaces
nniclausse authored
56 %%% Version 3.0 of the protocol.
57a0f8b @nniclausse add experimental postgresql plugin
nniclausse authored
57 %%% Supported in postgres from version 7.4
58 -define(PROTOCOL_MAJOR, 3).
59 -define(PROTOCOL_MINOR, 0).
60
61 -define(PG_PASSWORD_MSG, $p).
62
63 -define(PG_AUTH_OK, 0).
64 -define(PG_AUTH_KRB4, 1).
65 -define(PG_AUTH_KRB5, 2).
66 -define(PG_AUTH_PASSWD, 3).
67 -define(PG_AUTH_CRYPT, 4).
68 -define(PG_AUTH_MD5, 5).
Something went wrong with that request. Please try again.