pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Magnus Hagander <magnus@hagander.net>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove ability to independently select random number generator
Date: Fri, 20 Nov 2020 12:58:42 +0000
Message-ID: <E1kg5zu-0003dq-GE@gemulon.postgresql.org> (raw)

Remove ability to independently select random number generator

Remove the ability to select random number generator independently from
SSL library. Instead, use the random number generator from the SSL
library (today only OpenSSL supported) if one is configured. If no SSL
library is configured, use the platform default (which means use
CryptoAPI on Win32 and /dev/urandom on Linux).

This also restructures pg_strong_random.c to have three clearly separate
sections, one for each implementation, with two functions in each,
instead of a scattered set of ifdefs throughout the whole file.

Author: Daniel Gustafsson, Magnus Hagander, Michael Paquier
Discussion: https://postgr.es/m/632623.1605460616@sss.pgh.pa.us

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/16f96c74d48e65da23d28665103e2c4c9d3414cc

Modified Files
--------------
configure                   |  61 +++++---------
configure.ac                |  41 +++------
src/include/pg_config.h.in  |   9 --
src/port/pg_strong_random.c | 201 ++++++++++++++++++--------------------------
src/tools/msvc/Solution.pm  |   3 -
5 files changed, 114 insertions(+), 201 deletions(-)



Message-ID: <E1kg5zu-0003dq-GE@gemulon.postgresql.org>
Permalink:  ../E1kg5zu-0003dq-GE@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kg5zu-0003dq-GE@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: magnus@hagander.net
  Subject: Re: pgsql: Remove ability to independently select random number generator
  In-Reply-To: <E1kg5zu-0003dq-GE@gemulon.postgresql.org>
  References: <E1kg5zu-0003dq-GE@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