Bacula and OpenSSL3.0

Sven Hartge <[email protected]>
Newsgroups gmane.comp.sysutils.backup.bacula.devel
Message-ID <[email protected]>
Hi .*,

Just FYI, in case it is not on your radar: OpenSSL3.0 is nearing its
completion and again deprecates a number of API, some of which are used by
Bacula:

[...]
Compiling crypto.c
/build/bacula-9.6.5/libtool --tag=CXX --mode=compile /usr/bin/g++   -c  -Wdate-time -D_FORTIFY_SOURCE=2 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti  -I. -I..  -g -O2 -fdebu
g-prefix-map=/build/bacula-9.6.5=. -fstack-protector-strong -Wformat -Werror=format-security -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti  crypto.c
libtool: compile:  /usr/bin/g++ -c -Wdate-time -D_FORTIFY_SOURCE=2 -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti -I. -I.. -g -O2 -fdebug-prefix-map=/build/bacula-9.6.5=. -fst
ack-protector-strong -Wformat -Werror=format-security -x c++ -fno-strict-aliasing -fno-exceptions -fno-rtti crypto.c  -fPIC -DPIC -o .libs/crypto.o
crypto.c: In function 'CRYPTO_SESSION* crypto_session_new(crypto_cipher_t, alist*)':
crypto.c:1095:99: warning: 'int EVP_PKEY_encrypt_old(unsigned char*, const unsigned char*, int, EVP_PKEY*)' is deprecated [-Wdeprecated-declarations]
 1095 |       if ((ekey_len = EVP_PKEY_encrypt(ekey, cs->session_key, cs->session_key_len, keypair->pubkey)) <= 0) {
      |                                                                                                   ^
In file included from /usr/include/openssl/opensslv.h:109,
                 from /usr/include/openssl/macros.h:11,
                 from /usr/include/x86_64-linux-gnu/openssl/opensslconf.h:14,
                 from /usr/include/openssl/macros.h:10,
                 from /usr/include/openssl/ssl.h:16,
                 from ../bacula.h:147,
                 from crypto.c:37:
/usr/include/openssl/evp.h:1132:1: note: declared here
 1132 | DEPRECATEDIN_3_0(int EVP_PKEY_encrypt_old(unsigned char *enc_key,
      | ^~~~~~~~~~~~~~~~
crypto.c: In function 'crypto_error_t crypto_session_decode(const u_int8_t*, u_int32_t, alist*, CRYPTO_SESSION**)':
crypto.c:1215:89: warning: 'int EVP_PKEY_decrypt_old(unsigned char*, const unsigned char*, int, EVP_PKEY*)' is deprecated [-Wdeprecated-declarations]
 1215 |                                   ASN1_STRING_length(ri->encryptedKey), keypair->privkey);
      |                                                                                         ^
In file included from /usr/include/openssl/opensslv.h:109,
                 from /usr/include/openssl/macros.h:11,
                 from /usr/include/x86_64-linux-gnu/openssl/opensslconf.h:14,
                 from /usr/include/openssl/macros.h:10,
                 from /usr/include/openssl/ssl.h:16,
                 from ../bacula.h:147,
                 from crypto.c:37:
/usr/include/openssl/evp.h:1128:1: note: declared here
 1128 | DEPRECATEDIN_3_0(int EVP_PKEY_decrypt_old(unsigned char *dec_key,
      | ^~~~~~~~~~~~~~~~
[...]

Grüße,
Sven.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.