pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: Peter Eisentraut <peter.eisentraut@2ndquadrant.com>
Cc: Alessandro Gherardi <alessandro.gherardi@yahoo.com>
Cc: pgsql-general@lists.postgresql.org <pgsql-general@lists.postgresql.org>
Subject: Re: scram-sha-256 authentication broken in FIPS mode
Date: Thu, 13 Sep 2018 12:11:14 +0900
Message-ID: <20180913031114.GA3578@paquier.xyz> (raw)
In-Reply-To: <20180911222424.GB25160@paquier.xyz>
References: <898098721.1290085.1536118171911@mail.yahoo.com>
	<20180905042717.GL20696@paquier.xyz>
	<767499000.1481233.1536153579656@mail.yahoo.com>
	<20180905181545.GC2726@paquier.xyz>
	<1691863835.972001.1536301001998@mail.yahoo.com>
	<1924578892.946938.1536301653576@mail.yahoo.com>
	<1168852455.1352488.1536591120175@mail.yahoo.com>
	<20180911030250.GA27115@paquier.xyz>
	<5aeb058d-e32c-e3e0-e4b1-6469aeeadc2b@2ndquadrant.com>
	<20180911222424.GB25160@paquier.xyz>

On Wed, Sep 12, 2018 at 07:24:24AM +0900, Michael Paquier wrote:
> Good point.  Such things have bitten in the past.  Okay, then let's do
> something about sha2_openssl.c only on HEAD for now then, which I am
> fine to finish wrapping.

I was looking at trying to commit this patch, however more needs to be
done in terms of error handling, as the proposed patch would happily
crash if EVP_MD_CTX cannot be allocated (understand OOM) in
EVP_DigestInit_ex if I read the OpenSSL code correctly (see
crypto/evp/digest.c).  Our lives would be facilitated if it was possible
to use directly EVP_MD_CTX and EVP_MD_CTX_init so as no allocation is
done but that's not doable as of 1.0.2.
--
Michael

Attachments:

  signature.asc (application/pgp-signature, 832B) download

view thread (13+ messages)  latest in thread

Message-ID: <20180913031114.GA3578@paquier.xyz>
Permalink:  ../20180913031114.GA3578@paquier.xyz/
Also on:    postgresql.org/message-id/20180913031114.GA3578@paquier.xyz

 · 

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-general@postgresql.org
  Cc: michael@paquier.xyz, peter.eisentraut@2ndquadrant.com, alessandro.gherardi@yahoo.com
  Subject: Re: scram-sha-256 authentication broken in FIPS mode
  In-Reply-To: <20180913031114.GA3578@paquier.xyz>
  References: <898098721.1290085.1536118171911@mail.yahoo.com> <20180905042717.GL20696@paquier.xyz> <767499000.1481233.1536153579656@mail.yahoo.com> <20180905181545.GC2726@paquier.xyz> <1691863835.972001.1536301001998@mail.yahoo.com> <1924578892.946938.1536301653576@mail.yahoo.com> <1168852455.1352488.1536591120175@mail.yahoo.com> <20180911030250.GA27115@paquier.xyz> <5aeb058d-e32c-e3e0-e4b1-6469aeeadc2b@2ndquadrant.com> <20180911222424.GB25160@paquier.xyz> <20180913031114.GA3578@paquier.xyz>

* 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