Re: [HACKERS] Error-like LOG when connecting with SSL for passwordauthentication - Mailing list pgsql-hackers

From Heikki Linnakangas
Subject Re: [HACKERS] Error-like LOG when connecting with SSL for passwordauthentication
Date
Msg-id 6a611c33-918a-510a-212d-f156559c8592@iki.fi
Whole thread Raw
In response to Re: [HACKERS] Error-like LOG when connecting with SSL for password authentication  (Vaishnavi Prabakaran <vaishnaviprabakaran@gmail.com>)
Responses Re: [HACKERS] Error-like LOG when connecting with SSL for password authentication  (Michael Paquier <michael.paquier@gmail.com>)
List pgsql-hackers
On 05/22/2017 10:11 PM, Vaishnavi Prabakaran wrote:
> On Mon, May 22, 2017 at 5:10 PM, Michael Paquier <michael.paquier@gmail.com>
> wrote:
>
>> If the protocol version is SSL
>> 3.0 or TLS 1.0, this result code is returned only if a closure alert
>> has occurred in the protocol, i.e. if the connection has been closed
>> cleanly. Note that in this case SSL_ERROR_ZERO_RETURN does not
>> necessarily indicate that the underlying transport has been closed.
>
> I guess this error code exist even for SSL2 protocol, In that case, don't
> we need to keep the current code for this error code?

If I understand correctly, with SSLv2, SSL_ERROR_ZERO_RETURN does mean 
that the underlying transport has been closed. Returning 0 seems 
appropriate in that case, too.

But the point is moot anyway, because PostgreSQL doesn't allow SSLv2 
anymore.

- Heikki




pgsql-hackers by date:

Previous
From: Heikki Linnakangas
Date:
Subject: Re: [HACKERS] Error-like LOG when connecting with SSL for passwordauthentication
Next
From: Mahi Gurram
Date:
Subject: [HACKERS] Regarding Postgres Dynamic Shared Memory (DSA)