Make Port->ssl_in_use available, even when built with !USE_SSL

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: e453cc2741416dc784842b2bba68749556cf0f6f
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2014-11-25T07:46:11Z
Releases: 9.5.0
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

PathChange+/−
contrib/sslinfo/sslinfo.c modified +1 −1
src/backend/libpq/hba.c modified +1 −9
src/include/libpq/libpq-be.h modified +6 −4