pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Heikki Linnakangas <heikki.linnakangas@iki.fi>
To: pgsql-committers@postgresql.org
Subject: pgsql: Refactor SHA2 functions and move them to src/common/.
Date: Tue, 07 Mar 2017 12:26:37 +0000
Message-ID: <E1clECL-0002jD-Hs@gemulon.postgresql.org> (raw)
List-Unsubscribe:  <mailto:majordomo@postgresql.org?body=unsub%20pgsql-committers>

Refactor SHA2 functions and move them to src/common/.

This way both frontend and backends can use them. The functions are taken
from pgcrypto, which now fetches the source files it needs from
src/common/.

A new interface is designed for the SHA2 functions, which allow linking
to either OpenSSL or the in-core stuff taken from KAME as needed.

Michael Paquier, reviewed by Robert Haas.

Discussion: https://www.postgresql.org/message-id/CAB7nPqTGKuTM5jiZriHrNaQeVqp5e_iT3X4BFLWY_HyHxLvySQ%40mail.gma...

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/273c458a2b3a0fb73968020ea5e9e35eb6928967

Modified Files
--------------
contrib/pgcrypto/.gitignore      |    4 +
contrib/pgcrypto/Makefile        |    9 +-
contrib/pgcrypto/internal-sha2.c |   82 ++--
contrib/pgcrypto/sha2.c          |  992 -------------------------------------
contrib/pgcrypto/sha2.h          |  100 ----
src/common/Makefile              |    6 +
src/common/sha2.c                | 1006 ++++++++++++++++++++++++++++++++++++++
src/common/sha2_openssl.c        |  102 ++++
src/include/common/sha2.h        |  115 +++++
src/tools/msvc/Mkvcbuild.pm      |   20 +-
10 files changed, 1297 insertions(+), 1139 deletions(-)


-- 
Sent via pgsql-committers mailing list (pgsql-committers@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-committers


Message-ID: <E1clECL-0002jD-Hs@gemulon.postgresql.org>
Permalink:  ../E1clECL-0002jD-Hs@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1clECL-0002jD-Hs@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: heikki.linnakangas@iki.fi
  Subject: Re: pgsql: Refactor SHA2 functions and move them to src/common/.
  In-Reply-To: <E1clECL-0002jD-Hs@gemulon.postgresql.org>
  References: <E1clECL-0002jD-Hs@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