]> git.ipfire.org Git - thirdparty/bacula.git/commit
Fix openssl 3.x don't tolerate to call EVP_CipherFinal_ex() twice
authorAlain Spineux <alain@baculasystems.com>
Fri, 17 Nov 2023 13:34:48 +0000 (14:34 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 13 Feb 2024 09:36:02 +0000 (10:36 +0100)
commit3497fced36438bea6112cd59978ebd981567a2ca
tree7aadabc239cacb163697128c1b739eac8578ae95
parent8082fa695952eda09274e37b62a0f6539945ba50
Fix openssl 3.x don't tolerate to call EVP_CipherFinal_ex() twice

- tests/encrypt-bug-test fail with openssl 3.0
- the problem is to restore a 64K+1bytes file backed up using encryption
- was working with openssl 1.0 & 1.1
- When using TLS this can block the restore
- get Error: restore.c:1736 Decryption error. buf_len=5 decrypt_len=0 on file xxx/encrypt-bug.jpg
- OPENSSL give ERR=error:1C80006B:Provider routines::wrong final block length
bacula/src/filed/restore.c