| From: | Daniel Gustafsson <daniel(at)yesql(dot)se> |
|---|---|
| To: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
| Cc: | Michael Paquier <michael(at)paquier(dot)xyz>, cary huang <hcary328(at)gmail(dot)com>, pgsql-hackers(at)lists(dot)postgresql(dot)org |
| Subject: | Re: Setting min/max TLS protocol in clientside libpq |
| Date: | 2020-01-14 22:01:00 |
| Message-ID: | 2A687774-33FD-49A2-970B-4DD3BEA4A2FE@yesql.se |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-hackers |
> On 14 Jan 2020, at 16:15, Daniel Gustafsson <daniel(at)yesql(dot)se> wrote:
>
>> On 14 Jan 2020, at 15:49, Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> wrote:
>>
>> Daniel Gustafsson <daniel(at)yesql(dot)se> writes:
>>>>> On 11 Jan 2020, at 03:49, Michael Paquier <michael(at)paquier(dot)xyz> wrote:
>>>>> One thing I noticed when looking at it is that we now have sha2_openssl.c and
>>>>> openssl_protocol.c in src/common. For easier visual grouping of OpenSSL
>>>>> functionality, it makes sense to me to rename sha2_openssl.c to openssl_sha2.c,
>>>>> but that might just be pointless churn.
>>
>>>> Databases like consistency, and so do I, so no issues from me to do a
>>>> rename of the sha2.c file. That makes sense with the addition of the
>>>> new file.
>>
>>> Done in the attached v3.
>>
>> I'm kind of down on renaming files unless there is a *really* strong
>> reason for it. It makes back-patching more difficult and it makes
>> it much harder to follow the git history. And, seeing that there is
>> also a src/common/sha2.c, it seems to me that renaming sha2_openssl.c
>> will just break consistency in a different way.
>>
>> Maybe the problem is you've got the new file's name backwards.
>> Maybe it should be protocol_openssl.c.
>
> Thats a very good argument, I’ll send a v4 with protocol_openssl.c when back at the computer.
Files renamed to match existing naming convention, the rest of the patch left
unchanged.
cheers ./daniel
| Attachment | Content-Type | Size |
|---|---|---|
| libpq_minmaxproto_v4.patch | application/octet-stream | 18.0 KB |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Tom Lane | 2020-01-14 22:01:01 | Re: aggregate crash |
| Previous Message | Alvaro Herrera | 2020-01-14 21:59:42 | Re: DROP OWNED CASCADE vs Temp tables |