projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9659fb
)
Only provide openssl_tls_init_hook if building with openssl
author
Andrew Dunstan
<andrew@dunslane.net>
Fri, 17 Apr 2020 19:57:19 +0000
(15:57 -0400)
committer
Andrew Dunstan
<andrew@dunslane.net>
Fri, 17 Apr 2020 19:57:19 +0000
(15:57 -0400)
This should have been protected by #ifdef USE_OPENSSL in commit
896fcdb230
.
Per the real complaint this time from Daniel Gustafsson.
src/include/libpq/libpq-be.h
patch
|
blob
|
blame
|
history
diff --git
a/src/include/libpq/libpq-be.h
b/src/include/libpq/libpq-be.h
index 67697836bafbd66994028d53bf005e0752fa9229..ffd943ac3bdbed9f9ae200c4dd934007d0b1a999 100644
(file)
--- a/
src/include/libpq/libpq-be.h
+++ b/
src/include/libpq/libpq-be.h
@@
-288,8
+288,10
@@
extern char *be_tls_get_certificate_hash(Port *port, size_t *len);
#endif
/* init hook for SSL, the default sets the password callback if appropriate */
+#ifdef USE_OPENSSL
typedef void(* openssl_tls_init_hook_typ)(SSL_CTX *context, bool isServerStart);
extern PGDLLIMPORT openssl_tls_init_hook_typ openssl_tls_init_hook;
+#endif
#endif /* USE_SSL */