From 302262d52111ce71dececfe18448792cee415a57 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Wed, 4 Feb 2015 09:13:15 +0200 Subject: [PATCH] Add dummy PQsslAttributes function for non-SSL builds. All the other new SSL information functions had dummy versions in be-secure.c, but I missed PQsslAttributes(). Oops. Surprisingly, the linker did not complain about the missing function on most platforms represented in the buildfarm, even though it is exported, except for a few Windows systems. --- src/interfaces/libpq/fe-secure.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c index b43f9fe155..57c572bd09 100644 --- a/src/interfaces/libpq/fe-secure.c +++ b/src/interfaces/libpq/fe-secure.c @@ -407,6 +407,14 @@ PQsslAttribute(PGconn *conn, const char *attribute_name) { return NULL; } + +const char ** +PQsslAttributes(PGconn *conn) +{ + static const char *result[] = { NULL }; + + return result; +} #endif /* USE_SSL */ -- 2.40.0