2011-02-14 09:06:41 +08:00
|
|
|
/* contrib/sslinfo/sslinfo--1.0.sql */
|
2006-09-04 23:07:46 +08:00
|
|
|
|
2011-10-13 03:45:03 +08:00
|
|
|
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
|
|
|
\echo Use "CREATE EXTENSION sslinfo" to load this file. \quit
|
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION ssl_client_serial() RETURNS numeric
|
2007-11-13 10:17:33 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_client_serial'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 23:07:46 +08:00
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION ssl_is_used() RETURNS boolean
|
2007-11-13 10:17:33 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_is_used'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 23:07:46 +08:00
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION ssl_version() RETURNS text
|
2010-07-28 07:43:42 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_version'
|
|
|
|
LANGUAGE C STRICT;
|
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION ssl_cipher() RETURNS text
|
2010-07-28 07:43:42 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_cipher'
|
|
|
|
LANGUAGE C STRICT;
|
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION ssl_client_cert_present() RETURNS boolean
|
2007-11-13 10:17:33 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_client_cert_present'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 23:07:46 +08:00
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION ssl_client_dn_field(text) RETURNS text
|
2007-11-13 10:17:33 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_client_dn_field'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 23:07:46 +08:00
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION ssl_issuer_field(text) RETURNS text
|
2007-11-13 10:17:33 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_issuer_field'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 23:07:46 +08:00
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION ssl_client_dn() RETURNS text
|
2007-11-13 10:17:33 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_client_dn'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 23:07:46 +08:00
|
|
|
|
2011-02-14 10:24:14 +08:00
|
|
|
CREATE FUNCTION ssl_issuer_dn() RETURNS text
|
2007-11-13 10:17:33 +08:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_issuer_dn'
|
|
|
|
LANGUAGE C STRICT;
|