ISCACHED: validate the checksum.
commit1d379b1ebaa9b21f174592f05ab6a8c2c408d7f3
authorBen Kibbey <bjk@luxsci.net>
Sat, 6 Aug 2016 17:05:02 +0000 (6 13:05 -0400)
committerBen Kibbey <bjk@luxsci.net>
Sat, 6 Aug 2016 17:05:02 +0000 (6 13:05 -0400)
treea091da4ca71e9eeac98945effc9cbc0da9fdb698
parent353bf45762addb3481c012578776d94c4115c966
ISCACHED: validate the checksum.

This command is mostly used to determine if a passphrase is needed to
open a data file. If the checksum doesn't match the cached checksum then
return GPG_ERR_NO_DATA.

Also return GPG_ERR_INV_STATE when --agent or --sign is passed with no
opened data file since some data may be forged (see [1]).

1. https://lists.gnupg.org/pipermail/gnupg-devel/2016-August/031459.html
doc/pwmd.html
src/commands.c