diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2019-12-01 17:49:43 -0500 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2019-12-01 17:49:43 -0500 |
commit | c01ac6dcba0aa65ad237c3af4a67bc70da8e4b0e (patch) | |
tree | 92b71963275c35643dfb7e7a49b1e0203d25ec4f | |
parent | c35b714caff008c875b484656de7d168a7bc45f9 (diff) | |
download | postgresql-c01ac6dcba0aa65ad237c3af4a67bc70da8e4b0e.tar.gz postgresql-c01ac6dcba0aa65ad237c3af4a67bc70da8e4b0e.zip |
Add dummy versions of new SSL functions for non-SSL builds
This rectifies an oversight in commit 4dc6355210, which caused certain
builds to fail, especially on Windows.
-rw-r--r-- | src/interfaces/libpq/fe-secure.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c index e55b375c516..994605d0be4 100644 --- a/src/interfaces/libpq/fe-secure.c +++ b/src/interfaces/libpq/fe-secure.c @@ -432,6 +432,24 @@ PQsslAttributeNames(PGconn *conn) return result; } + +PQsslKeyPassHook_type +PQgetSSLKeyPassHook(void) +{ + return NULL; +} + +void +PQsetSSLKeyPassHook(PQsslKeyPassHook_type hook) +{ + return; +} + +int +PQdefaultSSLKeyPassHook(char *buf, int size, PGconn *conn) +{ + return 0; +} #endif /* USE_SSL */ /* Dummy version of GSSAPI information functions, when built without GSS support */ |