~ubuntu-branches/ubuntu/precise/pgbouncer/precise-security

« back to all changes in this revision

Viewing changes to include/bouncer.h

  • Committer: Bazaar Package Importer
  • Author(s): Bernd Zeimetz
  • Date: 2010-05-16 03:15:41 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20100516031541-muty00mdbe9srl66
Tags: 1.3.3-1
* New upstream version. 
* Bumping Standards-Version to 3.8.4, no changes needed. 
* Removing dpatch - no patches needed anymore since several releases. 
* Use source format 1.0 for easy backporting.

Show diffs side-by-side

added added

removed removed

Lines of Context:
104
104
#define AUTH_CREDS      6
105
105
 
106
106
/* type codes for weird pkts */
 
107
#define PKT_STARTUP_V2  0x20000
107
108
#define PKT_STARTUP     0x30000
108
109
#define PKT_CANCEL      80877102
109
110
#define PKT_SSLREQ      80877103
119
120
 
120
121
#define BACKENDKEY_LEN  8
121
122
 
 
123
/* buffer size for startup noise */
 
124
#define STARTUP_BUF     1024
 
125
 
122
126
/*
123
127
 * Remote/local address
124
128
 */
169
173
        PgStats older_stats;
170
174
 
171
175
        /* database info to be sent to client */
172
 
        uint8_t welcome_msg[256];       /* ServerParams without VarCache ones */
 
176
        uint8_t welcome_msg[STARTUP_BUF]; /* ServerParams without VarCache ones */
173
177
        unsigned welcome_msg_len;
174
178
 
175
179
        VarCache orig_vars;             /* default params from server */
225
229
        bool db_auto;           /* is the database auto-created by autodb_connstr */
226
230
        bool admin;             /* internal console db */
227
231
 
228
 
        uint8_t startup_params[256]; /* partial StartupMessage (without user) be sent to server */
 
232
        uint8_t startup_params[STARTUP_BUF]; /* partial StartupMessage (without user) be sent to server */
229
233
        unsigned startup_params_len;
230
234
 
231
235
        PgUser *forced_user;    /* if not NULL, the user/psw is forced */
309
313
extern char *cf_unix_socket_dir;
310
314
extern char *cf_listen_addr;
311
315
extern int cf_listen_port;
 
316
extern int cf_listen_backlog;
312
317
 
313
318
extern int cf_pool_mode;
314
319
extern int cf_max_client_conn;