GNU bug report logs -
#3829
23.0.96; Cannot read gpg file
Previous Next
Reported by: Андрей Парамонов <cmr.pent <at> gmail.com>
Date: Sun, 12 Jul 2009 12:55:05 UTC
Severity: wishlist
Tags: fixed
Merged with 4077,
8129
Fixed in version 28.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Emacs assumes that all files that end with .gpg are encrypted files, and
> will error out dramatically when trying to read those files. The only
> way the user has to look at them is with `M-x find-file-literally'.
>
> But .gpg is also a common suffix for key ring files.
I had a look at this again, and there doesn't really seem to be a good
set of magic bytes for these files. "\x01gpg" is used by some, and
"\x99\x01" for others, apparently, and ... a bunch of other two-byte
codes. But there apparently isn't anything that ensures what the byte
prefixes are in encoded files? (I'm trying to understand the logic in
"file"...)
On the other hand, we could just let gpg try to decrypt the data and if
we get
gpg -d /tmp/trusted.gpg
gpg: decrypt_message failed: Unexpected error
then we can just take that as a hint that it's not encrypted data and
then insert the bytes instead.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
This bug report was last modified 4 years and 344 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.