]> granicus.if.org Git - postgresql/commit
Make Port->ssl_in_use available, even when built with !USE_SSL
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 25 Nov 2014 07:39:31 +0000 (09:39 +0200)
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>
Tue, 25 Nov 2014 07:46:11 +0000 (09:46 +0200)
commite453cc2741416dc784842b2bba68749556cf0f6f
tree7854350915ddb4668cc2eaa559d41c3ee1925870
parentf5d9698a8400972bd604069a3f15ca33e535ea6e
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.
contrib/sslinfo/sslinfo.c
src/backend/libpq/hba.c
src/include/libpq/libpq-be.h