pgcrypto: Add function to check FIPS mode

This adds a SQL callable function for reading and returning the status
of FIPS configuration of OpenSSL.  If OpenSSL is operating with FIPS
enabled it will return true, otherwise false.  As this adds a function
to the SQL file, bump the extension version to 1.4.

Author: Daniel Gustafsson <dan...@yesql.se>
Reviewed-by: Joe Conway <m...@joeconway.com>
Discussion: 
https://postgr.es/m/8f979145-e206-475a-a31b-73c977a41...@joeconway.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/924d89a354750976cdd271d1dfc6c1e97cbb8851

Modified Files
--------------
contrib/pgcrypto/Makefile               |  2 +-
contrib/pgcrypto/meson.build            |  1 +
contrib/pgcrypto/openssl.c              | 27 +++++++++++++++++++++++++++
contrib/pgcrypto/pgcrypto--1.3--1.4.sql |  9 +++++++++
contrib/pgcrypto/pgcrypto.c             |  8 ++++++++
contrib/pgcrypto/pgcrypto.control       |  2 +-
contrib/pgcrypto/px.h                   |  2 ++
doc/src/sgml/pgcrypto.sgml              | 16 ++++++++++++++++
8 files changed, 65 insertions(+), 2 deletions(-)

Reply via email to