Content-Length: 265306 | pFad | http://github.com/postgrespro/postgres_cluster/commit/9e24109f1a4e4d8d1d372b004d6a0dd06e673fe7

24 Only provide new libpq sslpasskey hook for openssl-enabled builds · postgrespro/postgres_cluster@9e24109 · GitHub
Skip to content

Commit 9e24109

Browse files
committed
Only provide new libpq sslpasskey hook for openssl-enabled builds
In commit 4dc6355 I neglected to put #ifdef USE_OPENSSL around the declarations of the new items. This is remedied here. Per complaint from Daniel Gustafsson.
1 parent 3125a5b commit 9e24109

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/interfaces/libpq/libpq-fe.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -620,10 +620,12 @@ extern int pg_valid_server_encoding_id(int encoding);
620620
/* == in fe-secure-openssl.c === */
621621

622622
/* Support for overriding sslpassword handling with a callback. */
623+
#ifdef USE_OPENSSL
623624
typedef int (*PQsslKeyPassHook_type)(char *buf, int size, PGconn *conn);
624625
extern PQsslKeyPassHook_type PQgetSSLKeyPassHook(void);
625626
extern void PQsetSSLKeyPassHook(PQsslKeyPassHook_type hook);
626627
extern int PQdefaultSSLKeyPassHook(char *buf, int size, PGconn *conn);
628+
#endif
627629

628630
#ifdef __cplusplus
629631
}

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/9e24109f1a4e4d8d1d372b004d6a0dd06e673fe7

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy