aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorDaniel Gustafsson <dgustafsson@postgresql.org>2025-01-24 14:18:40 +0100
committerDaniel Gustafsson <dgustafsson@postgresql.org>2025-01-24 14:18:40 +0100
commit924d89a354750976cdd271d1dfc6c1e97cbb8851 (patch)
tree70db89728ad4ec471dab811e3fdaaaad46ac8ce7 /doc/src
parentc44c2d2759876463dcbab2eb608e33ed2e772d12 (diff)
downloadpostgresql-924d89a354750976cdd271d1dfc6c1e97cbb8851.tar.gz
postgresql-924d89a354750976cdd271d1dfc6c1e97cbb8851.zip
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
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/pgcrypto.sgml16
1 files changed, 16 insertions, 0 deletions
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
</para>
</sect2>
+ <sect2 id="pgcrypto-openssl-support-funcs">
+ <title>OpenSSL Support Functions</title>
+
+ <indexterm>
+ <primary>fips_mode</primary>
+ </indexterm>
+
+<synopsis>
+fips_mode() returns boolean
+</synopsis>
+ <para>
+ Returns <literal>true</literal> if <productname>OpenSSL</productname> is
+ running with FIPS mode enabled, otherwise <literal>false</literal>.
+ </para>
+ </sect2>
+
<sect2 id="pgcrypto-notes">
<title>Notes</title>