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

Uses deprecated OpenSSL 3.0 API #5362

Open
mbiebl opened this issue Apr 10, 2024 · 1 comment
Open

Uses deprecated OpenSSL 3.0 API #5362

mbiebl opened this issue Apr 10, 2024 · 1 comment

Comments

@mbiebl
Copy link
Contributor

mbiebl commented Apr 10, 2024

Version: 8.2404.0

Building rsyslog on a recent Debian sid, I get

tcpflood.c: In function 'initTLS':
tcpflood.c:1301:9: warning: 'ERR_load_BIO_strings' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1301 |         ERR_load_BIO_strings();
      |         ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/cryptoerr.h:17,
                 from /usr/include/openssl/crypto.h:38,
                 from /usr/include/openssl/comp.h:22,
                 from /usr/include/openssl/ssl.h:29,
                 from tcpflood.c:128:
/usr/include/openssl/cryptoerr_legacy.h:31:27: note: declared here
   31 | OSSL_DEPRECATEDIN_3_0 int ERR_load_BIO_strings(void);
      |                           ^~~~~~~~~~~~~~~~~~~~
tcpflood.c: In function 'initTLSSess':
tcpflood.c:1462:17: warning: 'BIO_set_callback' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1462 |                 BIO_set_callback(bio_client, BIO_debug_callback);
      |                 ^~~~~~~~~~~~~~~~
In file included from /usr/include/openssl/ssl.h:30:
/usr/include/openssl/bio.h:307:28: note: declared here
  307 | OSSL_DEPRECATEDIN_3_0 void BIO_set_callback(BIO *b, BIO_callback_fn callback);
      |                            ^~~~~~~~~~~~~~~~
tcpflood.c:1462:17: warning: 'BIO_debug_callback' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1462 |                 BIO_set_callback(bio_client, BIO_debug_callback);
      |                 ^~~~~~~~~~~~~~~~
/usr/include/openssl/bio.h:308:28: note: declared here
  308 | OSSL_DEPRECATEDIN_3_0 long BIO_debug_callback(BIO *bio, int cmd,
      |                            ^~~~~~~~~~~~~~~~~~
tcpflood.c: In function 'initDTLSSess':
tcpflood.c:1569:17: warning: 'BIO_set_callback' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1569 |                 BIO_set_callback(bio_client, BIO_debug_callback);
      |                 ^~~~~~~~~~~~~~~~
/usr/include/openssl/bio.h:307:28: note: declared here
  307 | OSSL_DEPRECATEDIN_3_0 void BIO_set_callback(BIO *b, BIO_callback_fn callback);
      |                            ^~~~~~~~~~~~~~~~
tcpflood.c:1569:17: warning: 'BIO_debug_callback' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations]
 1569 |                 BIO_set_callback(bio_client, BIO_debug_callback);
      |                 ^~~~~~~~~~~~~~~~
/usr/include/openssl/bio.h:308:28: note: declared here
  308 | OSSL_DEPRECATEDIN_3_0 long BIO_debug_callback(BIO *bio, int cmd,
      |                            ^~~~~~~~~~~~~~~~~~
@alorbach
Copy link
Member

This only affects the testbench utility "tcpflood.c", not the actual rsyslog build because it handles the different versions for those Debug Callbacks. I will keep this in mind and update the code in tcpflood.c.

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

2 participants