Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cjwt build failure is deprecated: Since OpenSSL 3.0 #426

Open
outbackdingo opened this issue Jul 29, 2023 · 0 comments
Open

cjwt build failure is deprecated: Since OpenSSL 3.0 #426

outbackdingo opened this issue Jul 29, 2023 · 0 comments

Comments

@outbackdingo
Copy link

consolidate compiler generated dependencies of target cjwt
[ 85%] Building C object src/CMakeFiles/cjwt.dir/cjwt.c.o
/home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c: In function ‘cjwt_create_rsa’:
/home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:206:9: error: ‘PEM_read_bio_RSA_PUBKEY’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
206 | rsa = PEM_read_bio_RSA_PUBKEY( keybio, &rsa, NULL, NULL );
| ^~~
In file included from /home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:31:
/usr/include/openssl/pem.h:449:1: note: declared here
449 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA)
| ^~~~~~~~~~~~~~~~~~~
/home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:208:9: error: ‘PEM_read_bio_RSAPrivateKey’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
208 | rsa = PEM_read_bio_RSAPrivateKey( keybio, &rsa, NULL, NULL );
| ^~~
In file included from /home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:31:
/usr/include/openssl/pem.h:447:1: note: declared here
447 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, RSAPrivateKey, RSA)
| ^~~~~~~~~~~~~~~~~~~~~~
/home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c: In function ‘cjwt_verify_rsa’:
/home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:248:9: error: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
248 | RSA_free( rsa );
| ^~~~~~~~
In file included from /home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:30:
/usr/include/openssl/rsa.h:293:28: note: declared here
293 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r);
| ^~~~~~~~
/home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:272:19: error: ‘RSA_verify’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
272 | ( NID_sha256, digest, SHA256_DIGEST_LENGTH, decoded_sig,
| ^
In file included from /home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:30:
/usr/include/openssl/rsa.h:351:27: note: declared here
351 | OSSL_DEPRECATEDIN_3_0 int RSA_verify(int type, const unsigned char *m,
| ^~~~~~~~~~
/home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:278:19: error: ‘RSA_verify’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
278 | ( NID_sha384, digest, SHA384_DIGEST_LENGTH, decoded_sig,
| ^
In file included from /home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:30:
/usr/include/openssl/rsa.h:351:27: note: declared here
351 | OSSL_DEPRECATEDIN_3_0 int RSA_verify(int type, const unsigned char *m,
| ^~~~~~~~~~
/home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:284:19: error: ‘RSA_verify’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
284 | ( NID_sha512, digest, SHA512_DIGEST_LENGTH, decoded_sig,
| ^
In file included from /home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:30:
/usr/include/openssl/rsa.h:351:27: note: declared here
351 | OSSL_DEPRECATEDIN_3_0 int RSA_verify(int type, const unsigned char *m,
| ^~~~~~~~~~
/home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:294:5: error: ‘RSA_free’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
294 | RSA_free( rsa );
| ^~~~~~~~
In file included from /home/dingo/parodus/build/_prefix/cjwt/src/cjwt/src/cjwt.c:30:
/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[5]: *** [src/CMakeFiles/cjwt.dir/build.make:76: src/CMakeFiles/cjwt.dir/cjwt.c.o] Error 1
make[4]: *** [CMakeFiles/Makefile2:156: src/CMakeFiles/cjwt.dir/all] Error 2
make[3]: *** [Makefile:136: all] Error 2
make[2]: *** [CMakeFiles/cjwt.dir/build.make:86: _prefix/cjwt/src/cjwt-stamp/cjwt-build] Error 2
make[1]: *** [CMakeFiles/Makefile2:1156: CMakeFiles/cjwt.dir/all] Error 2
make: *** [Makefile:146: all] Error 2
❯ openssl version
OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant