| From: | Heikki Linnakangas <heikki(dot)linnakangas(at)iki(dot)fi> |
|---|---|
| To: | pgsql-committers(at)postgresql(dot)org |
| Subject: | pgsql: Refactor SHA2 functions and move them to src/common/. |
| Date: | 2017-03-07 12:26:37 |
| Message-ID: | E1clECL-0002jD-Hs@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-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.gmail.com
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(-)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Simon Riggs | 2017-03-07 13:06:49 | pgsql: Ensure ThisTimeLineID is valid before START_REPLICATION |
| Previous Message | Stephen Frost | 2017-03-07 04:29:43 | pgsql: pg_dump: Properly handle public schema ACLs with --clean |