gpg: When comparing keyids, use the keyid, not the fingerprint's suffix.
authorNeal H. Walfield <neal@g10code.com>
Tue, 24 Nov 2015 12:03:24 +0000 (13:03 +0100)
committerNeal H. Walfield <neal@g10code.com>
Tue, 24 Nov 2015 12:03:24 +0000 (13:03 +0100)
commite9c16fee2576c772de9d4fb5d53fee28e4b84202
tree9ef0d8cd56de555306aea46314c53bae6cc62f14
parent19362a8dd7ee986c082a5afc5a446f939991ec0f
gpg: When comparing keyids, use the keyid, not the fingerprint's suffix.

* g10/keyedit.c (menu_select_key): Use spacep and hexdigitp instead of
inline tests.  Don't compare P to the suffix of the fingerprint.  If P
appears to be a keyid, do an exact compare against the keyid.  If it
appears to be a fingerprint, do an exact compare against the
fingerprint.

--
Signed-off-by: Neal H. Walfield <neal@g10code.com>
g10/keyedit.c