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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy