From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
---|---|
To: | pgsql-committers(at)postgresql(dot)org |
Subject: | pgsql: Make Port->ssl_in_use available, even when built with !USE_SSL |
Date: | 2014-11-25 07:48:15 |
Message-ID: | E1XtAr9-0005kI-Lt@gemulon.postgresql.org |
Views: | Whole Thread | Raw Message | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-committers |
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.
Branch
------
master
Details
-------
http://git.postgresql.org/pg/commitdiff/e453cc2741416dc784842b2bba68749556cf0f6f
Modified Files
--------------
contrib/sslinfo/sslinfo.c | 2 +-
src/backend/libpq/hba.c | 10 +---------
src/include/libpq/libpq-be.h | 10 ++++++----
3 files changed, 8 insertions(+), 14 deletions(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Heikki Linnakangas | 2014-11-25 13:21:40 | pgsql: Check return value of strdup() in libpq connection option parsin |
Previous Message | Robert Haas | 2014-11-24 22:17:25 | pgsql: Add infrastructure to save and restore GUC values. |