make tarfile.py error out on invalid crypto modes and combos
authorPhilipp Gesang <philipp.gesang@intra2net.com>
Fri, 24 Feb 2017 09:50:03 +0000 (10:50 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Mon, 2 Apr 2018 11:34:08 +0000 (13:34 +0200)
commit8ab8fac560add7ba1b6582e478188863f3283705
tree5e529c278731925771f7a15e46456b78dcaae837
parent00b3cd105d7f034c03976b4d21b537436d4e050b
make tarfile.py error out on invalid crypto modes and combos

The tarfile stream ctor will simply gloss over encryption
requested by the caller unless it happens to exactly match the
string (!) “aes”. Furthermore, with non-gzip compression the
encryption will be ignored altogether.

Instead of deceiving the user about the encryption being applied,
have the ctor fail immediately on invalid combinations.
deltatar/tarfile.py