frankmorgner / vsmartcard

umbrella project for emulation of smart card readers or smart cards
http://frankmorgner.github.io/vsmartcard/
712 stars 200 forks source link

Make ccid fails with [-Werror=deprecated-declarations] #285

Open frknilisu opened 2 days ago

frknilisu commented 2 days ago

Expected behaviour

What should happen?

Compiling ccid-emulator should be succeed.

Actual behaviour

What happens instead?

Compiling ccid-emulator fails.

Steps to reproduce

  1. Download ccid-emulator-0.8 release
  2. Follow the instructions to compile it
  3. Run make command

Logs

Please use Gist (https://gist.github.com/) or a similar code paster for longer logs.

Paste Log output with less than 10 lines here pkcs15-westcos.c:303:17: error: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations] 303 | RSA_free(rsa); | ^~~~ In file included from pkcs15-westcos.c:30: /usr/include/openssl/rsa.h:298:28: note: declared here 298 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~ cc1: all warnings being treated as errors make[3]: *** [Makefile:597: pkcs15-westcos.lo] Error 1 make[3]: Leaving directory '/home/frkn/Downloads/ccid-emulator-0.8/src/OpenSC/src/pkcs15init'

frankmorgner commented 1 day ago

Please either use `export CFLAGS="-Wno-error=deprecated-declarations" to compile or make a pull request with an updated version of OpenSC (which nowadays is compatible with OpenSSL 3.0+).