]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Add SHA256/SHA512 to Accurate job options
authorEric Bollengier <eric@baculasystems.com>
Fri, 23 Oct 2020 08:52:18 +0000 (10:52 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 24 Mar 2022 08:02:58 +0000 (09:02 +0100)
bacula/src/dird/backup.c
bacula/src/filed/accurate.c

index 65d1ba05496e9e281cda6a16355d1c1fb86b104a..6849dd40a403b66ad3bba4c4f072a7efbddce047 100644 (file)
@@ -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;
index ec61254a9696d8ff3152e82594dea3c183d9229c..0f07de7d10b60ed417840c174289b3ca5b08dc96 100644 (file)
@@ -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.