From 924d89a354750976cdd271d1dfc6c1e97cbb8851 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Fri, 24 Jan 2025 14:18:40 +0100 Subject: 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 Reviewed-by: Joe Conway Discussion: https://postgr.es/m/8f979145-e206-475a-a31b-73c977a4134c@joeconway.com --- doc/src/sgml/pgcrypto.sgml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'doc/src') diff --git a/doc/src/sgml/pgcrypto.sgml b/doc/src/sgml/pgcrypto.sgml index 396c67f0cde..838d7532a52 100644 --- a/doc/src/sgml/pgcrypto.sgml +++ b/doc/src/sgml/pgcrypto.sgml @@ -1149,6 +1149,22 @@ gen_random_uuid() returns uuid + + OpenSSL Support Functions + + + fips_mode + + + +fips_mode() returns boolean + + + Returns true if OpenSSL is + running with FIPS mode enabled, otherwise false. + + + Notes -- cgit v1.2.3