gpg: Properly handle legacy keys while looking for a secret key.
authorWerner Koch <wk@gnupg.org>
Tue, 4 Aug 2015 10:28:17 +0000 (12:28 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 4 Aug 2015 10:28:17 +0000 (12:28 +0200)
commitf05a63b10428df2878b1bb6fde57a2fc2aa99105
treeca75fa67e8608a9b25eb9dc002f6e124e22cb427
parentd22be79d9b5f40a81d1e1198f7839c38570cd543
gpg: Properly handle legacy keys while looking for a secret key.

* g10/getkey.c (have_secret_key_with_kid): Skip legacy keys.
--

This fixes
GnuPG-bug-id: 2031

Signed-off-by: Werner Koch <wk@gnupg.org>
g10/getkey.c