mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-08-18 13:53:24 +02:00
This new function provides information about SSL extensions present in the X509 certificate used for the current connection. Extension version updated to version 1.1. Author: Дмитрий Воронин (Dmitry Voronin) Reviewed by: Michael Paquier, Heikki Linnakangas, Álvaro Herrera
13 lines
386 B
SQL
13 lines
386 B
SQL
/* contrib/sslinfo/sslinfo--1.0--1.1.sql */
|
|
|
|
-- complain if script is sourced in psql, rather than via CREATE EXTENSION
|
|
\echo Use "ALTER EXTENSION sslinfo UPDATE TO '1.1'" to load this file. \quit
|
|
|
|
CREATE OR REPLACE FUNCTION
|
|
ssl_extension_info(OUT name text,
|
|
OUT value text,
|
|
OUT critical boolean
|
|
) RETURNS SETOF record
|
|
AS 'MODULE_PATHNAME', 'ssl_extension_info'
|
|
LANGUAGE C STRICT;
|