aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Dunstan <andrew@dunslane.net>2020-04-17 14:11:18 -0400
committerAndrew Dunstan <andrew@dunslane.net>2020-04-17 14:11:18 -0400
commit9e24109f1a4e4d8d1d372b004d6a0dd06e673fe7 (patch)
tree30d34b14b446da80de8959af8e939a015a0903c6 /src
parent3125a5baec1cf6d3aaeb8964bc3b3c49835e0452 (diff)
downloadpostgresql-9e24109f1a4e4d8d1d372b004d6a0dd06e673fe7.tar.gz
postgresql-9e24109f1a4e4d8d1d372b004d6a0dd06e673fe7.zip
Only provide new libpq sslpasskey hook for openssl-enabled builds
In commit 4dc6355210 I neglected to put #ifdef USE_OPENSSL around the declarations of the new items. This is remedied here. Per complaint from Daniel Gustafsson.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/libpq-fe.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interfaces/libpq/libpq-fe.h b/src/interfaces/libpq/libpq-fe.h
index c9e6ac2b769..29799046cf2 100644
--- a/src/interfaces/libpq/libpq-fe.h
+++ b/src/interfaces/libpq/libpq-fe.h
@@ -620,10 +620,12 @@ extern int pg_valid_server_encoding_id(int encoding);
/* == in fe-secure-openssl.c === */
/* Support for overriding sslpassword handling with a callback. */
+#ifdef USE_OPENSSL
typedef int (*PQsslKeyPassHook_type)(char *buf, int size, PGconn *conn);
extern PQsslKeyPassHook_type PQgetSSLKeyPassHook(void);
extern void PQsetSSLKeyPassHook(PQsslKeyPassHook_type hook);
extern int PQdefaultSSLKeyPassHook(char *buf, int size, PGconn *conn);
+#endif
#ifdef __cplusplus
}