pgcrypto: Add function to check FIPS mode
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 24 Jan 2025 13:18:40 +0000 (14:18 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Fri, 24 Jan 2025 13:18:40 +0000 (14:18 +0100)
commit924d89a354750976cdd271d1dfc6c1e97cbb8851
tree70db89728ad4ec471dab811e3fdaaaad46ac8ce7
parentc44c2d2759876463dcbab2eb608e33ed2e772d12
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 <daniel@yesql.se>
Reviewed-by: Joe Conway <mail@joeconway.com>
Discussion: https://postgr.es/m/8f979145-e206-475a-a31b-73c977a4134c@joeconway.com
contrib/pgcrypto/Makefile
contrib/pgcrypto/meson.build
contrib/pgcrypto/openssl.c
contrib/pgcrypto/pgcrypto--1.3--1.4.sql [new file with mode: 0644]
contrib/pgcrypto/pgcrypto.c
contrib/pgcrypto/pgcrypto.control
contrib/pgcrypto/px.h
doc/src/sgml/pgcrypto.sgml