gpg: Improve 'General key info' line of --card-status.
authorNIIBE Yutaka <gniibe@fsij.org>
Tue, 29 Sep 2015 04:45:20 +0000 (13:45 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Tue, 29 Sep 2015 04:45:20 +0000 (13:45 +0900)
commitfea9d4354c93b662c75febe020fb799ce4f2ec89
treee888aac585bec8365455a2ac09229c2c243a9793
parent47a499eaa2630b331afbf3c56c6ec6e7f300eb8c
gpg: Improve 'General key info' line of --card-status.

* g10/keylist.c (print_pubkey_info): Print either "pub" or "sub".

--

This now prints "sub" if the first used card key is actually a subkey.

Signed-off-by: Werner Koch <wk@gnupg.org>
GnuPG-bug-id: 2079

(backported from master 874ef16e70ab750db7b153f17a7e859a0db6a2f1)
g10/keylist.c