> On 12 Aug 2026, at 13:24, Álvaro Herrera <[email protected]> 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



Reply via email to