ソースを参照

fix WORKAROUNDS=authenticated_no_key support for archive TAM authentication, fixes #8400

Thomas Waldmann 8 ヶ月 前
コミット
2c18620075
1 ファイル変更2 行追加0 行削除
  1. 2 0
      src/borg/crypto/key.py

+ 2 - 0
src/borg/crypto/key.py

@@ -305,6 +305,8 @@ class KeyBase:
         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')