ueno/ruby-gpgme

Should throw an error if compression type is not available

Opened this issue · 0 comments

Recently ran into an annoying bug with Alpine Linux, GPG1 and BZIP2.

Installing gnupg1 in Alpine for some reason won't build with compression BZIP2 available.

If trying decrypt a file with BZIP2 compression with GPGME, it will result in a 0 byte empty file with no error raised.

However, if attempting to decrypt the file through command line gpg -d <filename>, it raises error gpg: uncompressing failed: unknown compress algorithm

GPGME should raise a similar error instead of silently failing, resulting in a 0 byte file.