mirror of
https://github.com/postgres/postgres.git
synced 2025-10-05 00:06:59 -04:00
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
10 lines
325 B
SQL
10 lines
325 B
SQL
/* contrib/pgcrypto/pgcrypto--1.3--1.4.sql */
|
|
|
|
-- complain if script is sourced in psql, rather than via ALTER EXTENSION
|
|
\echo Use "ALTER EXTENSION pgcrypto UPDATE TO '1.4'" to load this file. \quit
|
|
|
|
CREATE FUNCTION fips_mode()
|
|
RETURNS bool
|
|
AS 'MODULE_PATHNAME', 'pg_check_fipsmode'
|
|
LANGUAGE C VOLATILE STRICT PARALLEL SAFE;
|