Home GnuPG
Diffusion GnuPG 0b3770c421a3

gpg: Improve check for already compressed packets.
0b3770c421a3Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpg: Improve check for already compressed packets.

* common/miscellaneous.c (is_openpgp_compressed_packet): New.
(is_file_compressed): Rerad 2 more bytes and call new function.

Note that this does not yet allow to detect compressed data piped to
gpg. This requires a proper read-ahead in iobuf.c which is
complicated due to the auto-removal of filter functions. Thus such an
read-ahead needs to be done in the I/O backend of iobuf.

  • Signed-off-by: Werner Koch <wk@gnupg.org>

Details

Provenance
wernerAuthored on Mar 24 2017, 11:51 AM
Parents
rG2c237c13628a: agent: New option --enable-extended-key-format.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG0b3770c421a3: gpg: Improve check for already compressed packets. (authored by Werner Koch <wk@gnupg.org>).Mar 24 2017, 11:51 AM