pg.ddx.io pgsql-hackers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Magnus Hagander <magnus@hagander.net>
Cc: Daniel Gustafsson <daniel@yesql.se>
Cc: Michael Paquier <michael@paquier.xyz>
Cc: Postgres hackers <pgsql-hackers@lists.postgresql.org>
Subject: Re: Move OpenSSL random under USE_OPENSSL_RANDOM
Date: Mon, 16 Nov 2020 10:06:00 -0500
Message-ID: <757056.1605539160@sss.pgh.pa.us> (raw)
In-Reply-To: <CABUevEyi6-cV9bv2Ot=sBXUY_OPKTn0ZOAgrCUQuMX9Cz4_eqg@mail.gmail.com>
References: <20201105034413.GE1632@paquier.xyz>
<C530001E-EFCA-4B04-98A6-AF8887A55C34@yesql.se>
<20201105121253.GA17513@paquier.xyz>
<7001EB35-BF76-4DEA-A7AB-CA94BCAA64E3@yesql.se>
<20201105122834.GB17513@paquier.xyz>
<8D9C19AD-674D-4FD2-820E-9B429053719E@yesql.se>
<20201105233632.GA21123@paquier.xyz>
<53D01523-A458-4FC6-83F1-8A16266F54A0@yesql.se>
<CABUevEwMa92UCWg2NDTr--0GGHimjGA5jWghm1BEnZ5qzEHmkQ@mail.gmail.com>
<632623.1605460616@sss.pgh.pa.us>
<20201116002016.GA2656@paquier.xyz>
<9C83EC17-2D70-4449-A7C0-FE090D38AE5A@yesql.se>
<CABUevEyi6-cV9bv2Ot=sBXUY_OPKTn0ZOAgrCUQuMX9Cz4_eqg@mail.gmail.com>
Magnus Hagander <magnus@hagander.net> writes:
> I agree with those -- either we remove the ability to choose random source
> independently of the SSL library (and then only use the windows crypto
> provider or /dev/urandom as platform-specific choices when *no* SSL library
> is used), and in that case we should not have separate #ifdef's for them.
> Or we fix the includes. Which is obviously easier, but we should take the
> time to do what we think is right long-term of course.
FWIW, I'd vote for the former. I think the presumption that OpenSSL's
random-number machinery can be used without any other initialization is
shaky as heck.
regards, tom lane
view thread (38+ messages) latest in thread
Message-ID: <757056.1605539160@sss.pgh.pa.us> Permalink: ../757056.1605539160@sss.pgh.pa.us/ Also on: postgresql.org/message-id/757056.1605539160@sss.pgh.pa.us ·
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-hackers@postgresql.org Cc: tgl@sss.pgh.pa.us, magnus@hagander.net, daniel@yesql.se, michael@paquier.xyz Subject: Re: Move OpenSSL random under USE_OPENSSL_RANDOM In-Reply-To: <757056.1605539160@sss.pgh.pa.us> References: <20201105034413.GE1632@paquier.xyz> <C530001E-EFCA-4B04-98A6-AF8887A55C34@yesql.se> <20201105121253.GA17513@paquier.xyz> <7001EB35-BF76-4DEA-A7AB-CA94BCAA64E3@yesql.se> <20201105122834.GB17513@paquier.xyz> <8D9C19AD-674D-4FD2-820E-9B429053719E@yesql.se> <20201105233632.GA21123@paquier.xyz> <53D01523-A458-4FC6-83F1-8A16266F54A0@yesql.se> <CABUevEwMa92UCWg2NDTr--0GGHimjGA5jWghm1BEnZ5qzEHmkQ@mail.gmail.com> <632623.1605460616@sss.pgh.pa.us> <20201116002016.GA2656@paquier.xyz> <9C83EC17-2D70-4449-A7C0-FE090D38AE5A@yesql.se> <CABUevEyi6-cV9bv2Ot=sBXUY_OPKTn0ZOAgrCUQuMX9Cz4_eqg@mail.gmail.com> <757056.1605539160@sss.pgh.pa.us> * 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