Your package is failing to build using OpenSSL 3.0 with the
following error:
| libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src/lib -Wdate-time -D_FORTIFY_SOURCE=2 -I./src -I./src/lib -Wall -Wextra -Werror -Wformat -Wformat-security -Wstack-protector -fstack-protector-all -Wstrict-overflow=5 -O2 -fPIC -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -I/usr/include/tss2 -pthread -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat -Werror=format-security -g -c src/lib/mech.c -fPIC -DPIC -o src/lib/.libs/mech.o
| src/lib/mech.c: In function ‘rsa_pkcs_synthesizer’:
| src/lib/mech.c:860:5: error: ‘RSA_padding_add_PKCS1_type_1’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 860 | int rc = RSA_padding_add_PKCS1_type_1(outbuf, padded_len,
| | ^~~
| In file included from src/lib/mech.c:10:
| /usr/include/openssl/rsa.h:376:5: note: declared here
| 376 | int RSA_padding_add_PKCS1_type_1(unsigned char *to, int tlen,
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
| src/lib/mech.c: In function ‘rsa_pkcs_unsynthesizer’:
| src/lib/mech.c:896:5: error: ‘RSA_padding_check_PKCS1_type_2’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 896 | int rc = RSA_padding_check_PKCS1_type_2(buf, sizeof(buf),
| | ^~~
| In file included from src/lib/mech.c:10:
| /usr/include/openssl/rsa.h:386:5: note: declared here
| 386 | int RSA_padding_check_PKCS1_type_2(unsigned char *to, int tlen,
| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| src/lib/mech.c: In function ‘rsa_pss_synthesizer’:
| src/lib/mech.c:972:5: error: ‘RSA_new’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 972 | RSA *rsa = RSA_new();
| | ^~~
| In file included from src/lib/mech.c:10:
| /usr/include/openssl/rsa.h:201:28: note: declared here
| 201 | OSSL_DEPRECATEDIN_3_0 RSA *RSA_new(void);
| | ^~~~~~~
| src/lib/mech.c:978:5: error: ‘RSA_set0_key’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 978 | int rc = RSA_set0_key(rsa, n, e, NULL);
| | ^~~
| In file included from src/lib/mech.c:10:
| /usr/include/openssl/rsa.h:207:27: note: declared here
| 207 | OSSL_DEPRECATEDIN_3_0 int RSA_set0_key(RSA *r, BIGNUM *n, BIGNUM *e, BIGNUM *d);
| | ^~~~~~~~~~~~
| src/lib/mech.c:983:9: error: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 983 | RSA_free(rsa);
| | ^~~~~~~~
| In file included from src/lib/mech.c:10:
| /usr/include/openssl/rsa.h:293:28: note: declared here
| 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| | ^~~~~~~~
| src/lib/mech.c:987:5: error: ‘RSA_padding_add_PKCS1_PSS’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 987 | rc = RSA_padding_add_PKCS1_PSS(rsa, outbuf,
| | ^~
| In file included from src/lib/mech.c:10:
| /usr/include/openssl/rsa.h:428:5: note: declared here
| 428 | int RSA_padding_add_PKCS1_PSS(RSA *rsa, unsigned char *EM,
| | ^~~~~~~~~~~~~~~~~~~~~~~~~
| src/lib/mech.c:989:5: error: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 989 | RSA_free(rsa);
| | ^~~~~~~~
| In file included from src/lib/mech.c:10:
| /usr/include/openssl/rsa.h:293:28: note: declared here
| 293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| | ^~~~~~~~
| cc1: all warnings being treated as errors
| make[1]: *** [Makefile:2009: src/lib/mech.lo] Error 1
For more information see:
https://www.openssl.org/docs/man3.0/man7/migration_guide.html
Sebastian