Skip to content

Commit

Permalink
Merge pull request #8402 from ThomasWaldmann/fix-authenticated-no-key…
Browse files Browse the repository at this point in the history
…-1.2

fix authenticated_no_key (1.2-maint)
  • Loading branch information
ThomasWaldmann authored Sep 20, 2024
2 parents 8178cd5 + b07add6 commit 9da4236
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/borg/crypto/key.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,8 @@ def unpack_and_verify_archive(self, data, force_tam_not_required=False):
unpacker = get_limited_unpacker('archive')
unpacker.feed(data)
unpacked = unpacker.unpack()
if AUTHENTICATED_NO_KEY:
return unpacked, True, None # True is a lie.
if b'tam' not in unpacked:
if tam_required:
archive_name = unpacked.get(b'name', b'<unknown>').decode('ascii', 'replace')
Expand Down

0 comments on commit 9da4236

Please sign in to comment.