2011-02-14 04:06:41 +03:00
|
|
|
/* contrib/sslinfo/sslinfo--1.0.sql */
|
2006-09-04 19:07:46 +04:00
|
|
|
|
2011-10-12 23:45:03 +04: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 05:24:14 +03:00
|
|
|
CREATE FUNCTION ssl_client_serial() RETURNS numeric
|
2007-11-13 05:17:33 +03:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_client_serial'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 19:07:46 +04:00
|
|
|
|
2011-02-14 05:24:14 +03:00
|
|
|
CREATE FUNCTION ssl_is_used() RETURNS boolean
|
2007-11-13 05:17:33 +03:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_is_used'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 19:07:46 +04:00
|
|
|
|
2011-02-14 05:24:14 +03:00
|
|
|
CREATE FUNCTION ssl_version() RETURNS text
|
2010-07-28 03:43:42 +04:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_version'
|
|
|
|
LANGUAGE C STRICT;
|
|
|
|
|
2011-02-14 05:24:14 +03:00
|
|
|
CREATE FUNCTION ssl_cipher() RETURNS text
|
2010-07-28 03:43:42 +04:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_cipher'
|
|
|
|
LANGUAGE C STRICT;
|
|
|
|
|
2011-02-14 05:24:14 +03:00
|
|
|
CREATE FUNCTION ssl_client_cert_present() RETURNS boolean
|
2007-11-13 05:17:33 +03:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_client_cert_present'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 19:07:46 +04:00
|
|
|
|
2011-02-14 05:24:14 +03:00
|
|
|
CREATE FUNCTION ssl_client_dn_field(text) RETURNS text
|
2007-11-13 05:17:33 +03:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_client_dn_field'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 19:07:46 +04:00
|
|
|
|
2011-02-14 05:24:14 +03:00
|
|
|
CREATE FUNCTION ssl_issuer_field(text) RETURNS text
|
2007-11-13 05:17:33 +03:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_issuer_field'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 19:07:46 +04:00
|
|
|
|
2011-02-14 05:24:14 +03:00
|
|
|
CREATE FUNCTION ssl_client_dn() RETURNS text
|
2007-11-13 05:17:33 +03:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_client_dn'
|
|
|
|
LANGUAGE C STRICT;
|
2006-09-04 19:07:46 +04:00
|
|
|
|
2011-02-14 05:24:14 +03:00
|
|
|
CREATE FUNCTION ssl_issuer_dn() RETURNS text
|
2007-11-13 05:17:33 +03:00
|
|
|
AS 'MODULE_PATHNAME', 'ssl_issuer_dn'
|
|
|
|
LANGUAGE C STRICT;
|