Make Port->ssl_in_use available, even when built with !USE_SSL
Heikki Linnakangas <heikki.linnakangas@iki.fi>
Make Port->ssl_in_use available, even when built with !USE_SSL Code that check the flag no longer need #ifdef's, which is more convenient. In particular, makes it easier to write extensions that depend on it. In the passing, modify sslinfo's ssl_is_used function to check ssl_in_use instead of the OpenSSL specific 'ssl' pointer. It doesn't make any difference currently, as sslinfo is only compiled when built with OpenSSL, but seems cleaner anyway.
Files
| Path | Change | +/− |
|---|---|---|
| contrib/sslinfo/sslinfo.c | modified | +1 −1 |
| src/backend/libpq/hba.c | modified | +1 −9 |
| src/include/libpq/libpq-be.h | modified | +6 −4 |