Skip to content

Commit f342d7a

Browse files
committed
Only provide openssl_tls_init_hook if building with openssl
This should have been protected by #ifdef USE_OPENSSL in commit 896fcdb. Per the real complaint this time from Daniel Gustafsson.
1 parent a9659fb commit f342d7a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/include/libpq/libpq-be.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,10 @@ extern char *be_tls_get_certificate_hash(Port *port, size_t *len);
288288
#endif
289289

290290
/* init hook for SSL, the default sets the password callback if appropriate */
291+
#ifdef USE_OPENSSL
291292
typedef void(* openssl_tls_init_hook_typ)(SSL_CTX *context, bool isServerStart);
292293
extern PGDLLIMPORT openssl_tls_init_hook_typ openssl_tls_init_hook;
294+
#endif
293295

294296
#endif /* USE_SSL */
295297

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