pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Peter Eisentraut <peter_e@gmx.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Make be-secure-common.c more consistent for future SSL implement
Date: Mon, 02 Apr 2018 15:38:59 +0000
Message-ID: <E1f31Xv-0004le-Bd@gemulon.postgresql.org> (raw)

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@paquier.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(-)



Message-ID: <E1f31Xv-0004le-Bd@gemulon.postgresql.org>
Permalink:  ../E1f31Xv-0004le-Bd@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1f31Xv-0004le-Bd@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: peter_e@gmx.net
  Subject: Re: pgsql: Make be-secure-common.c more consistent for future SSL implement
  In-Reply-To: <E1f31Xv-0004le-Bd@gemulon.postgresql.org>
  References: <E1f31Xv-0004le-Bd@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox