Re: LibreSSL and OpenSSL separation in libpq to support 1.1.1 deprecation - Mailing list pgsql-hackers

From Daniel Gustafsson
Subject Re: LibreSSL and OpenSSL separation in libpq to support 1.1.1 deprecation
Date
Msg-id AC728D83-CFB1-4740-9980-5241415F7784@yesql.se
Whole thread
In response to LibreSSL and OpenSSL separation in libpq to support 1.1.1 deprecation  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-hackers
> On 12 Aug 2026, at 13:24, Álvaro Herrera <alvherre@kurilemu.de> wrote:

> I think it should be possible to have one file where the common routines
> that are identical for both libraries live (say be-secure-lossl.c for
> "libre/open" or whatever), and the corresponding be-secure-libressl.c
> and be-secure-openssl.c files only have the routines that differ between
> the two implementations.  So the common code appears once and has to be
> patched just once, and we would only have differences where we must.

A scheme like that is certainly an option as well.  There might also be parts
which could be extracted into be-secure-common.c on the grounds of not being
OpenSSL specific at all.

> Probably it's easiest to do this by having one .c file that's included
> by the other two, to avoid having to export the static variables and
> such.

I'm not a fan of #including a C file, and the move towards threading requires
us to clean up and remove such things anyways no?

--
Daniel Gustafsson




pgsql-hackers by date:

Previous
From: Haibo Yan
Date:
Subject: Re: [PATCH] Remove redundant ORDER BY from COUNT aggregates
Next
From: Tom Lane
Date:
Subject: Re: Disallow outer-level and WHERE-clause aggregates in GRAPH_TABLE