Re: [fsverity-utils] 1.4: test suite does not build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Sep 20, 2021 at 08:05:25PM +0000, Aleksander Adamowski wrote:
> On Saturday, September 18, 2021 1:04 PM, Eric Biggers wrote:
> > Aleksander, can you look into these?
> 
> These look like compiler warnings, why did they break the build?
> 
> The reason for the warnings is that the Engines API that we use with OpenSSL <=
> 1.1 has started to be deprecated with OpenSSL release 3.0.
> 
> The replacement that OpenSSL offers is called "Providers":
> https://www.openssl.org/docs/man3.0/man7/migration_guide.html#Engines-and-METHOD-APIs
> 
> Unfortunately, the Providers API is only available starting with version 3.0,
> the same version that deprecates Engines:
> 
> https://www.openssl.org/docs/manmaster/man3/OSSL_PROVIDER_load.html
> 
> So, our options here are:
> 
> 1. Tolerate deprecation warnings from the compiler until the OpenSSL version
> that provides the new replacement API is widespread enough to stop supporting
> OpenSSL versions <= 1.1 (I think this is the most reasonable approach, after
> all that's how deprecation mechanisms are meant to be used).
> 
> 2. Use a bunch of preprocessor conditional #ifdefs to support both OpenSSL
> pre-3.0 with Engines and post-3.0 with Providers. This would make code pretty
> messy IMHO, but should be doable. I can start working on a patch if we get
> consensus; however, my opinion is that we should withhold from that until
> OpenSSL 3 is the standard release on mainstream distros.
> 

Sorry, it looks like I misread Tomasz's email; the build break wasn't from those
warnings but rather from the test programs not being linked to libfsverity.
Tomasz, are you using the provided Makefile?  In the Makefile, the test programs
are linked correctly, so this isn't an issue.  How can I reproduce your issue?

Aleksander: there still shouldn't be any compiler warnings.  In my test script
(scripts/run-tests.sh) I actually use -Werror.  If there isn't a good way to
avoid these deprecation warnings (and I'd prefer not to have code that's
conditional on different OpenSSL versions), we can just add
-Wno-deprecated-declarations to the Makefile for now.

- Eric



[Index of Archives]     [linux Cryptography]     [Asterisk App Development]     [PJ SIP]     [Gnu Gatekeeper]     [IETF Sipping]     [Info Cyrus]     [ALSA User]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite News]     [Deep Creek Hot Springs]     [Yosemite Campsites]     [ISDN Cause Codes]

  Powered by Linux