mirror of https://github.com/postgres/postgres
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.compull/198/head
parent
c44c2d2759
commit
924d89a354
@ -0,0 +1,9 @@ |
||||
/* 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; |
@ -1,6 +1,6 @@ |
||||
# pgcrypto extension |
||||
comment = 'cryptographic functions' |
||||
default_version = '1.3' |
||||
default_version = '1.4' |
||||
module_pathname = '$libdir/pgcrypto' |
||||
relocatable = true |
||||
trusted = true |
||||
|
Loading…
Reference in new issue