From 2c186200758a85b9dd8ea86f933c4fa44b058214 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Fri, 20 Sep 2024 20:19:30 +0200 Subject: [PATCH] fix WORKAROUNDS=authenticated_no_key support for archive TAM authentication, fixes #8400 --- src/borg/crypto/key.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/borg/crypto/key.py b/src/borg/crypto/key.py index 0a634ba23b..25cff0a8cd 100644 --- a/src/borg/crypto/key.py +++ b/src/borg/crypto/key.py @@ -305,6 +305,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'').decode('ascii', 'replace')