From: Eric Bollengier Date: Fri, 23 Oct 2020 08:52:18 +0000 (+0200) Subject: Add SHA256/SHA512 to Accurate job options X-Git-Tag: Release-11.3.2~904 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=16bff4f24114a2c15d5edc375d06960500511d76;p=thirdparty%2Fbacula.git Add SHA256/SHA512 to Accurate job options --- diff --git a/bacula/src/dird/backup.c b/bacula/src/dird/backup.c index 65d1ba054..6849dd40a 100644 --- a/bacula/src/dird/backup.c +++ b/bacula/src/dird/backup.c @@ -226,6 +226,8 @@ static bool is_checksum_needed_by_fileset(JCR *jcr) break; case '5': /* MD5 */ case '1': /* SHA1 */ + case '2': /* SHA256 */ + case '3': /* SHA512 */ if (in_block) { Dmsg0(50, "Checksum will be sent to FD\n"); return true; diff --git a/bacula/src/filed/accurate.c b/bacula/src/filed/accurate.c index ec61254a9..0f07de7d1 100644 --- a/bacula/src/filed/accurate.c +++ b/bacula/src/filed/accurate.c @@ -483,6 +483,8 @@ bool accurate_check_file(JCR *jcr, FF_PKT *ff_pkt) /* TODO: cleanup and factorise this function with verify.c */ case '5': /* compare MD5 */ case '1': /* compare SHA1 */ + case '2': /* compare SHA256 */ + case '3': /* compare SHA512 */ /* * The remainder of the function is all about getting the checksum. * First we initialise, then we read files, other streams and Finder Info.