Commit 9e24109f authored by Andrew Dunstan's avatar Andrew Dunstan

Only provide new libpq sslpasskey hook for openssl-enabled builds

In commit 4dc63552 I neglected to put #ifdef USE_OPENSSL around the
declarations of the new items. This is remedied here.

Per complaint from Daniel Gustafsson.
parent 3125a5ba
...@@ -620,10 +620,12 @@ extern int pg_valid_server_encoding_id(int encoding); ...@@ -620,10 +620,12 @@ extern int pg_valid_server_encoding_id(int encoding);
/* == in fe-secure-openssl.c === */ /* == in fe-secure-openssl.c === */
/* Support for overriding sslpassword handling with a callback. */ /* Support for overriding sslpassword handling with a callback. */
#ifdef USE_OPENSSL
typedef int (*PQsslKeyPassHook_type)(char *buf, int size, PGconn *conn); typedef int (*PQsslKeyPassHook_type)(char *buf, int size, PGconn *conn);
extern PQsslKeyPassHook_type PQgetSSLKeyPassHook(void); extern PQsslKeyPassHook_type PQgetSSLKeyPassHook(void);
extern void PQsetSSLKeyPassHook(PQsslKeyPassHook_type hook); extern void PQsetSSLKeyPassHook(PQsslKeyPassHook_type hook);
extern int PQdefaultSSLKeyPassHook(char *buf, int size, PGconn *conn); extern int PQdefaultSSLKeyPassHook(char *buf, int size, PGconn *conn);
#endif
#ifdef __cplusplus #ifdef __cplusplus
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment