7
7
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
8
8
* Portions Copyright (c) 1994, Regents of the University of California
9
9
*
10
- * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.126 2006/03/20 15:07:05 momjian Exp $
10
+ * $PostgreSQL: pgsql/src/interfaces/libpq/libpq-fe.h,v 1.127 2006/04/27 00:53:58 momjian Exp $
11
11
*
12
12
*-------------------------------------------------------------------------
13
13
*/
@@ -28,11 +28,6 @@ extern"C"
28
28
*/
29
29
#include "postgres_ext.h"
30
30
31
- /* SSL type is needed here only to declare PQgetssl() */
32
- #ifdef USE_SSL
33
- #include <openssl/ssl.h>
34
- #endif
35
-
36
31
/* Application-visible enum types */
37
32
38
33
typedef enum
@@ -271,12 +266,9 @@ extern intPQbackendPID(const PGconn *conn);
271
266
extern int PQclientEncoding (const PGconn * conn );
272
267
extern int PQsetClientEncoding (PGconn * conn ,const char * encoding );
273
268
274
- #ifdef USE_SSL
275
- /* Get the SSL structure associated with a connection */
276
- extern SSL * PQgetssl (PGconn * conn );
277
- #else
269
+ /* Get the OpenSSL structure associated with a connection. Returns NULL for
270
+ * unencrypted connections or if any other TLS library is in use. */
278
271
extern void * PQgetssl (PGconn * conn );
279
- #endif
280
272
281
273
/* Tell libpq whether it needs to initialize OpenSSL */
282
274
extern void PQinitSSL (int do_init );