pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Remove configure switch --disable-strong-random
Date: Tue, 01 Jan 2019 11:06:49 +0000
Message-ID: <E1geHsn-0007dG-Pc@gemulon.postgresql.org> (raw)

Remove configure switch --disable-strong-random

This removes a portion of infrastructure introduced by fe0a0b5 to allow
compilation of Postgres in environments where no strong random source is
available, meaning that there is no linking to OpenSSL and no
/dev/urandom (Windows having its own CryptoAPI).  No systems shipped
this century lack /dev/urandom, and the buildfarm is actually not
testing this switch at all, so just remove it.  This simplifies
particularly some backend code which included a fallback implementation
using shared memory, and removes a set of alternate regression output
files from pgcrypto.

Author: Michael Paquier
Reviewed-by: Tom Lane
Discussion: https://postgr.es/m/20181230063219.GG608@paquier.xyz

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/1707a0d2aa6b2bcfe78f63836c769943a1a6b9e0

Modified Files
--------------
configure                                          |  65 +---
configure.in                                       |  42 +-
contrib/pgcrypto/expected/pgp-compression_1.out    |  42 --
contrib/pgcrypto/expected/pgp-decrypt_1.out        | 424 ---------------------
contrib/pgcrypto/expected/pgp-encrypt_1.out        | 161 --------
contrib/pgcrypto/expected/pgp-pubkey-encrypt_1.out |  62 ---
contrib/pgcrypto/pgcrypto.c                        |  11 +-
contrib/pgcrypto/pgp-encrypt.c                     |  14 +-
contrib/pgcrypto/pgp-mpi-internal.c                |   6 +-
contrib/pgcrypto/pgp-pubenc.c                      |   9 +-
contrib/pgcrypto/pgp-s2k.c                         |   7 +-
contrib/pgcrypto/px-crypt.c                        |   3 +-
contrib/pgcrypto/px.c                              |  10 +-
doc/src/sgml/installation.sgml                     |  24 +-
doc/src/sgml/monitoring.sgml                       |   6 +-
src/Makefile.global.in                             |   1 -
src/backend/access/transam/xlog.c                  |   3 +-
src/backend/libpq/auth-scram.c                     |   5 +-
src/backend/libpq/auth.c                           |   5 +-
src/backend/postmaster/postmaster.c                |  62 +--
src/backend/storage/ipc/ipci.c                     |   3 -
src/backend/storage/lmgr/lwlocknames.txt           |   5 +-
src/backend/utils/adt/float.c                      |   3 +-
src/backend/utils/misc/Makefile                    |   6 +-
src/backend/utils/misc/backend_random.c            | 158 --------
src/bin/pgbench/pgbench.c                          |   6 +-
src/include/pg_config.h.in                         |   3 -
src/include/pg_config.h.win32                      |   3 -
src/include/port.h                                 |   7 +-
src/include/utils/backend_random.h                 |  19 -
src/interfaces/libpq/fe-auth-scram.c               |  62 +--
src/port/Makefile                                  |   6 +-
32 files changed, 60 insertions(+), 1183 deletions(-)



Message-ID: <E1geHsn-0007dG-Pc@gemulon.postgresql.org>
Permalink:  ../E1geHsn-0007dG-Pc@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1geHsn-0007dG-Pc@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: michael@paquier.xyz
  Subject: Re: pgsql: Remove configure switch --disable-strong-random
  In-Reply-To: <E1geHsn-0007dG-Pc@gemulon.postgresql.org>
  References: <E1geHsn-0007dG-Pc@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