On Fri, Sep 24, 2021 at 08:09:29PM +0500, ???? ??????? wrote:
> ??, 24 ????. 2021 ?. ? 19:49, Willy Tarreau <[email protected]>:
> 
> > On Fri, Sep 24, 2021 at 07:14:40PM +0500, ???? ??????? wrote:
> > > > I'd really prefer that we address all this API stuff through the
> > > > openssl-compat stuff, so that over time we can more easily drop
> > > > unneeded stuff. Above that could be done this way:
> > > >
> > > >   #if (OPENSSL_VERSION_NUMBER >= 0x30000000L)
> > > >   #  define ERR_func_error_string(ret) "OPENSSL_internal"
> > > >   #endif
> > > >
> > >
> > >
> > > This introduces dangerous dependency on ERR_func_error_string being
> > > substituted by preprocessor before it is passed to the compiler (or not)
> >
> > If it were defined you wouldn't have to work around it. And if you're
> > worried that it may still be defined in some cases (which I perfectly
> > understand), then you can just prepend a #undef before the #define.
> >
> 
> I believe it is a function (at least for earlier openssl)

Grrrr... so we'll have to provide a wrapper outselves :-/

Willy

Reply via email to