Skip to content

Verify get rid of 1,5 and create a new Flag for Signature verification #2490

@bruno-at-bareos

Description

@bruno-at-bareos

Use case

Actually the documentation state you can do Verify (or Accurate) with flag 1 (SHA-1) or 5 (MD5) but what about for the others Signature algorithms.

Proposal

The code core/src/dird/verify.cc GetAttributesAndCompareToCatalog verify only
if do_Digest != CRYPTO_DIGEST_NONE so SHA-256, xxHASH128, etc will be verified if you use flag 1 or 5

We want to simplifies the code, and the documentation about this option:

  • adapt the documentation by keeping 1 and deprecate 5

Tracking Issues

Was discussed in bareos/internal/discussions/546

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions