pgsql: Make be-secure-common.c more consistent for future SSL implement

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Make be-secure-common.c more consistent for future SSL implement
Date: 2018-04-02 15:38:59
Message-ID: E1f31Xv-0004le-Bd@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Make be-secure-common.c more consistent for future SSL implementations

Recent commit 8a3d9425 has introduced be-secure-common.c, which is aimed
at including backend-side APIs that can be used by any SSL
implementation. The purpose is similar to fe-secure-common.c for the
frontend-side APIs.

However, this has forgotten to include check_ssl_key_file_permissions()
in the move, which causes a double dependency between be-secure.c and
be-secure-openssl.c.

Refactor the code in a more logical way. This also puts into light an
API which is usable by future SSL implementations for permissions on SSL
key files.

Author: Michael Paquier <michael(at)paquier(dot)xyz>

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/2764d5dcfa84d240c901c20ec6e194f72d82b78a

Modified Files
--------------
src/backend/libpq/be-secure-common.c | 74 ++++++++++++++++++++++++++++++++++++
src/backend/libpq/be-secure.c | 69 ---------------------------------
src/include/libpq/libpq.h | 3 +-
3 files changed, 76 insertions(+), 70 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2018-04-02 15:42:18 Re: pgsql: Transforms for jsonb to PL/Python
Previous Message Devrim Gündüz 2018-04-02 15:25:46 Re: pgsql: Transforms for jsonb to PL/Python