~ubuntu-branches/ubuntu/trusty/postgresql-8.4/trusty

« back to all changes in this revision

Viewing changes to src/interfaces/libpq/libpq-int.h

  • Committer: Bazaar Package Importer
  • Author(s): Martin Pitt
  • Date: 2009-07-11 16:59:35 UTC
  • mfrom: (5.1.1 karmic)
  • Revision ID: james.westby@ubuntu.com-20090711165935-jfwin6gfrxf0gfsi
Tags: 8.4.0-2
* debian/libpq-dev.install: Ship catalog/genbki.h. (Closes: #536139)
* debian/rules: Drop --enable-cassert for final release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 * Portions Copyright (c) 1996-2009, PostgreSQL Global Development Group
13
13
 * Portions Copyright (c) 1994, Regents of the University of California
14
14
 *
15
 
 * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.141 2009/04/24 09:43:10 mha Exp $
 
15
 * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-int.h,v 1.143 2009/06/23 18:13:23 mha Exp $
16
16
 *
17
17
 *-------------------------------------------------------------------------
18
18
 */
69
69
{
70
70
        void       *value;
71
71
        int                     length;
72
 
}       gss_buffer_desc;
 
72
} gss_buffer_desc;
73
73
#endif
74
74
#endif   /* ENABLE_SSPI */
75
75
 
76
76
#ifdef USE_SSL
77
77
#include <openssl/ssl.h>
78
78
#include <openssl/err.h>
 
79
 
 
80
#if (SSLEAY_VERSION_NUMBER >= 0x00907000L) && !defined(OPENSSL_NO_ENGINE)
 
81
#define USE_SSL_ENGINE
79
82
#endif
80
83
 
 
84
#endif /* USE_SSL */
 
85
 
81
86
/*
82
87
 * POSTGRES backend dependent Constants.
83
88
 */
155
160
 
156
161
typedef struct PGEvent
157
162
{
158
 
        PGEventProc     proc;                   /* the function to call on events */
 
163
        PGEventProc proc;                       /* the function to call on events */
159
164
        char       *name;                       /* used only for error messages */
160
165
        void       *passThrough;        /* pointer supplied at registration time */
161
166
        void       *data;                       /* optional state (instance) data */
162
 
        bool            resultInitialized;      /* T if RESULTCREATE/COPY succeeded */
 
167
        bool            resultInitialized;              /* T if RESULTCREATE/COPY succeeded */
163
168
} PGEvent;
164
169
 
165
170
struct pg_result
182
187
         * on the PGresult don't have to reference the PGconn.
183
188
         */
184
189
        PGNoticeHooks noticeHooks;
185
 
        PGEvent    *events;
 
190
        PGEvent    *events;
186
191
        int                     nEvents;
187
192
        int                     client_encoding;        /* encoding id */
188
193
 
310
315
        PGNoticeHooks noticeHooks;
311
316
 
312
317
        /* Event procs registered via PQregisterEventProc */
313
 
        PGEvent    *events;                     /* expandable array of event data */
 
318
        PGEvent    *events;                     /* expandable array of event data */
314
319
        int                     nEvents;                /* number of active events */
315
 
        int                     eventArraySize; /* allocated array size */
 
320
        int                     eventArraySize; /* allocated array size */
316
321
 
317
322
        /* Status indicators */
318
323
        ConnStatusType status;
383
388
        X509       *peer;                       /* X509 cert of server */
384
389
        char            peer_dn[256 + 1];               /* peer distinguished name */
385
390
        char            peer_cn[SM_USER + 1];   /* peer common name */
 
391
#ifdef USE_SSL_ENGINE
 
392
        ENGINE     *engine;                     /* SSL engine, if any */
 
393
#else
 
394
        void       *engine;                     /* dummy field to keep struct the same
 
395
                                                                   if OpenSSL version changes */
386
396
#endif
 
397
#endif /* USE_SSL */
387
398
 
388
399
#ifdef ENABLE_GSS
389
400
        gss_ctx_id_t gctx;                      /* GSS context */