File tree 2 files changed +6
-14
lines changed
2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 11
11
*
12
12
*
13
13
* IDENTIFICATION
14
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.76 2006/04/27 00:36:34 momjian Exp $
14
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.77 2006/04/27 00:53:58 momjian Exp $
15
15
*
16
16
* NOTES
17
17
* [ Most of these notes are wrong/obsolete, but perhaps not all ]
@@ -1014,9 +1014,9 @@ SSLerrfree(char *buf)
1014
1014
}
1015
1015
1016
1016
/*
1017
- * Return pointer to SSL object.
1017
+ * Return pointer to OpenSSL object.
1018
1018
*/
1019
- SSL *
1019
+ void *
1020
1020
PQgetssl (PGconn * conn )
1021
1021
{
1022
1022
if (!conn )
Original file line number Diff line number Diff line change 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 int PQbackendPID(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 );
You can’t perform that action at this time.
0 commit comments