From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Dmitry Voronin <carriingfate92(at)yandex(dot)ru> |
Cc: | PostgreSQL mailing lists <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: New functions |
Date: | 2015-03-09 13:43:54 |
Message-ID: | 20150309134354.GM3291@alvh.no-ip.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
Dmitry Voronin wrote:
> <div><pre>Hello,
> </pre><pre>I make an a patch, which adds 4 functions to sslinfo extension module:<br />1) ssl_extension_names() --- get short names of X509v3 extensions from client certificate and it's values;
> 2) ssl_extension_value(text) --- get value of extension from certificate (argument --- short name of extension);
> 3) ssl_extension_is_critical(text) --- returns true, if extension is critical and false, if is not (argument --- short name of extension).
>
> You can view some information of certificate's extensions via those functions.
Since you change default version from 1.0 to 1.1 you need to supply the
sslinfo--1.1.sql script. You also need to supply a sslinfo--1.0--1.1.sql
script which enables updates from version 1.0 to 1.1.
(The test for the upgrade is to initdb 9.4, and in some database install
the sslinfo extension; then pg_upgrade to a version with your patch. In
the database with the extension then try to upgrade it to 1.1.)
Please use C type bool not int when that's what the code means.
--
Álvaro Herrera http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Tom Lane | 2015-03-09 13:46:08 | Re: Object files generated by ecpg test suite not ignored on Windows |
Previous Message | Michael Meskes | 2015-03-09 13:39:55 | Re: Object files generated by ecpg test suite not ignored on Windows |