diff options
author | Andrew Dunstan <andrew@dunslane.net> | 2020-04-17 15:57:19 -0400 |
---|---|---|
committer | Andrew Dunstan <andrew@dunslane.net> | 2020-04-17 15:57:19 -0400 |
commit | f342d7ad03e61a1cea0339cf0c5aea0d01c3b43e (patch) | |
tree | af445662399bd7cd21bb313ac6dd78dbe644b80a /src | |
parent | a9659fb65497af8d2db66101f2ff7233d02997f1 (diff) | |
download | postgresql-f342d7ad03e61a1cea0339cf0c5aea0d01c3b43e.tar.gz postgresql-f342d7ad03e61a1cea0339cf0c5aea0d01c3b43e.zip |
Only provide openssl_tls_init_hook if building with openssl
This should have been protected by #ifdef USE_OPENSSL in commit
896fcdb230.
Per the real complaint this time from Daniel Gustafsson.
Diffstat (limited to 'src')
-rw-r--r-- | src/include/libpq/libpq-be.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/include/libpq/libpq-be.h b/src/include/libpq/libpq-be.h index 67697836baf..ffd943ac3bd 100644 --- 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 */ |