Lists: | pgsql-hackers |
---|
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | pgsql-hackers(at)postgresql(dot)org |
Subject: | SSL cipher and version |
Date: | 2010-07-26 13:49:02 |
Message-ID: | AANLkTimr2vz2PL91dStDHbzj7muNs82-iTEbe3c7nuzX@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Last week, I ran across a situation where I needed to know the SSL
version and cipher in use for a particular database connection.
Magnus pointed me to contrib/sslinfo, but that didn't have quite what
I needed. The attached patch adds two additional functions to
contrib/sslinfo to report this information.
Any objections to me committing this?
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company
Attachment | Content-Type | Size |
---|---|---|
ssl_cipher_and_version.patch | application/octet-stream | 3.2 KB |
From: | Dave Page <dpage(at)pgadmin(dot)org> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: SSL cipher and version |
Date: | 2010-07-26 13:57:54 |
Message-ID: | AANLkTimdzAMJSQQr10SDxBjFjjbqKPKqRfzwsj5u_DgT@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Jul 26, 2010 at 2:49 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
> Last week, I ran across a situation where I needed to know the SSL
> version and cipher in use for a particular database connection.
> Magnus pointed me to contrib/sslinfo, but that didn't have quite what
> I needed. The attached patch adds two additional functions to
> contrib/sslinfo to report this information.
>
> Any objections to me committing this?
Might wanna fix this first:
+PG_FUNCTION_INFO_V1(ssl_veresion);
^^^^^^^^^^^^
--
Dave Page
EnterpriseDB UK: http://www.enterprisedb.com
The Enterprise Postgres Company
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Dave Page <dpage(at)pgadmin(dot)org> |
Cc: | pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: SSL cipher and version |
Date: | 2010-07-26 14:45:36 |
Message-ID: | AANLkTik=jHr-kAPHQ1yzfmH82AJaOZ+srstS-Z9SzDNt@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Mon, Jul 26, 2010 at 9:57 AM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
> On Mon, Jul 26, 2010 at 2:49 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>> Last week, I ran across a situation where I needed to know the SSL
>> version and cipher in use for a particular database connection.
>> Magnus pointed me to contrib/sslinfo, but that didn't have quite what
>> I needed. The attached patch adds two additional functions to
>> contrib/sslinfo to report this information.
>>
>> Any objections to me committing this?
>
> Might wanna fix this first:
>
> +PG_FUNCTION_INFO_V1(ssl_veresion);
> ^^^^^^^^^^^^
Wow. It works remarkably well without fixing that, but I'll admit
that does seem lucky.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company
From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Robert Haas <robertmhaas(at)gmail(dot)com> |
Cc: | Dave Page <dpage(at)pgadmin(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: SSL cipher and version |
Date: | 2010-07-27 04:06:49 |
Message-ID: | 29417.1280203609@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
Robert Haas <robertmhaas(at)gmail(dot)com> writes:
> On Mon, Jul 26, 2010 at 9:57 AM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
>> On Mon, Jul 26, 2010 at 2:49 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>>> Any objections to me committing this?
>>
>> Might wanna fix this first:
>>
>> +PG_FUNCTION_INFO_V1(ssl_veresion);
>> ^^^^^^^^^^^^
> Wow. It works remarkably well without fixing that, but I'll admit
> that does seem lucky.
Well, it's got no arguments, which is the main thing that works
differently in call protocol V1. I think you'd find that the
PG_RETURN_NULL case doesn't really work though ...
regards, tom lane
From: | Robert Haas <robertmhaas(at)gmail(dot)com> |
---|---|
To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
Cc: | Dave Page <dpage(at)pgadmin(dot)org>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: SSL cipher and version |
Date: | 2010-07-27 23:43:51 |
Message-ID: | AANLkTikXJM0Eoky8Dq5ZvjcM-=RcsSOQkZ5Shb88bcRr@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Lists: | pgsql-hackers |
On Tue, Jul 27, 2010 at 12:06 AM, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
> Robert Haas <robertmhaas(at)gmail(dot)com> writes:
>> On Mon, Jul 26, 2010 at 9:57 AM, Dave Page <dpage(at)pgadmin(dot)org> wrote:
>>> On Mon, Jul 26, 2010 at 2:49 PM, Robert Haas <robertmhaas(at)gmail(dot)com> wrote:
>>>> Any objections to me committing this?
>>>
>>> Might wanna fix this first:
>>>
>>> +PG_FUNCTION_INFO_V1(ssl_veresion);
>>> ^^^^^^^^^^^^
>
>> Wow. It works remarkably well without fixing that, but I'll admit
>> that does seem lucky.
>
> Well, it's got no arguments, which is the main thing that works
> differently in call protocol V1. I think you'd find that the
> PG_RETURN_NULL case doesn't really work though ...
It seems to work, but it might be that something's broken under the hood.
Anyhow, committed with that correction.
--
Robert Haas
EnterpriseDB: http://www.enterprisedb.com
The Enterprise Postgres Company