Merge pull request #8402 from ThomasWaldmann/fix-authenticated-no-key-1.2

fix authenticated_no_key (1.2-maint)
This commit is contained in:
TW 2024-09-20 22:25:27 +02:00 committed by GitHub
commit 9da4236298
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -296,6 +296,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')