Source: mosh
Version: 1.3.2-2.1
Severity: important
Tags: bookworm sid
User: [email protected]
Usertags: ftbfs-3.0
Your package is failing to build using OpenSSL 3.0 with the
following error:
| c++ -DHAVE_CONFIG_H -I. -I../.. -I./../util -Wdate-time -D_FORTIFY_SOURCE=2
-Wall -Werror -Wextra -pedantic -Wno-long-long -Weffc++ -Wmissing-declarations
-fno-strict-overflow -D_FORTIFY_SOURCE=2 -fstack-protector-all
-Wstack-protector --param ssp-buffer-size=1 -fPIE -fno-default-inline -pipe -g
-O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -Wformat -Werror=format-security -c -o
ocb.o ocb.cc
| ocb.cc: In function ‘void AES_ecb_encrypt_blks(block*, unsigned int,
AES_KEY*)’:
| ocb.cc:360:80: error: ‘void AES_encrypt(const unsigned char*, unsigned
char*, const AES_KEY*)’ is deprecated: Since OpenSSL 3.0
[-Werror=deprecated-declarations]
| 360 | AES_encrypt((unsigned char *)(blks+nblks), (unsigned char
*)(blks+nblks), key);
| |
^
| In file included from ocb.cc:354:
| /usr/include/openssl/aes.h:57:6: note: declared here
| 57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
| | ^~~~~~~~~~~
| ocb.cc: In function ‘void AES_ecb_decrypt_blks(block*, unsigned int,
AES_KEY*)’:
| ocb.cc:367:80: error: ‘void AES_decrypt(const unsigned char*, unsigned
char*, const AES_KEY*)’ is deprecated: Since OpenSSL 3.0
[-Werror=deprecated-declarations]
| 367 | AES_decrypt((unsigned char *)(blks+nblks), (unsigned char
*)(blks+nblks), key);
| |
^
| In file included from ocb.cc:354:
| /usr/include/openssl/aes.h:60:6: note: declared here
| 60 | void AES_decrypt(const unsigned char *in, unsigned char *out,
| | ^~~~~~~~~~~
| ocb.cc: In function ‘int ae_init(ae_ctx*, const void*, int, int, int)’:
| ocb.cc:804:75: error: ‘int AES_set_encrypt_key(const unsigned char*, int,
AES_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 804 | AES_set_encrypt_key((unsigned char *)key, key_len*8,
&ctx->encrypt_key);
| |
^
| In file included from ocb.cc:354:
| /usr/include/openssl/aes.h:51:5: note: declared here
| 51 | int AES_set_encrypt_key(const unsigned char *userKey, const int bits,
| | ^~~~~~~~~~~~~~~~~~~
| ocb.cc:808:82: error: ‘int AES_set_decrypt_key(const unsigned char*, int,
AES_KEY*)’ is deprecated: Since OpenSSL 3.0 [-Werror=deprecated-declarations]
| 808 | AES_set_decrypt_key((unsigned char *)key, (int)(key_len*8),
&ctx->decrypt_key);
| |
^
| In file included from ocb.cc:354:
| /usr/include/openssl/aes.h:54:5: note: declared here
| 54 | int AES_set_decrypt_key(const unsigned char *userKey, const int bits,
| | ^~~~~~~~~~~~~~~~~~~
| ocb.cc:817:76: error: ‘void AES_encrypt(const unsigned char*, unsigned
char*, const AES_KEY*)’ is deprecated: Since OpenSSL 3.0
[-Werror=deprecated-declarations]
| 817 | (unsigned char *)&ctx->Lstar,
&ctx->encrypt_key);
| |
^
| In file included from ocb.cc:354:
| /usr/include/openssl/aes.h:57:6: note: declared here
| 57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
| | ^~~~~~~~~~~
| ocb.cc: In function ‘block gen_offset_from_nonce(ae_ctx*, const void*)’:
| ocb.cc:854:72: error: ‘void AES_encrypt(const unsigned char*, unsigned
char*, const AES_KEY*)’ is deprecated: Since OpenSSL 3.0
[-Werror=deprecated-declarations]
| 854 | AES_encrypt(tmp.u8, (unsigned char *)&ctx->KtopStr,
&ctx->encrypt_key);
| |
^
| In file included from ocb.cc:354:
| /usr/include/openssl/aes.h:57:6: note: declared here
| 57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
| | ^~~~~~~~~~~
| ocb.cc: In function ‘int ae_decrypt(ae_ctx*, const void*, const void*, int,
const void*, int, void*, const void*, int)’:
| ocb.cc:1338:68: error: ‘void AES_encrypt(const unsigned char*, unsigned
char*, const AES_KEY*)’ is deprecated: Since OpenSSL 3.0
[-Werror=deprecated-declarations]
| 1338 | AES_encrypt((unsigned char *)&offset, tmp.u8, &ctx->encrypt_key);
| | ^
| In file included from ocb.cc:354:
| /usr/include/openssl/aes.h:57:6: note: declared here
| 57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
| | ^~~~~~~~~~~
| ocb.cc:1376:48: error: ‘void AES_encrypt(const unsigned char*, unsigned
char*, const AES_KEY*)’ is deprecated: Since OpenSSL 3.0
[-Werror=deprecated-declarations]
| 1376 | AES_encrypt(tmp.u8, tmp.u8, &ctx->encrypt_key);
| | ^
| In file included from ocb.cc:354:
| /usr/include/openssl/aes.h:57:6: note: declared here
| 57 | void AES_encrypt(const unsigned char *in, unsigned char *out,
| | ^~~~~~~~~~~
| cc1plus: all warnings being treated as errors
| make[4]: *** [Makefile:381: ocb.o] Error 1
For more information see:
https://www.openssl.org/docs/man3.0/man7/migration_guide.html
Sebastian